Function at 0x4c6670
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x518
lea eax, [esp + 0x20]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x528]
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push 0x70e
push esi
xor ebp, ebp
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x53c]
test eax, eax
je 0x4c66e6
push 0x70b
push esi
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
test eax, eax
jne 0x4c66e6
push 1
push eax
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
mov ebx, dword [esp + 0x530]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c6739
test al, 0x10
je 0x4c6739
mov eax, dword [esp + 0x540]
test eax, eax
je 0x4c6719
push 0x5aae60
push 0x70f
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 1
push 0
push 0
push 0
push 0
push esi
call fcn.004c6590
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push ebx
call fcn.004381b0
add esp, 4
test eax, eax
push 1
push 0
je 0x4c6cf5
push esi
call dword [sym.imp.USER32.dll_InvalidateRect]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, dword [esp + 0x540]
test eax, eax
je 0x4c67ec
push 1
push 1
lea ecx, [esp + 0x4c]
push 0
lea edx, [esp + 0x38]
mov ebp, dword [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x24]
push 0
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x554]
lea eax, [esp + 0x38]
push edx
mov edx, dword [esp + 0x5c]
push eax
push 0
push 0
push 0
sub edx, ebp
push ecx
push edx
push 0
push ebx
call fcn.004a86a0
mov ebp, eax
mov eax, dword [esp + 0x588]
add esp, 0x44
test eax, eax
je 0x4c67c8
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esp + 0x548]
test eax, eax
je 0x4c67d9
mov edx, dword [esp + 0x2c]
mov dword [eax], edx
mov eax, dword [esp + 0x54c]
test eax, eax
je 0x4c682e
mov ecx, dword [esp + 0x44]
mov dword [eax], ecx
jmp 0x4c682e
push 0
push 0
push 0
push 1
push 1
push 0
push 0
push 0
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x560]
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x68]
push edx
push eax
sub ecx, dword [esp + 0x68]
push ecx
push ebx
call fcn.004a71a0
add esp, 0x40
mov ebp, eax
test ebp, ebp
je 0x4c6b1a
push 0x5aae60
push 0x70d
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0
push 0
lea edx, [esp + 0x54]
push 0
lea eax, [esp + 0x34]
push edx
push eax
push ebp
call fcn.004c5070
add esp, 0x18
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
push 1
push 0
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x54]
mov dword [ecx + 8], edx
lea edx, [esp + 0x58]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x60]
push ecx
lea eax, [esp + 0x40]
push edx
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
call fcn.004c7750
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x78]
push 0
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
push esi
call fcn.004c6590
mov eax, dword [esp + 0x598]
add esp, 0x48
test eax, eax
je 0x4c68f0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push 1
push 1
push 0
push 1
push 5
push edx
push eax
push ebp
call fcn.00421dd0
add esp, 0x20
jmp 0x4c6903
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
push ecx
push edx
push ebp
call fcn.00422de0
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edi, eax
mov eax, dword [esp + 0x540]
test eax, eax
jne 0x4c6922
push ebp
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebp, ebp
test edi, edi
je 0x4c6d37
mov eax, dword [0x5b8fc4]
push eax
push 0
push 0
push edi
push 0x70d
push esi
call fcn.004c5cc0
add esp, 0x18
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esp + 0x540]
test eax, eax
je 0x4c6bcd
mov edx, dword [0x5b5574]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x1a0]
push 0x20
push ecx
push 0x513
push edx
call edi
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x1e0]
push 0x20
push eax
push 0x514
push ecx
call edi
mov eax, dword [0x5b5574]
lea edx, [esp + 0xa0]
push 0x20
push edx
push 0x515
push eax
call edi
mov edx, dword [0x5b5574]
lea ecx, [esp + 0x160]
push 0x20
push ecx
push 0x516
push edx
call edi
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x2a0]
push 0x20
push eax
push 0x4e7c
push ecx
call edi
mov eax, dword [0x5b5574]
lea edx, [esp + 0x60]
push 0x20
push edx
push 0x528
push eax
call edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push 0
push 0
push ecx
push edx
push eax
call fcn.004c96a0
mov edx, dword [esp + 0x544]
push 0
fstp dword [esp + 0x40]
push 0
lea ecx, [esp + 0x23c]
push 1
push ecx
push edx
call fcn.004c9730
fld dword [esp + 0x50]
add esp, 0x28
lea eax, [esp + 0x220]
lea ecx, [esp + 0x160]
lea edx, [esp + 0x2a0]
push eax
mov eax, dword [esp + 0x24]
push ecx
lea ecx, [esp + 0xa8]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1fc]
push edx
push eax
push ecx
lea edx, [esp + 0x1c8]
lea eax, [esp + 0x348]
push edx
push str._s:_t_t_d_n_s:_t_t_d_n_s:_t_t_d_bpp_n_s:_t_.2f_MB_n_s:_t_s
push eax
call fcn.004d5ee1
mov eax, dword [esp + 0x60]
add esp, 0x34
cmp eax, 1
jle 0x4c6ac5
lea ecx, [esp + 0x60]
lea edx, [esp + 0xe0]
push ecx
push eax
push str._n__d__s_
push edx
call fcn.004d5ee1
lea eax, [esp + 0xf0]
lea ecx, [esp + 0x330]
push eax
push ecx
call fcn.004d62f1
add esp, 0x18
mov eax, dword [esp + 0x538]
cmp eax, 1
jle 0x4c6b01
lea edx, [esp + 0x60]
push edx
push eax
lea eax, [esp + 0xe8]
push str._n__d__s_
push eax
call fcn.004d5ee1
lea ecx, [esp + 0xf0]
lea edx, [esp + 0x330]
push ecx
push edx
call fcn.004d62f1
add esp, 0x18
lea eax, [esp + 0x320]
push eax
push 0x70f
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
jmp 0x4c6bcd
push 0
push 0
push 0
push 0
push 0
push esi
call fcn.004c6590
mov eax, dword [esp + 0x558]
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextW]
add esp, 0x18
test eax, eax
je 0x4c6b4b
push 0x5aae60
push 0x70f
push esi
call ebx
push 0x5aae60
push 0x70d
push esi
call ebx
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004ccaf0
add esp, 4
test eax, eax
jne 0x4c6bf9
mov edx, dword [esp + 0x10]
push edx
call fcn.004ccb20
add esp, 4
test eax, eax
jne 0x4c6bf9
push eax
push eax
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x320]
push 0x82
push eax
push 0x525
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x320]
push edx
push 0x70d
push esi
call ebx
mov eax, dword [0x5b550c]
push 0x7f00
push eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push 0
push 0
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x5b550c]
push 0x7f00
push ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0x5aae60
push 0x70d
push esi
call ebx
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esp + 0x10]
mov ebx, eax
push edx
call fcn.004ccaf0
add esp, 4
test eax, eax
push 0x8000
push 0
push 0
push 1
je 0x4c6c82
mov eax, dword [0x5b550c]
push 0x2708
push eax
jmp 0x4c6c8e
mov ecx, dword [0x5b550c]
push 0x2707
push ecx
call dword [sym.imp.USER32.dll_LoadImageW]
lea edx, [esp + 0x50]
mov ebp, eax
push edx
push 0x70e
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
sub eax, edx
push ebp
sub eax, 0x20
cdq
sub eax, edx
mov edx, dword [esp + 0x54]
sar eax, 1
push eax
mov eax, dword [esp + 0x60]
sub eax, edx
sub eax, 0x20
cdq
sub eax, edx
sar eax, 1
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawIcon]
push ebx
push 0x70d
push esi
call edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x518
ret
push 0
push 0
push 0
push esi
call fcn.004c6590
mov ecx, dword [0x5b5574]
add esp, 0x18
lea eax, [esp + 0x320]
push 0x82
push eax
push 0x525
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x320]
push edx
push 0x70d
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x518
ret