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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58c829
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x5ee64c
mov ecx, dword [ebp + 0x10]
call fcn.0040e620
push 0x5ee650
mov ecx, dword [ebp + 0x14]
call fcn.0040e620
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4595ef
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0xd8]
call fcn.00406230
mov dword [ebp - 4], 0
lea edx, [ebp - 0xd8]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045c300
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd8]
call fcn.00406270
jmp 0x4597f8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0xf4]
call fcn.00406230
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xf4]
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, dword [ebp + 8]
call fcn.00450c20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.00406270
lea eax, [ebp - 0xfc]
push eax
mov ecx, dword [ebp + 8]
call fcn.0047b3e0
push eax
lea ecx, [ebp - 0x14]
call fcn.0047bd70
movzx ecx, al
test ecx, ecx
je 0x459689
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x118]
call fcn.00406230
mov dword [ebp - 4], 2
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045abc0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x118]
call fcn.00406270
jmp 0x4597f8
push 0x5ee654
lea ecx, [ebp - 0x34]
call fcn.00406230
mov dword [ebp - 4], 3
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0045a810
add esp, 8
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004642b0
add eax, 0x1c
push eax
call fcn.00461060
add esp, 8
movzx edx, al
test edx, edx
je 0x459718
mov eax, dword [ebp + 0x18]
cmp dword [eax], 1
jne 0x4596dd
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 3
lea ecx, [ebp - 0x14]
call fcn.004642b0
add eax, 0x1c
push eax
mov ecx, dword [ebp + 0x10]
call fcn.0042b7d0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0042b7d0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
call fcn.004642b0
add eax, 0x1c
mov ecx, eax
call fcn.0042b7d0
jmp 0x4597e9
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 0x459732
mov dword [ebp - 0x38], 0
lea ecx, [ebp - 0x14]
call fcn.004642b0
mov edx, dword [eax + 0x38]
cmp edx, dword [ebp - 0x38]
je 0x4597e9
mov eax, dword [ebp + 0x18]
cmp dword [eax], 1
jne 0x459757
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.00568440
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x7c], cx
push 0x3e
push 0
lea edx, [ebp - 0x7a]
push edx
call fcn.00568440
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.004642b0
mov eax, dword [eax + 0x38]
push eax
push 0x5ee658
lea ecx, [ebp - 0xbc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov edx, dword [ebp - 0x38]
push edx
push 0x5ee660
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.0040e620
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp + 0x14]
call fcn.0040e620
lea ecx, [ebp - 0x14]
call fcn.004642b0
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x38], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00406270
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret