Function at 0x46d6d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e62e
mov eax, dword fs:[0]
push eax
sub esp, 0x644
mov eax, dword [0x5f969c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x644], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x644]
call fcn.00471010
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
call fcn.00476080
mov ecx, dword [eax + 0x40]
and ecx, 0x10
je 0x46d763
push 0
mov edx, dword [ebp - 0x644]
mov ecx, dword [edx + 4]
call fcn.00480d90
push 0
push 0
push 0x1043
mov eax, dword [ebp - 0x644]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x644]
call fcn.004730c0
jmp 0x46d949
mov ecx, dword [ebp - 0x10]
call fcn.00476080
push eax
lea ecx, [ebp - 0x30]
call fcn.00408ba7
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x63c]
push edx
call fcn.00566830
add esp, 8
mov dword [ebp - 0x648], eax
mov eax, dword [ebp - 0x648]
mov dword [ebp - 0x64c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64c]
push ecx
call fcn.0056a8c0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x63c]
call fcn.00403230
lea ecx, [ebp - 0x30]
call fcn.00406410
push eax
mov ecx, dword [ebp - 0x644]
call fcn.0048dd00
test eax, eax
je 0x46d927
lea ecx, [ebp - 0x34]
call fcn.00438030
mov byte [ebp - 4], 2
xor edx, edx
mov word [ebp - 0x23c], dx
push 0x206
push 0
lea eax, [ebp - 0x23a]
push eax
call fcn.0053c870
add esp, 0xc
mov ecx, 1
test ecx, ecx
je 0x46d876
push 0x208
push 0
lea edx, [ebp - 0x23c]
push edx
call fcn.0053c870
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
call fcn.00472ad0
add esp, 4
mov ecx, dword [ebp - 0x10]
call fcn.00476080
mov ecx, eax
call fcn.00406410
push eax
lea ecx, [ebp - 0x23c]
push ecx
push 0x5838f8
lea edx, [ebp - 0x34]
push edx
call fcn.004386c0
add esp, 0x10
lea ecx, [ebp - 0x34]
call fcn.0044ab00
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46d874
jmp 0x46d876
jmp 0x46d809
push ecx
mov ecx, esp
mov dword [ebp - 0x640], esp
lea eax, [ebp - 0x23c]
push eax
call fcn.0041a130
mov dword [ebp - 0x650], eax
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x644]
call fcn.004725f0
lea ecx, [ebp - 0x34]
call fcn.004dfdf0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46d919
lea ecx, [ebp - 0x34]
call fcn.0044ab00
push eax
lea ecx, [ebp - 0x61c]
call fcn.004c9300
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x644]
push edx
lea ecx, [ebp - 0x61c]
call fcn.004c98a0
mov eax, dword [ebp - 0x644]
mov ecx, dword [eax + 4]
sub ecx, 0x42c
mov dword [ebp - 0x620], ecx
mov ecx, dword [ebp - 0x620]
call dword [sym.imp.DuiLib.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
lea ecx, [ebp - 0x61c]
call fcn.004c9760
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x61c]
call fcn.00473b50
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.0044fc20
jmp 0x46d93a
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x644]
call fcn.00471850
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00406210
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053c85d
mov esp, ebp
pop ebp
ret 8