Function at 0x401f80
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52eb00
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x57ddc8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov esi, ecx
push ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], ebx
call fcn.00403a30
call fcn.0040cf26
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401fd8
push 0x80004005
call fcn.00406140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x24], eax
push 0x7d0
mov byte [ebp - 4], 1
call fcn.0040d9e8
cmp eax, ebx
je 0x4020c5
push 0x7d0
push eax
lea ecx, [ebp - 0x24]
call fcn.00405cc0
cmp eax, ebx
je 0x4020c5
call fcn.0040cf26
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40202d
push 0x80004005
call fcn.00406140
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x585a54]
push ecx
push edx
lea eax, [ebp - 0x28]
push str._s_s
push eax
call fcn.00405b60
mov edi, dword [ebp - 0x28]
add esp, 0x10
cmp edi, ebx
je 0x402095
mov eax, edi
lea edx, [eax + 2]
jmp 0x402070
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402070
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esi + 8]
call fcn.00406190
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esi + 4], eax
jmp 0x4020a0
lea ecx, [esi + 8]
call fcn.00405f00
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x402105
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050b7d0
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00402270
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x40211c
push esi
call fcn.00402610
mov dword [esi + 0x10], eax
cmp dword [esi + 0x10], ebx
je 0x4021ff
push esi
call fcn.004025b0
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
push esi
call fcn.00402670
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
push esi
call fcn.00402bf0
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
push esi
call fcn.00402c70
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
mov ecx, esi
call fcn.00402cf0
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
push esi
call fcn.00403040
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
push esi
call fcn.00402530
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
lea ecx, [ebp - 0x20]
push ecx
lea edx, [esi + 0xa4]
push edx
push esi
mov ecx, 0x1900
mov dword [ebp - 0x20], 0x1901
mov dword [ebp - 0x1c], 0x1902
mov dword [ebp - 0x18], ebx
call fcn.004032c0
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0xb4]
push ecx
push esi
mov ecx, 0x1964
mov dword [ebp - 0x20], 0x1965
mov dword [ebp - 0x1c], 0x1966
mov dword [ebp - 0x18], ebx
call fcn.004032c0
mov dword [esi + 0x10], eax
cmp eax, ebx
je 0x4021ff
mov ecx, esi
call fcn.004037c0
mov dword [esi + 0x10], eax
cmp eax, ebx
jne 0x402207
push ebx
mov ecx, esi
call fcn.00403a30
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402227
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402249
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x10]
jmp 0x4020e9