Function at 0x40c5a0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51af1f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
add esp, 0xffffff10
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov ecx, 0x55be7a
call fcn.0051a674
mov byte [ebp - 0x21], 1
mov byte [ebp - 4], 1
mov ecx, dword [ebx + 8]
call fcn.004100c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c629
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0x41
mov byte [ebp - 0x22], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x18]
call fcn.0040fee0
mov al, byte [ebp - 0x22]
jmp 0x40c98f
mov ecx, dword [ebx + 0xc]
call fcn.004100c0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c660
mov ecx, dword [ebx + 0x1c]
mov dword [ecx], 0x42
mov byte [ebp - 0x23], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x18]
call fcn.0040fee0
mov al, byte [ebp - 0x23]
jmp 0x40c98f
xor edx, edx
mov byte [ebp - 0x24], dl
xor eax, eax
mov byte [ebp - 0x25], al
xor ecx, ecx
mov byte [ebp - 0x26], cl
movzx edx, byte [ebp - 0x24]
push edx
movzx eax, byte [ebp - 0x25]
push eax
movzx ecx, byte [ebp - 0x26]
push ecx
lea ecx, [ebp - 0xc0]
call fcn.00413b50
mov ecx, eax
call fcn.0040caf0
mov dword [ebp - 0x74], eax
xor edx, edx
mov byte [ebp - 0x27], dl
xor eax, eax
mov byte [ebp - 0x28], al
xor ecx, ecx
mov byte [ebp - 0x29], cl
movzx edx, byte [ebp - 0x27]
push edx
movzx eax, byte [ebp - 0x28]
push eax
movzx ecx, byte [ebp - 0x29]
push ecx
lea ecx, [ebp - 0xd0]
call fcn.00413b00
mov ecx, eax
call fcn.0040caf0
mov dword [ebp - 0x5c], eax
xor edx, edx
mov byte [ebp - 0x2a], dl
xor eax, eax
mov byte [ebp - 0x2b], al
xor ecx, ecx
mov byte [ebp - 0x2c], cl
movzx edx, byte [ebp - 0x2a]
push edx
movzx eax, byte [ebp - 0x2b]
push eax
movzx ecx, byte [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00413ab0
mov ecx, eax
call fcn.0040caf0
mov dword [ebp - 0x44], eax
xor edx, edx
mov byte [ebp - 0x2d], dl
xor eax, eax
mov byte [ebp - 0x2e], al
xor ecx, ecx
mov byte [ebp - 0x2f], cl
mov edx, dword [ebx + 0xc]
push edx
movzx eax, byte [ebp - 0x2d]
push eax
movzx ecx, byte [ebp - 0x2e]
push ecx
movzx edx, byte [ebp - 0x2f]
push edx
lea ecx, [ebp - 0xf0]
call fcn.00413a60
mov ecx, eax
call fcn.0040caf0
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0040f550
add esp, 0xc
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
lea edx, [ebp - 0x88]
push edx
call fcn.0040f600
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebx + 0x10]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.0040f6b0
add esp, 0xc
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.0040f600
add esp, 0xc
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 5
lea ecx, [ebx + 0x18]
push ecx
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.0040f6b0
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp - 0x74]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.0040f600
add esp, 0xc
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x7c]
call fcn.0040fee0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x80]
call fcn.0040fee0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x84]
call fcn.0040fee0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x88]
call fcn.0040fee0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x8c]
call fcn.0040fee0
mov ecx, dword [ebx + 0x14]
call fcn.00410080
movzx eax, al
test eax, eax
jne 0x40c910
xor ecx, ecx
mov byte [ebp - 0x30], cl
xor edx, edx
mov byte [ebp - 0x31], dl
xor eax, eax
mov byte [ebp - 0x32], al
mov ecx, dword [ebx + 0x14]
push ecx
movzx edx, byte [ebp - 0x30]
push edx
movzx eax, byte [ebp - 0x31]
push eax
movzx ecx, byte [ebp - 0x32]
push ecx
lea ecx, [ebp - 0x100]
call fcn.00413ba0
mov ecx, eax
call fcn.0040caf0
push eax
lea edx, [ebp - 0xa4]
push edx
call fcn.0040f550
add esp, 0xc
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 0xd
push 0x544088
mov ecx, dword [ebp - 0x94]
push ecx
lea edx, [ebp - 0xa0]
push edx
call fcn.0040f600
add esp, 0xc
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x9c]
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040fdc0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xa0]
call fcn.0040fee0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xa4]
call fcn.0040fee0
push 0xffffffffffffffff
push 1
push 0
push 0
push 1
lea edx, [ebp - 0x38]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0xb0], esp
mov eax, dword [ebx + 8]
push eax
call fcn.00410000
call fcn.0040b5d0
add esp, 0x1c
mov dword [ebp - 0xa8], eax
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebp - 0xa8]
mov dword [ecx], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.0040fee0
jmp 0x40c964
mov dword [ebp - 4], 0
jmp 0x40c977
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x33], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x18]
call fcn.0040fee0
mov al, byte [ebp - 0x33]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret