Function at 0x46a110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2fb4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x88]
mov dword [ebp - 0x34], eax
movzx ecx, byte [ebp - 0x11]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00402010
lea ecx, [ebp - 0x88]
call fcn.00401cd0
nop
mov dword [ebp - 4], 2
lea edx, [ebp - 0xa0]
mov dword [ebp - 0x38], edx
movzx eax, byte [ebp - 0x12]
push eax
mov ecx, dword [ebp - 0x38]
call fcn.00402010
lea ecx, [ebp - 0xa0]
call fcn.00401cd0
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
push ecx
push 0
call fcn.0045c020
add esp, 8
push eax
lea ecx, [ebp - 0x88]
call fcn.0041f360
nop
cmp dword [ebp - 0x78], 0
jne 0x46a1b8
mov dword [ebp - 0x18], 1
jmp 0x46a1bf
mov dword [ebp - 0x18], 0
mov dl, byte [ebp - 0x18]
mov byte [ebp - 0xd], dl
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x46a1ff
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401940
nop
mov eax, dword [ebp - 0x3c]
jmp 0x46a475
push 0
lea ecx, [ebp - 0xa0]
push ecx
push 0
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa4], esp
lea edx, [ebp - 0x88]
push edx
call fcn.004019f0
call fcn.0045d5c0
add esp, 0x28
cmp dword [ebp - 0x78], 0
jne 0x46a23a
mov dword [ebp - 0x1c], 1
jmp 0x46a241
mov dword [ebp - 0x1c], 0
mov al, byte [ebp - 0x1c]
mov byte [ebp - 0xe], al
movzx ecx, byte [ebp - 0xe]
test ecx, ecx
jne 0x46a448
mov byte [ebp - 4], 4
lea edx, [ebp - 0x70]
mov dword [ebp - 0x40], edx
movzx eax, byte [ebp - 0x13]
push eax
mov ecx, dword [ebp - 0x40]
call fcn.00402010
lea ecx, [ebp - 0x70]
call fcn.00401cd0
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
push ecx
call fcn.0045bfa0
add esp, 4
cmp dword [ebp - 0x60], 0
jne 0x46a292
mov dword [ebp - 0x20], 1
jmp 0x46a299
mov dword [ebp - 0x20], 0
mov dl, byte [ebp - 0x20]
mov byte [ebp - 0xf], dl
movzx eax, byte [ebp - 0xf]
test eax, eax
jne 0x46a43b
cmp dword [ebp + 0xc], 0
je 0x46a2b9
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], ecx
jmp 0x46a2c0
mov dword [ebp - 0x24], 0x4bd1b0
push 0x4bd1b4
lea edx, [ebp - 0xa0]
push edx
lea eax, [ebp - 0xec]
push eax
call fcn.00401f00
add esp, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x48], ecx
mov byte [ebp - 4], 6
lea edx, [ebp - 0xa0]
push edx
mov eax, dword [ebp - 0x48]
push eax
lea ecx, [ebp - 0xd4]
push ecx
call fcn.0041f690
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.00401ca0
push eax
lea ecx, [ebp - 0xbc]
call fcn.004019a0
mov ecx, dword [ebp - 0x28]
or ecx, 4
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call fcn.00401940
nop
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xec]
call fcn.00401940
nop
lea ecx, [ebp - 0xbc]
call fcn.00401910
push eax
lea edx, [ebp - 0x70]
push edx
call fcn.0045d2c0
add esp, 8
cmp dword [ebp - 0x60], 0
jne 0x46a377
mov dword [ebp - 0x2c], 1
jmp 0x46a37e
mov dword [ebp - 0x2c], 0
mov al, byte [ebp - 0x2c]
mov byte [ebp - 0x10], al
movzx ecx, byte [ebp - 0x10]
test ecx, ecx
jne 0x46a42b
lea ecx, [ebp - 0x70]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46a3cc
push 1
push 1
lea ecx, [ebp - 0x70]
call fcn.00401910
push eax
call fcn.0046ab40
add esp, 0xc
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x46a3cc
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
cmp dword [ebp + 8], 0
je 0x46a3df
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041f360
nop
mov dword [ebp - 0x54], 1
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401940
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401940
nop
mov eax, dword [ebp - 0x54]
jmp 0x46a475
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x70]
call fcn.00401940
nop
mov dword [ebp - 0x58], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xa0]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.00401940
nop
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret