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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5862c9
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5e7914
mov ecx, dword [ebp + 0x10]
call fcn.0040e480
push 0x5e7918
mov ecx, dword [ebp + 0x14]
call fcn.0040e480
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x456cdf
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.004060b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0xd8]
push edx
mov ecx, dword [ebp + 8]
call fcn.004599e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.004060f0
jmp 0x456ee8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004060b0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xf4]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00459ac0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.004060f0
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00459300
push eax
lea ecx, [ebp - 0x14]
call fcn.00460b10
movzx ecx, al
test ecx, ecx
je 0x456d79
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x118]
call fcn.004060b0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004582a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.004060f0
jmp 0x456ee8
push 0x5e791c
lea ecx, [ebp - 0x34]
call fcn.004060b0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00457ef0
add esp, 8
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00441480
add eax, 0x1c
push eax
call fcn.0045e900
add esp, 8
movzx edx, al
test edx, edx
je 0x456e08
mov eax, dword [ebp + 0x18]
cmp dword [eax], 1
jne 0x456dcd
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 3
lea ecx, [ebp - 0x14]
call fcn.00441480
add eax, 0x1c
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0042b0a0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0042b0a0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.00441480
add eax, 0x1c
mov ecx, eax
call fcn.0042b0a0
jmp 0x456ed9
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x456e22
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x14]
call fcn.00441480
mov edx, dword [eax + 0x38]
cmp edx, dword [ebp - 0x38]
je 0x456ed9
mov eax, dword [ebp + 0x18]
cmp dword [eax], 1
jne 0x456e47
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 3
xor edx, edx
mov word [ebp - 0xbc], dx
push 0x3e
push 0
lea eax, [ebp - 0xba]
push eax
call fcn.00562540
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x7c], cx
push 0x3e
push 0
lea edx, [ebp - 0x7a]
push edx
call fcn.00562540
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00441480
mov eax, dword [eax + 0x38]
push eax
push 0x5e7920
lea ecx, [ebp - 0xbc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
push 0x5e7928
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.0040e480
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0040e480
lea ecx, [ebp - 0x14]
call fcn.00441480
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x38], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004060f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret