Function at 0x40b900
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50314d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, 0x546d80
call fcn.00501f54
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.0040d2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b972
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x41
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.0040d100
mov al, byte [ebp - 0x12]
jmp 0x40bb8c
mov ecx, dword [ebp + 0xc]
call fcn.0040d2e0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b9a9
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0x42
mov byte [ebp - 0x13], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.0040d100
mov al, byte [ebp - 0x13]
jmp 0x40bb8c
mov edx, dword [ebp + 0xc]
push edx
push 0x52c8a8
lea eax, [ebp - 0x54]
push eax
call fcn.0040c920
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 2
push str.___o_
mov edx, dword [ebp - 0x20]
push edx
lea eax, [ebp - 0x50]
push eax
call fcn.0040c9e0
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0040caa0
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], edx
mov byte [ebp - 4], 4
push str.___aoa
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040c9e0
add esp, 0xc
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov byte [ebp - 4], 5
lea eax, [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.0040caa0
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 4], 6
push 0x52c884
mov ecx, dword [ebp - 0x40]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040c9e0
add esp, 0xc
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x44]
call fcn.0040d100
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x48]
call fcn.0040d100
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x4c]
call fcn.0040d100
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
call fcn.0040d100
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x54]
call fcn.0040d100
mov ecx, dword [ebp + 0x14]
call fcn.0040d2a0
movzx eax, al
test eax, eax
jne 0x40bb1c
mov ecx, dword [ebp + 0x14]
push ecx
push 0x52c8b4
lea edx, [ebp - 0x6c]
push edx
call fcn.0040c920
add esp, 0xc
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0xd
push 0x52c8b0
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x68]
push edx
call fcn.0040c9e0
add esp, 0xc
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0040cfe0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x68]
call fcn.0040d100
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x6c]
call fcn.0040d100
push 0xffffffffffffffff
push 1
push 0
push 0
push 1
lea edx, [ebp - 0x18]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x78], esp
mov eax, dword [ebp + 8]
push eax
call fcn.0040d220
call fcn.0040aa80
add esp, 0x1c
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 0x70]
mov dword [ecx], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.0040d100
jmp 0x40bb64
mov dword [ebp - 4], 0
jmp 0x40bb74
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x14], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x18]
call fcn.0040d100
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret