Function at 0x414110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ac503
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x4f3168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00401930
mov eax, dword [ebp - 0x22c]
xor edi, edi
or ebx, 0xffffffff
mov dword [ebp - 4], 0
cmp dword [eax - 0xc], edi
je 0x414594
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 1
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x224], esi
cmp dword [esi - 0xc], edi
mov edi, dword [0x4b42d0]
mov byte [ebp - 4], 2
jne 0x41451b
mov eax, dword [ebp - 0x22c]
cmp dword [eax - 0xc], 0
jl 0x414206
push str.:__
push eax
call fcn.0048c5d5
add esp, 8
test eax, eax
je 0x414206
sub eax, dword [ebp - 0x22c]
sar eax, 1
cmp eax, 1
jne 0x414206
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401cd0
mov esi, dword [ebp - 0x224]
push esi
call edi
test eax, eax
jne 0x414206
lea ecx, [ebp - 0x224]
call fcn.004027d0
mov esi, dword [ebp - 0x224]
cmp dword [esi - 0xc], 0
jne 0x41451b
cmp dword [ebp + 0xc], 0
jne 0x41435b
xor eax, eax
push 0x20a
push eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push eax
call fcn.0048d890
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [0x4b426c]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00401dd0
mov edi, dword [ebp - 0x220]
push 0x5c
push edi
call fcn.0048e14e
add esp, 8
test eax, eax
je 0x4142c3
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
je 0x4142c3
inc eax
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x220]
call fcn.00403cb0
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 3
call fcn.00401cd0
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4142c3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
je 0x414355
lea eax, [ebp - 0x220]
push eax
call fcn.00418320
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00413e30
add esp, 0x10
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 4
call fcn.00401cd0
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41432f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
mov edi, dword [0x4b42d0]
push esi
call edi
test eax, eax
jne 0x41435b
lea ecx, [ebp - 0x224]
call fcn.004027d0
mov esi, dword [ebp - 0x224]
jmp 0x41435b
mov edi, dword [0x4b42d0]
cmp dword [esi - 0xc], 0
jne 0x41451b
lea ecx, [ebp - 0x220]
call fcn.004027d0
lea eax, [ebp - 0x228]
push eax
call fcn.00413f30
add esp, 4
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 5
call fcn.00401cd0
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4143b2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
je 0x414438
lea eax, [ebp - 0x220]
push eax
call fcn.00418320
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00413e30
add esp, 0x10
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 6
call fcn.00401cd0
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41441a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
push esi
call edi
test eax, eax
jne 0x414438
lea ecx, [ebp - 0x224]
call fcn.004027d0
mov esi, dword [ebp - 0x224]
cmp dword [esi - 0xc], 0
jne 0x41451b
lea ecx, [ebp - 0x220]
call fcn.004027d0
lea eax, [ebp - 0x228]
push eax
call fcn.00414020
add esp, 4
push eax
lea ecx, [ebp - 0x220]
mov byte [ebp - 4], 7
call fcn.00401cd0
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41448f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
je 0x414515
lea eax, [ebp - 0x220]
push eax
call fcn.00418320
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00413e30
add esp, 0x10
push eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 8
call fcn.00401cd0
mov edx, dword [ebp - 0x228]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4144f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x224]
push esi
call edi
test eax, eax
jne 0x414515
lea ecx, [ebp - 0x224]
call fcn.004027d0
mov esi, dword [ebp - 0x224]
cmp dword [esi - 0xc], 0
je 0x41452f
push esi
call edi
test eax, eax
je 0x41452f
push esi
call dword [0x4b4250]
mov edi, eax
test edi, edi
jne 0x414554
push 0x9a
push 0x4b5400
push 0x4b4a2c
call fcn.0048daac
add esp, 0xc
push dword [ebp - 0x22c]
call dword [0x4b4250]
mov edi, eax
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414571
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x220]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x414594
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x22c]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x4145b8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048caf4
mov esp, ebp
pop ebp
ret