Function at 0x482010
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4d103f
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x50397c]
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 [0x4d5364]
test eax, eax
je 0x4827e8
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.0042d7c0
cmp eax, esi
jl 0x4827df
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
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.0042d4a0
test eax, eax
je 0x4827b7
jmp 0x4820d7
xor esi, esi
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
mov edx, dword [0x50c48c]
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
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 [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0xa8], 4
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov byte [esp + 0xa8], 5
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa8], 6
mov edx, dword [0x50c48c]
mov eax, dword [edx + 0xc]
mov ecx, 0x50c48c
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x20]
mov byte [esp + 0xa8], 7
call fcn.0042ecc0
mov edi, eax
call fcn.0042ed40
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jne 0x48224e
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 0x4821db
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 0x482203
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 0x482227
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 0x482752
mov ecx, dword [ebp]
push ebp
jmp 0x48274b
cmp dword [eax - 0xc], 3
jle 0x482284
lea ecx, [esp + 0x20]
push ecx
mov eax, 3
xor ecx, ecx
lea edx, [esp + 0x4c]
call fcn.004091c0
or dword [esp + 0x2c], 1
push eax
mov ecx, 0x4f08a4
call fcn.00406690
add esp, 4
test al, al
je 0x482284
mov bl, 1
jmp 0x482286
xor bl, bl
test byte [esp + 0x2c], 1
je 0x4822b2
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 0x4822b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x48230c
mov ecx, 4
lea esi, [esp + 0x5c]
lea edx, [esp + 0x20]
call fcn.004091a0
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 8
call fcn.00406aa0
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 0x482302
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 1
jmp 0x482323
lea eax, [esp + 0x20]
lea edi, [esp + 0x18]
call fcn.00406aa0
mov dword [esp + 0x44], 0
mov bl, 7
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jle 0x48234b
push 0x20
push ebp
call fcn.004aafe2
add esp, 8
test eax, eax
je 0x48234b
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4823d9
lea eax, [esp + 0x18]
lea edi, [esp + 0x28]
call fcn.00406aa0
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.0042e780
test eax, eax
jne 0x4823bf
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 0x48238f
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 0x4823b7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x482489
push 0x4e355c
xor ebx, ebx
lea eax, [esp + 0x28]
mov ebp, 1
call fcn.00406770
jmp 0x48264c
lea ecx, [esp + 0x18]
push ecx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x54]
call fcn.004091c0
lea edi, [esp + 0x28]
mov byte [esp + 0xa8], 9
call fcn.00406aa0
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 0x482423
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.0042e780
test eax, eax
jne 0x4824e4
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 0x48245e
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 0x482486
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 0x4824aa
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 0x4824ce
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.00482830
jmp 0x48279a
lea ecx, [esi + 1]
lea esi, [esp + 0x60]
lea edx, [esp + 0x18]
call fcn.004091a0
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 0xa
call fcn.00406aa0
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 0x48252c
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 0x482550
push 0x20
push esi
call fcn.004aafe2
add esp, 8
test eax, eax
je 0x482550
sub eax, esi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4825ab
xor ecx, ecx
lea esi, [esp + 0x58]
lea edx, [esp + 0x18]
call fcn.004091a0
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xb
call fcn.00406aa0
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 0x482597
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.004aaad8
add esp, 4
mov ebp, eax
jmp 0x48264c
lea edx, [esp + 0x18]
push edx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x50]
call fcn.004091c0
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xc
call fcn.00406aa0
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 0x4825f5
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.004aaad8
lea ecx, [esi + 1]
add esp, 4
lea esi, [esp + 0x54]
lea edx, [esp + 0x18]
mov ebp, eax
call fcn.004091a0
lea edi, [esp + 0x24]
mov byte [esp + 0xa8], 0xd
call fcn.00406aa0
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 0x48264c
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.00406aa0
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.00406aa0
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.00482bb0
mov esi, eax
lea eax, [esp + 0x30]
mov edi, esi
call fcn.00406aa0
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.00406aa0
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 0x4826da
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 0x482702
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 0x48272a
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 0x482752
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 0x48277a
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 0x48279a
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.0042d4a0
test eax, eax
jne 0x4820d5
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 0x4827df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x64]
call fcn.0042d770
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 0x48280b
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