Function at 0x43f160
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57067d
mov eax, dword fs:[0]
push eax
sub esp, 0x460
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x454], ecx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43f1a6
xor eax, eax
jmp 0x43f513
mov dword [ebp - 0x430], 0x80004005
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x224]
call fcn.00442e90
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.004b6500
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.004b6500
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 0x43f269
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x440], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00441b80
mov eax, dword [ebp - 0x440]
jmp 0x43f513
lea ecx, [ebp - 0x224]
call fcn.00442ee0
push eax
push 0x58c7a0
push 1
push 0
push 0x58e2f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jl 0x43f4ef
lea ecx, [ebp - 0x224]
call fcn.004405e0
push eax
lea ecx, [ebp - 0x438]
call fcn.00440840
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00442ef0
mov dword [ebp - 0x458], eax
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x458]
push ecx
mov edx, dword [ebp - 0x458]
mov eax, dword [edx]
mov ecx, dword [eax + 0x50]
call ecx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x43f32a
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x444], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004402f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00441b80
mov eax, dword [ebp - 0x444]
jmp 0x43f513
cmp dword [ebp + 0xc], 0
je 0x43f33b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x45c], eax
jmp 0x43f345
mov dword [ebp - 0x45c], 0x586b60
lea ecx, [ebp - 0x224]
call fcn.00442ef0
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp - 0x45c]
push ecx
mov edx, dword [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x460]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
call edx
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x43f3b8
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004402f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00441b80
mov eax, dword [ebp - 0x448]
jmp 0x43f513
mov byte [ebp - 0x439], 1
call fcn.00445d00
movzx ecx, al
test ecx, ecx
je 0x43f40c
lea ecx, [ebp - 0x224]
call fcn.00442ef0
mov dword [ebp - 0x464], eax
push 7
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x464]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jl 0x43f40c
mov byte [ebp - 0x439], 0
movzx ecx, byte [ebp - 0x439]
test ecx, ecx
je 0x43f48f
cmp dword [ebp + 0x14], 0
je 0x43f48f
lea ecx, [ebp - 0x224]
call fcn.00442ef0
mov dword [ebp - 0x468], eax
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x468]
push eax
mov ecx, dword [ebp - 0x468]
mov edx, dword [ecx]
mov eax, dword [edx + 0x44]
call eax
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jge 0x43f48f
mov ecx, dword [ebp - 0x430]
mov dword [ebp - 0x44c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004402f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00441b80
mov eax, dword [ebp - 0x44c]
jmp 0x43f513
push 0x104
mov edx, dword [ebp + 0x10]
push edx
push 0x104
lea eax, [ebp - 0x42c]
push eax
call fcn.004bf264
add esp, 0x10
lea ecx, [ebp - 0x438]
call fcn.00442f60
mov dword [ebp - 0x46c], eax
push 1
lea ecx, [ebp - 0x42c]
push ecx
mov edx, dword [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x46c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
call edx
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.004402f0
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x450], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00441b80
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret 0x10