Function at 0x47dfa0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b054b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push esi
push edi
mov eax, dword [0x4f3168]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [0x4b42d0]
or edi, 0xffffffff
test eax, eax
je 0x47e5a8
push 0
lea ecx, [ebp - 0x9c]
call fcn.0044d200
push 1
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 1
call fcn.0044e8a0
test eax, eax
js 0x47e599
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 2
call fcn.0044edd0
test eax, eax
je 0x47e579
jmp 0x47e050
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x44], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 3
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 4
call dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 5
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 6
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x30], edi
mov eax, dword [0x4f2efc]
mov ecx, 0x4f2efc
mov byte [ebp - 4], 7
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.0044f5e0
mov ecx, eax
call fcn.0044f530
mov eax, dword [ebp - 0x18]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x47e187
add ebx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e129
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e149
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e166
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e526
mov ecx, dword [edx]
push edx
jmp 0x47e521
cmp eax, 3
jle 0x47e1bd
push 3
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x18]
call fcn.00403df0
mov ebx, dword [ebp - 0x2c]
push 0x4cb9d4
or ebx, 1
push eax
mov dword [ebp - 0x2c], ebx
call fcn.0041e220
add esp, 8
test al, al
je 0x47e1c0
mov byte [ebp - 0xd], 1
jmp 0x47e1c4
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 0xd], 0
test bl, 1
je 0x47e1f0
mov edx, dword [ebp - 0x48]
and ebx, 0xfffffffe
mov dword [ebp - 0x2c], ebx
add edx, 0xfffffff0
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e1f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47e1f3
or ebx, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x47e23d
push 4
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
call fcn.00405280
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00401cd0
mov edx, dword [ebp - 0x60]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e234
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 0x1c], 1
jmp 0x47e250
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401cd0
mov dword [ebp - 0x1c], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jle 0x47e417
push 0x20
push esi
call fcn.0048f278
add esp, 8
test eax, eax
je 0x47e417
sub eax, esi
sar eax, 1
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x47e417
push eax
push 0
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403df0
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00401cd0
mov edx, dword [ebp - 0x5c]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x47e2ba
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.0044dc60
add esp, 4
test eax, eax
je 0x47e4ab
mov eax, dword [ebp - 0x28]
inc eax
push eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405280
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xb
call fcn.00401cd0
mov edx, dword [ebp - 0x54]
add edx, 0xfffffff0
or edi, 0xffffffff
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e30f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
cmp dword [esi - 0xc], 0
jle 0x47e3cd
push 0x20
push esi
call fcn.0048f278
add esp, 8
test eax, eax
je 0x47e3cd
sub eax, esi
sar eax, 1
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x47e3cd
push eax
push 0
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x14]
call fcn.00403df0
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xd
call fcn.00401cd0
mov edx, dword [ebp - 0x64]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x47e379
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x30]
push edi
call fcn.00494417
mov ecx, dword [ebp - 0x4c]
add esp, 4
inc ecx
mov dword [ebp - 0x28], eax
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405280
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xe
call fcn.00401cd0
mov edx, dword [ebp - 0x50]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e449
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47e449
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x14]
call fcn.00405280
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00401cd0
mov edx, dword [ebp - 0x58]
add edx, 0xfffffff0
mov byte [ebp - 4], 8
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x47e406
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x30]
push edi
call fcn.00494417
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x47e449
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
call fcn.00401cd0
mov ebx, dword [ebp - 0x24]
push ebx
call fcn.0044dc60
add esp, 4
test eax, eax
je 0x47e4ab
push 0
push 0x4b46cc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 1
call fcn.004040d0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x44]
call fcn.00401cd0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401cd0
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x44]
push eax
call fcn.0047d310
mov ecx, eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.00401cd0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 8], ecx
lea ecx, [eax + 0xc]
lea eax, [ebp - 0x38]
push eax
call fcn.00401cd0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x34]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x20]
add edx, 0xfffffff0
mov byte [ebp - 4], 7
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e4cc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
or edi, 0xffffffff
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e4ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 5
lea eax, [ebx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e509
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e526
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
mov byte [ebp - 4], 2
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e546
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e562
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x9c]
call fcn.0044edd0
test eax, eax
jne 0x47e050
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e599
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.0044d3b0
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x47e5c9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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