Function at 0x402da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9dfd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x505070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 1
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or edi, 0xffffffff
test eax, eax
je 0x402e03
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
mov ecx, dword [ebp + 0xc]
lea ecx, [ecx - 0x10]
call fcn.00405420
add eax, 0x10
mov ecx, ebx
mov dword [esi], eax
call fcn.00403020
jmp 0x402f78
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebx + 0x118]
call fcn.00403c60
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebx + 0x11c]
call fcn.00403c60
push 0x4dfc58
lea ecx, [ebp - 0x14]
call fcn.00405360
mov byte [ebp - 4], 2
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x402e47
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
call fcn.00405a90
mov ecx, eax
test ecx, ecx
jne 0x402e6b
push 0x80004005
call fcn.00405cb0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebx + 0x118]
lea ecx, [ebp - 0x24]
call fcn.00402080
add esp, 0xc
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x402eb2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, edi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402ed0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, edi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402eee
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
sub esp, 8
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004037d0
mov byte [ebp - 4], 9
mov eax, dword [ebx + 0x11c]
mov esi, dword [ebx + 0x128]
mov dword [ebp - 0x18], eax
mov eax, dword [0x51baf4]
test eax, eax
jne 0x402f3c
push 0x7c
call fcn.0049f1e8
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
mov byte [ebp - 4], 0xa
call fcn.0046b820
mov byte [ebp - 4], 9
mov dword [0x51baf4], eax
push 0
push ebx
push esi
push dword [ebp - 0x18]
mov ecx, eax
mov byte [ebp - 4], 8
call fcn.0046ba10
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x402f78
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x402f78
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x402f78
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402f96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x402fb5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8