Function at 0x407090
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e75ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov edi, edx
mov dword [ebp - 0x38], esi
mov ecx, 0x524e73
mov dword [ebp - 4], 0
call fcn.004e6414
mov bl, 1
mov byte [ebp - 4], bl
push dword [esi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
jne 0x4070e7
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x41
jmp 0x4070f8
push dword [edi]
call esi
test eax, eax
jne 0x407126
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x42
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407113
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
mov edx, 0x51006c
lea ecx, [ebp - 0x2c]
call fcn.00407840
add esp, 4
push str.___o_
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.004079d0
add esp, 4
push dword [ebp + 8]
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00407b60
add esp, 4
push str.___aoa
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x20]
call fcn.004079d0
add esp, 4
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.00407b60
add esp, 4
push 0x510048
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x18]
call fcn.004079d0
add esp, 4
mov edx, dword [ebp - 0x1c]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071bf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x20]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x24]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4071f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x28]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40720d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40722b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
je 0x4072a7
push ecx
mov edx, str.__p_
lea ecx, [ebp - 0x34]
call fcn.00407840
add esp, 4
push 0x50fc24
mov edx, eax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x30]
call fcn.004079d0
add esp, 4
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x18]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00408e20
mov edx, dword [ebp - 0x30]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407289
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xc
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4072a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xffffffffffffffff
push 1
push 0
push 0
push ecx
mov ecx, dword [ebp - 0x38]
mov edi, esp
mov dword [ebp - 0x34], edi
mov bh, 1
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00408b90
add eax, 0x10
lea ecx, [ebp - 0x18]
mov dl, bh
mov dword [edi], eax
call fcn.00406800
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add esp, 0x14
add edx, 0xfffffff0
mov dword [eax], ecx
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407309
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x407309
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x407321
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