Function at 0x474040
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4a361f
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d32ac]
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 [0x4a7350]
test eax, eax
je 0x474818
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.004691c0
cmp eax, esi
jl 0x47480f
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
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.00468ea0
test eax, eax
je 0x4747e7
jmp 0x474107
xor esi, esi
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
mov edx, dword [0x4dbc78]
add eax, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
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 [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov byte [esp + 0xa8], 4
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x28], esi
mov byte [esp + 0xa8], 5
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0xa8], 6
mov edx, dword [0x4dbc78]
mov eax, dword [edx + 0xc]
mov ecx, 0x4dbc78
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
lea ebx, [esp + 0x20]
mov byte [esp + 0xa8], 7
call fcn.004697c0
mov edi, eax
call fcn.00469840
mov eax, dword [esp + 0x20]
cmp dword [eax - 0xc], 0
jne 0x47427e
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 0x47420b
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 0x474233
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 0x474257
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 0x474782
mov ecx, dword [ebp]
push ebp
jmp 0x47477b
cmp dword [eax - 0xc], 3
jle 0x4742b4
lea ecx, [esp + 0x20]
push ecx
mov eax, 3
xor ecx, ecx
lea edx, [esp + 0x4c]
call fcn.00404be0
or dword [esp + 0x2c], 1
push eax
mov ecx, 0x4c337c
call fcn.00432350
add esp, 4
test al, al
je 0x4742b4
mov bl, 1
jmp 0x4742b6
xor bl, bl
test byte [esp + 0x2c], 1
je 0x4742e2
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 0x4742e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x47433c
mov ecx, 4
lea esi, [esp + 0x5c]
lea edx, [esp + 0x20]
call fcn.00409bf0
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 8
call fcn.00403b10
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 0x474332
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x44], 1
jmp 0x474353
lea eax, [esp + 0x20]
lea edi, [esp + 0x18]
call fcn.00403b10
mov dword [esp + 0x44], 0
mov bl, 7
mov ebp, dword [esp + 0x18]
cmp dword [ebp - 0xc], 0
jle 0x47437b
push 0x20
push ebp
call fcn.00480384
add esp, 8
test eax, eax
je 0x47437b
sub eax, ebp
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x474409
lea eax, [esp + 0x18]
lea edi, [esp + 0x28]
call fcn.00403b10
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.00469460
test eax, eax
jne 0x4743ef
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 0x4743bf
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 0x4743e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
jmp 0x4744b9
push 0x4aa6a0
xor ebx, ebx
lea eax, [esp + 0x28]
mov ebp, 1
call fcn.00404880
jmp 0x47467c
lea ecx, [esp + 0x18]
push ecx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x54]
call fcn.00404be0
lea edi, [esp + 0x28]
mov byte [esp + 0xa8], 9
call fcn.00403b10
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 0x474453
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.00469460
test eax, eax
jne 0x474514
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 0x47448e
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 0x4744b6
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 0x4744da
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 0x4744fe
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.00474860
jmp 0x4747ca
lea ecx, [esi + 1]
lea esi, [esp + 0x60]
lea edx, [esp + 0x18]
call fcn.00409bf0
lea edi, [esp + 0x18]
mov byte [esp + 0xa8], 0xa
call fcn.00403b10
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 0x47455c
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 0x474580
push 0x20
push esi
call fcn.00480384
add esp, 8
test eax, eax
je 0x474580
sub eax, esi
sar eax, 1
mov esi, eax
cmp esi, 0xffffffff
jne 0x4745db
xor ecx, ecx
lea esi, [esp + 0x58]
lea edx, [esp + 0x18]
call fcn.00409bf0
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xb
call fcn.00403b10
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 0x4745c7
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.0047ff70
add esp, 4
mov ebp, eax
jmp 0x47467c
lea edx, [esp + 0x18]
push edx
mov eax, esi
xor ecx, ecx
lea edx, [esp + 0x50]
call fcn.00404be0
lea edi, [esp + 0x1c]
mov byte [esp + 0xa8], 0xc
call fcn.00403b10
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 0x474625
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.0047ff70
lea ecx, [esi + 1]
add esp, 4
lea esi, [esp + 0x54]
lea edx, [esp + 0x18]
mov ebp, eax
call fcn.00409bf0
lea edi, [esp + 0x24]
mov byte [esp + 0xa8], 0xd
call fcn.00403b10
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 0x47467c
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.00403b10
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.00403b10
mov eax, dword [esp + 0xb4]
lea edx, [esp + 0x30]
push edx
push eax
call fcn.00474cd0
mov esi, eax
lea eax, [esp + 0x30]
mov edi, esi
call fcn.00403b10
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.00403b10
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 0x47470a
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 0x474732
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 0x47475a
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 0x474782
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 0x4747aa
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 0x4747ca
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.00468ea0
test eax, eax
jne 0x474105
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 0x47480f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x64]
call fcn.00469170
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 0x47483b
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