Function at 0x407350
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d835d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ecx, 0x5100a3
mov dword [ebp - 4], 0
call fcn.004b532d
mov eax, dword [ebp + 8]
mov bl, 1
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 4], bl
push dword [eax]
call esi
test eax, eax
jne 0x4073a3
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x41
jmp 0x4073b7
mov edi, dword [ebp + 0xc]
push dword [edi]
call esi
test eax, eax
jne 0x4073e8
mov eax, dword [ebp + 0x1c]
mov dword [eax], 0x42
mov edx, dword [ebp + 0x18]
or eax, 0xffffffff
add edx, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4073d5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x28]
push 0x4e02a4
push eax
call fcn.00403ed0
add esp, 0xc
push str.___o_
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
call fcn.00403e00
add esp, 0xc
push dword [ebp + 0x10]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00403d50
add esp, 0xc
push str.___aoa
push eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 4
push eax
call fcn.00403e00
add esp, 0xc
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00403d50
add esp, 0xc
push 0x4e0280
push eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 6
push eax
call fcn.00403e00
add esp, 0xc
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
mov byte [ebp - 4], 8
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407486
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov byte [ebp - 4], 9
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074a4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, esi
mov byte [ebp - 4], 0xa
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074c2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
mov byte [ebp - 4], 0xb
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, esi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4074fe
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x40757f
push ecx
lea eax, [ebp - 0x30]
push 0x4e02b0
push eax
call fcn.00403ed0
add esp, 0xc
push 0x4e02ac
push eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
push eax
call fcn.00403e00
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
push dword [eax - 0xc]
push eax
call fcn.004040d0
mov edx, dword [ebp - 0x2c]
mov eax, esi
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407561
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x30]
mov eax, esi
mov byte [ebp - 4], 0xc
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40757f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xffffffffffffffff
push 1
push 0
push 0
push 1
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push ecx
mov edi, esp
mov dword [ebp - 0x34], edi
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.004043f0
add esp, 4
add eax, 0x10
mov dword [edi], eax
call fcn.004071a0
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0x1c]
add esp, 0x1c
mov byte [ebp - 4], 1
add edx, 0xfffffff0
mov dword [eax], ecx
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4075e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4075e8
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x407607
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret