Function at 0x4565a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50f17e
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x568cb8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x450], ecx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4565e6
xor eax, eax
jmp 0x4568f4
mov dword [ebp - 0x430], 0x80004005
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x224]
call fcn.0043ae40
mov dword [ebp - 4], 0
xor ecx, ecx
mov word [ebp - 0x21c], cx
push 0x206
push 0
lea edx, [ebp - 0x21a]
push edx
call fcn.004b83b0
add esp, 0xc
mov dword [ebp - 0x434], 0
xor eax, eax
mov word [ebp - 0x42c], ax
push 0x206
push 0
lea ecx, [ebp - 0x42a]
push ecx
call fcn.004b83b0
add esp, 0xc
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x21c]
push eax
push 0x104
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x4566a9
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x43c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0044f270
mov eax, dword [ebp - 0x43c]
jmp 0x4568f4
lea ecx, [ebp - 0x224]
call fcn.0046c000
push eax
push 0x5202ec
push 1
push 0
push 0x52033c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jl 0x4568d0
lea ecx, [ebp - 0x224]
call fcn.0043e5c0
push eax
lea ecx, [ebp - 0x438]
call fcn.004579d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.0043e5c0
mov dword [ebp - 0x454], eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
mov edx, dword [ebp - 0x454]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x45676a
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x440], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004576a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0044f270
mov eax, dword [ebp - 0x440]
jmp 0x4568f4
cmp dword [ebp + 0xc], 0
je 0x45677b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
jmp 0x456785
mov dword [ebp - 0x458], 0x51a1a8
lea ecx, [ebp - 0x224]
call fcn.0043e5c0
mov dword [ebp - 0x45c], eax
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x45c]
push edx
mov eax, dword [ebp - 0x45c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x4567f8
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004576a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0044f270
mov eax, dword [ebp - 0x444]
jmp 0x4568f4
cmp dword [ebp + 0x14], 0
je 0x456870
lea ecx, [ebp - 0x224]
call fcn.0043e5c0
mov dword [ebp - 0x460], eax
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x44]
call edx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x456870
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004576a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0044f270
mov eax, dword [ebp - 0x448]
jmp 0x4568f4
push 0x104
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x42c]
push edx
call fcn.004bf1e4
add esp, 0x10
lea ecx, [ebp - 0x438]
call fcn.0043e5c0
mov dword [ebp - 0x464], eax
push 1
lea eax, [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 0x464]
push ecx
mov edx, dword [ebp - 0x464]
mov eax, dword [edx]
mov ecx, dword [eax + 0x18]
call ecx
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004576a0
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x44c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0044f270
mov eax, dword [ebp - 0x44c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8307
mov esp, ebp
pop ebp
ret 0x10