Function at 0x4c2120
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x52ac8f
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0xa8], esi
mov edi, dword [esp + 0xb0]
push edi
call dword [0x5313c0]
test eax, eax
je 0x4c28f8
mov dword [esp + 0x64], 0xffffffff
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x84], esi
mov eax, edi
lea ecx, [esp + 0x64]
mov byte [esp + 0xa8], 1
call fcn.004659f0
cmp eax, esi
jl 0x4c28ef
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x68]
mov byte [esp + 0xac], 2
call fcn.004656d0
test eax, eax
je 0x4c28c7
jmp 0x4c21e7
xor esi, esi
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
mov edx, dword [0x5759e8]
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call eax
add eax, 0x10
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], esi
mov byte [esp + 0xa8], 3
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0xa8], 4
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov byte [esp + 0xa8], 5
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa8], 6
mov edx, dword [0x5759e8]
mov eax, dword [edx + 0xc]
mov ecx, 0x5759e8
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x20]
mov byte [esp + 0xa8], 7
call fcn.0040d970
mov edi, eax
call fcn.0040d9f0
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jne 0x4c235e
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c22eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2313
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 0xfffffff0
mov byte [esp + 0xa8], 4
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2337
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
add ebp, 0xfffffff0
mov byte [esp + 0xa8], 3
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c2862
mov ecx, dword [ebp]
push ebp
jmp 0x4c285b
cmp dword [eax - 0xc], 3
jle 0x4c2394
lea ecx, [esp + 0x20]
push ecx
mov eax, 3
xor ecx, ecx
lea edx, [esp + 0x4c]
call fcn.004117d0
or dword [esp + 0x2c], 1
push eax
mov ecx, 0x5501ec
call fcn.0040d440
add esp, 4
test al, al
je 0x4c2394
mov bl, 1
jmp 0x4c2396
xor bl, bl
test byte [esp + 0x2c], 1
je 0x4c23c2
mov eax, dword [esp + 0x48]
and dword [esp + 0x2c], 0xfffffffe
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c23c2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4c241c
mov ecx, 4
lea esi, [esp + 0x5c]
lea edx, [esp + 0x20]
call fcn.0040d210
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 8
call fcn.00401dd0
mov bl, 7
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 1
jmp 0x4c2433
lea eax, [esp + 0x20]
lea edi, [esp + 0x18]
call fcn.00401dd0
mov dword [esp + 0x44], 0
mov bl, 7
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jle 0x4c245b
push 0x20
push ebp
call fcn.00500984
add esp, 8
test eax, eax
je 0x4c245b
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c24e9
lea eax, [esp + 0x18]
lea edi, [esp + 0x28]
call fcn.00401dd0
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.004667d0
test eax, eax
jne 0x4c24cf
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c249f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c24c7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x4c2599
push 0x535ef0
xor ebx, ebx
lea eax, [esp + 0x28]
mov ebp, 1
call fcn.004026c0
jmp 0x4c275c
lea ecx, [esp + 0x18]
push ecx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x54]
call fcn.004117d0
lea edi, [esp + 0x28]
mov byte [esp + 0xa8], 9
call fcn.00401dd0
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c2533
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x28]
mov ecx, edi
call fcn.004667d0
test eax, eax
jne 0x4c25f4
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c256e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xa8], 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c25ba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0xa8], 3
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c25de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [esp + 0x30]
mov byte [esp + 0xa8], 2
call fcn.004c2940
jmp 0x4c28aa
lea ecx, [esi + 1]
lea esi, [esp + 0x60]
lea edx, [esp + 0x18]
call fcn.0040d210
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 0xa
call fcn.00401dd0
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x60]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c263c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jle 0x4c2660
push 0x20
push esi
call fcn.00500984
add esp, 8
test eax, eax
je 0x4c2660
sub eax, esi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4c26bb
xor ecx, ecx
lea esi, [esp + 0x58]
lea edx, [esp + 0x18]
call fcn.0040d210
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xb
call fcn.00401dd0
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c26a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ffd6c
add esp, 4
mov ebp, eax
jmp 0x4c275c
lea edx, [esp + 0x18]
push edx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x50]
call fcn.004117d0
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xc
call fcn.00401dd0
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2705
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004ffd6c
lea ecx, [esi + 1]
add esp, 4
lea esi, [esp + 0x54]
lea edx, [esp + 0x18]
mov ebp, eax
call fcn.0040d210
lea edi, [esp + 0x24]
mov byte [esp + 0xa8], 0xd
call fcn.00401dd0
mov byte [esp + 0xa8], bl
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c275c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x28]
lea edi, [esp + 0x30]
call fcn.00401dd0
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x24]
lea edi, [esp + 0x3c]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ecx
call fcn.00401dd0
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.004c2cc0
mov esi, eax
lea eax, [esp + 0x30]
mov edi, esi
call fcn.00401dd0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
lea edi, [esi + 0xc]
lea eax, [esp + 0x3c]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
call fcn.00401dd0
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov byte [esp + 0xa8], 6
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c27ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 5
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2812
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 4
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c283a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c2862
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0xa8], 2
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c288a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c28aa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
push ecx
lea eax, [esp + 0x68]
call fcn.004656d0
test eax, eax
jne 0x4c21e5
mov edi, dword [esp + 0xb0]
mov byte [esp + 0xa8], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c28ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x64]
call fcn.004659a0
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0xa8], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c291b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret 8