Function at 0x42fa40
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f049b
mov eax, dword fs:[0]
push eax
sub esp, 0x458
mov eax, dword [0x53fbb0]
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 0x42fa86
xor eax, eax
jmp 0x42fd94
mov dword [ebp - 0x430], 0x80004005
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x224]
call fcn.0040be20
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.00491200
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.00491200
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 0x42fb49
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x43c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0042b060
mov eax, dword [ebp - 0x43c]
jmp 0x42fd94
lea ecx, [ebp - 0x224]
call fcn.00408be0
push eax
push 0x4ffc74
push 1
push 0
push 0x4ffca4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x430], eax
cmp dword [ebp - 0x430], 0
jl 0x42fd70
lea ecx, [ebp - 0x224]
call fcn.00430fb0
push eax
lea ecx, [ebp - 0x438]
call fcn.00430f70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x224]
call fcn.00430fb0
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 0x42fc0a
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x440], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00442b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0042b060
mov eax, dword [ebp - 0x440]
jmp 0x42fd94
cmp dword [ebp + 0xc], 0
je 0x42fc1b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x458], eax
jmp 0x42fc25
mov dword [ebp - 0x458], 0x4fa9a0
lea ecx, [ebp - 0x224]
call fcn.00430fb0
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 0x42fc98
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x444], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00442b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0042b060
mov eax, dword [ebp - 0x444]
jmp 0x42fd94
cmp dword [ebp + 0x14], 0
je 0x42fd10
lea ecx, [ebp - 0x224]
call fcn.00430fb0
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 0x42fd10
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x448], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x438]
call fcn.00442b20
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0042b060
mov eax, dword [ebp - 0x448]
jmp 0x42fd94
push 0x104
mov ecx, dword [ebp + 0x10]
push ecx
push 0x104
lea edx, [ebp - 0x42c]
push edx
call fcn.004977a4
add esp, 0x10
lea ecx, [ebp - 0x438]
call fcn.00430fb0
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.00442b20
mov edx, dword [ebp - 0x430]
mov dword [ebp - 0x44c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.0042b060
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.0049115e
mov esp, ebp
pop ebp
ret 0x10