Function at 0x401ce0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x451598]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004033b0
call fcn.0040d815
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401d35
push 0x80004005
call fcn.00405a30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x7d0
mov byte [ebp - 4], 1
call fcn.0040deaa
cmp eax, ebx
je 0x401e1a
push 0x7d0
push eax
lea ecx, [ebp - 0x14]
call fcn.00405e40
cmp eax, ebx
je 0x401e1a
call fcn.0040d815
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401d8a
push 0x80004005
call fcn.00405a30
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x4558d8]
push ecx
push edx
lea eax, [ebp - 0x18]
push str._s_s
push eax
call fcn.00405df0
mov edi, dword [ebp - 0x18]
add esp, 0x10
cmp edi, ebx
je 0x401dea
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401dc5
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [esi + 8]
call fcn.00405d50
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esi + 4], eax
jmp 0x401df5
lea ecx, [esi + 8]
call fcn.00406150
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0x401e52
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 0x401e1a
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e3c
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 esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00401f60
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401e6a
mov eax, esi
call fcn.004022f0
mov dword [esi + 0x10], eax
cmp dword [esi + 0x10], ebx
je 0x401edc
mov eax, esi
call fcn.00402290
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401edc
mov ecx, esi
call fcn.00402340
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401edc
mov eax, esi
call fcn.00402830
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401edc
mov eax, esi
call fcn.00402890
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401edc
push esi
call fcn.004028f0
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401edc
push esi
call fcn.00402c10
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401edc
mov eax, esi
call fcn.00402220
cmp eax, ebx
mov dword [esi + 0x10], eax
je 0x401edc
push esi
call fcn.00403170
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x401ee4
push ebx
mov ecx, esi
call fcn.004033b0
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 0x401f04
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 - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4