Function at 0x46bbf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9e05
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa4]
mov dword [ebp - 0x74], eax
movzx ecx, byte [ebp - 0x12]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.00402010
lea ecx, [ebp - 0xa4]
call fcn.00401cd0
nop
mov dword [ebp - 4], 2
lea edx, [ebp - 0x8c]
mov dword [ebp - 0x4c], edx
movzx eax, byte [ebp - 0x13]
push eax
mov ecx, dword [ebp - 0x4c]
call fcn.00402010
lea ecx, [ebp - 0x8c]
call fcn.00401cd0
nop
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
and ecx, 0xff
cmp ecx, 2
jne 0x46bc7b
mov dword [ebp - 0x18], 1
jmp 0x46bc82
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
je 0x46bcae
lea eax, [ebp - 0xa4]
push eax
call fcn.0046e2d0
add esp, 4
lea ecx, [ebp - 0x8c]
push ecx
call fcn.0046d760
add esp, 4
jmp 0x46bcf6
mov edx, dword [ebp + 0x10]
and edx, 0xff
cmp edx, 1
jne 0x46bcc5
mov dword [ebp - 0x1c], 1
jmp 0x46bccc
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x46bcf6
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0046e660
add esp, 4
lea edx, [ebp - 0x8c]
push edx
call fcn.0046dc50
add esp, 4
cmp dword [ebp - 0x94], 0
jne 0x46bd08
mov dword [ebp - 0x20], 1
jmp 0x46bd0f
mov dword [ebp - 0x20], 0
mov al, byte [ebp - 0x20]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x46c119
cmp dword [ebp - 0x7c], 0
jne 0x46bd30
mov dword [ebp - 0x24], 1
jmp 0x46bd37
mov dword [ebp - 0x24], 0
mov dl, byte [ebp - 0x24]
mov byte [ebp - 0xe], dl
movzx eax, byte [ebp - 0xe]
test eax, eax
jne 0x46c119
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x58], ecx
movzx edx, byte [ebp - 0x14]
push edx
mov ecx, dword [ebp - 0x58]
call fcn.00402010
lea ecx, [ebp - 0x48]
call fcn.00401cd0
nop
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
push eax
call fcn.0045f880
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x46bd88
mov dword [ebp - 0x28], 1
jmp 0x46bd8f
mov dword [ebp - 0x28], 0
mov cl, byte [ebp - 0x28]
mov byte [ebp - 0xf], cl
movzx edx, byte [ebp - 0xf]
test edx, edx
jne 0x46bea5
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0xd4]
push edx
call fcn.00462900
add esp, 0xc
mov byte [ebp - 4], 6
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xd4]
push ecx
lea edx, [ebp - 0xbc]
push edx
call fcn.00462900
add esp, 0xc
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.00401910
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46be85
lea ecx, [ebp - 0xbc]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004226c0
nop
cmp dword [ebp + 0xc], 0
je 0x46be26
lea edx, [ebp - 0xd4]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004226c0
nop
mov dword [ebp - 0x60], 1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call fcn.00401940
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00401940
nop
mov eax, dword [ebp - 0x60]
jmp 0x46c146
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xbc]
call fcn.00401940
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xd4]
call fcn.00401940
nop
lea eax, [ebp - 0x48]
push eax
call fcn.0045f9c0
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x46bec0
mov dword [ebp - 0x2c], 1
jmp 0x46bec7
mov dword [ebp - 0x2c], 0
mov cl, byte [ebp - 0x2c]
mov byte [ebp - 0x10], cl
movzx edx, byte [ebp - 0x10]
test edx, edx
jne 0x46bfdd
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x104]
push edx
call fcn.00462900
add esp, 0xc
mov byte [ebp - 4], 8
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x104]
push ecx
lea edx, [ebp - 0xec]
push edx
call fcn.00462900
add esp, 0xc
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xec]
call fcn.00401910
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46bfbd
lea ecx, [ebp - 0xec]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004226c0
nop
cmp dword [ebp + 0xc], 0
je 0x46bf5e
lea edx, [ebp - 0x104]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.004226c0
nop
mov dword [ebp - 0x68], 1
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xec]
call fcn.00401940
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x104]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00401940
nop
mov eax, dword [ebp - 0x68]
jmp 0x46c146
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xec]
call fcn.00401940
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x104]
call fcn.00401940
nop
lea eax, [ebp - 0x48]
push eax
call fcn.0045f6c0
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x46bff8
mov dword [ebp - 0x30], 1
jmp 0x46bfff
mov dword [ebp - 0x30], 0
mov cl, byte [ebp - 0x30]
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x46c10c
lea eax, [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.00462900
add esp, 0xc
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x11c]
push edx
call fcn.00462900
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x11c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46c0ec
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004226c0
nop
cmp dword [ebp + 0xc], 0
je 0x46c090
lea ecx, [ebp - 0x134]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.004226c0
nop
mov dword [ebp - 0x6c], 1
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x11c]
call fcn.00401940
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x134]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00401940
nop
mov eax, dword [ebp - 0x6c]
jmp 0x46c146
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x11c]
call fcn.00401940
nop
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x134]
call fcn.00401940
nop
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
mov dword [ebp - 0x70], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa4]
call fcn.00401940
nop
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret