Function at 0x42f1a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4935c7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov dword [ebp - 0x3c], 0
movzx eax, byte [ebp - 0x16]
push eax
lea ecx, [ebp - 0xf4]
call fcn.0041d0a0
lea ecx, [ebp - 0xf4]
call fcn.00423200
mov dword [ebp - 4], 0
movzx ecx, byte [ebp - 0x17]
push ecx
lea ecx, [ebp - 0x10c]
call fcn.0041d0a0
lea ecx, [ebp - 0x10c]
call fcn.00423200
mov byte [ebp - 4], 1
lea edx, [ebp - 0xf4]
push edx
push 0
call fcn.0042c3f0
add esp, 8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0xf4]
cmp ecx, dword [ebp - 0x60]
je 0x42f244
xor edx, edx
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xf4]
call fcn.00422a50
mov edx, dword [ebp - 0xe4]
mov dword [ebp - 0x64], edx
cmp dword [ebp - 0x64], 0
jne 0x42f25c
mov dword [ebp - 0x30], 1
jmp 0x42f263
mov dword [ebp - 0x30], 0
mov al, byte [ebp - 0x30]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
je 0x42f2a1
mov dword [ebp - 0x68], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004230d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.004230d0
mov eax, dword [ebp - 0x68]
jmp 0x42f6b8
push 0
lea edx, [ebp - 0x10c]
push edx
push 0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x110], esp
lea eax, [ebp - 0xf4]
push eax
call fcn.00401840
call fcn.0041fbc0
add esp, 0x28
mov ecx, dword [ebp - 0xe4]
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x6c], 0
jne 0x42f2e5
mov dword [ebp - 0x34], 1
jmp 0x42f2ec
mov dword [ebp - 0x34], 0
mov dl, byte [ebp - 0x34]
mov byte [ebp - 0xf], dl
movzx eax, byte [ebp - 0xf]
test eax, eax
jne 0x42f687
movzx ecx, byte [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xdc]
call fcn.0041d0a0
lea ecx, [ebp - 0xdc]
call fcn.00423200
mov byte [ebp - 4], 2
lea edx, [ebp - 0xdc]
push edx
call fcn.0042c310
add esp, 4
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jne 0x42f344
mov dword [ebp - 0x38], 1
jmp 0x42f34b
mov dword [ebp - 0x38], 0
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0x10], cl
movzx edx, byte [ebp - 0x10]
test edx, edx
jne 0x42f678
cmp dword [ebp + 0xc], 0
je 0x42f36b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
jmp 0x42f372
mov dword [ebp - 0x1c], 0x4a312c
push 0x4a3130
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x158]
push edx
call fcn.0040be10
add esp, 0xc
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x78]
push edx
lea eax, [ebp - 0x140]
push eax
call fcn.004034f0
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00464b86
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x88]
call fcn.00401310
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x128]
call fcn.0041e380
mov edx, dword [ebp - 0x3c]
or edx, 4
mov dword [ebp - 0x3c], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.004230d0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x158]
call fcn.004230d0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x20]
cmp dword [edx + 0x14], 8
jb 0x42f45e
mov dword [ebp - 0x40], 1
jmp 0x42f465
mov dword [ebp - 0x40], 0
mov al, byte [ebp - 0x40]
mov byte [ebp - 0x11], al
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
je 0x42f487
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x98], edx
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
push ecx
lea edx, [ebp - 0xdc]
push edx
call fcn.0041f730
add esp, 8
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x42f4d0
mov dword [ebp - 0x48], 1
jmp 0x42f4d7
mov dword [ebp - 0x48], 0
mov cl, byte [ebp - 0x48]
mov byte [ebp - 0x12], cl
movzx edx, byte [ebp - 0x12]
test edx, edx
jne 0x42f669
lea eax, [ebp - 0xdc]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x14], 8
jb 0x42f50a
mov dword [ebp - 0x4c], 1
jmp 0x42f511
mov dword [ebp - 0x4c], 0
mov al, byte [ebp - 0x4c]
mov byte [ebp - 0x13], al
movzx ecx, byte [ebp - 0x13]
test ecx, ecx
je 0x42f533
mov edx, dword [ebp - 0x24]
mov eax, dword [edx]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f5e2
lea edx, [ebp - 0xdc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x14], 8
jb 0x42f57e
mov dword [ebp - 0x54], 1
jmp 0x42f585
mov dword [ebp - 0x54], 0
mov dl, byte [ebp - 0x54]
mov byte [ebp - 0x14], dl
movzx eax, byte [ebp - 0x14]
test eax, eax
je 0x42f5a7
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], edx
push 1
push 1
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00445530
add esp, 0xc
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0xffffffff
je 0x42f5e2
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0
je 0x42f618
lea edx, [ebp - 0xdc]
mov dword [ebp - 0xbc], edx
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xbc]
je 0x42f618
xor ecx, ecx
mov byte [ebp - 0x15], cl
movzx edx, byte [ebp - 0x15]
push edx
lea eax, [ebp - 0xdc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00422a50
mov dword [ebp - 0xc0], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
call fcn.004230d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.004230d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004230d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.004230d0
mov eax, dword [ebp - 0xc0]
jmp 0x42f6b8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
call fcn.004230d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xdc]
call fcn.004230d0
mov dword [ebp - 0xc4], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10c]
call fcn.004230d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xf4]
call fcn.004230d0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret