Function at 0x402060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f8b90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
push edi
mov ebx, ecx
push eax
push 0x4a4
mov dword [esp + 0x24], ebx
call fcn.00488170
lea esi, [ebx + 0x140]
xor edi, edi
mov ecx, esi
mov dword [esp + 0x28], edi
call fcn.004d8070
mov dword [esi], 0x51d804
lea esi, [ebx + 0x17c]
mov byte [esp + 0x28], 1
mov ecx, esi
call fcn.004d8070
mov dword [esi], 0x51e014
lea esi, [ebx + 0x1b8]
mov dword [esi], 0x50df50
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
lea ebp, [ebx + 0x1cc]
push edi
push edi
mov ecx, ebp
mov byte [esp + 0x30], 3
call fcn.0042da70
mov ecx, dword [0x574900]
mov dword [ebx + 0x1ec], ecx
lea ecx, [ebx + 0x1f0]
mov byte [esp + 0x28], 5
call fcn.004952d0
push 0x138
mov byte [esp + 0x2c], 6
mov dword [ebx], 0x50de80
mov dword [ebx + 0x22c], edi
call fcn.004dbbfa
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov byte [esp + 0x28], 7
je 0x40213f
push ebx
mov ecx, eax
call fcn.00408d50
jmp 0x402141
xor eax, eax
push 0x184
mov byte [esp + 0x2c], 6
mov dword [ebx + 0x224], eax
call fcn.004dbbfa
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, edi
mov byte [esp + 0x28], 8
je 0x402170
push ebp
mov ecx, eax
call fcn.00405270
jmp 0x402172
xor eax, eax
mov byte [esp + 0x28], 6
mov dword [ebx + 0x228], eax
call fcn.0040b6b0
mov edi, eax
push 0xffffffffffffffff
add edi, 0x38c
mov ecx, esi
mov edx, dword [edi + 8]
push edx
call fcn.00403360
mov eax, dword [edi + 8]
mov edi, dword [edi + 4]
mov esi, dword [esi + 4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4021c7
inc eax
mov dword [esp + 0x30], eax
mov eax, edi
mov ecx, esi
push eax
add edi, 0x28
add esi, 0x28
call fcn.0050acb0
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 0x30], eax
jne 0x4021ac
call fcn.0040b6b0
mov edi, eax
add edi, 0x244
mov dword [esp + 0x10], edi
mov esi, dword [edi + 8]
test esi, esi
mov dword [esp + 0x14], esi
jne 0x40222a
mov esi, dword [ebp + 4]
test esi, esi
je 0x40221d
mov eax, dword [ebp + 8]
mov edx, eax
dec eax
test edx, edx
je 0x40220a
lea edi, [eax + 1]
push 0
mov ecx, esi
call fcn.00403a10
add esi, 0x14
dec edi
jne 0x4021f7
mov edi, dword [esp + 0x10]
mov eax, dword [ebp + 4]
push eax
call fcn.004dbc23
add esp, 4
mov dword [ebp + 4], 0
xor eax, eax
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], eax
jmp 0x40233b
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x402255
lea ecx, [esi + esi*4]
shl ecx, 2
push ecx
call fcn.004dbbfa
add esp, 4
mov dword [ebp + 4], eax
push esi
push eax
call fcn.00403aa0
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], esi
jmp 0x40233b
cmp esi, dword [ebp + 0xc]
jg 0x402293
mov eax, dword [ebp + 8]
cmp eax, esi
jge 0x40227a
mov edx, esi
sub edx, eax
lea eax, [eax + eax*4]
push edx
lea ecx, [ecx + eax*4]
push ecx
call fcn.00403aa0
mov dword [ebp + 8], esi
jmp 0x40233b
jle 0x40228b
sub eax, esi
lea edx, [esi + esi*4]
push eax
lea eax, [ecx + edx*4]
push eax
call fcn.004038e0
mov dword [ebp + 8], esi
jmp 0x40233b
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4022be
mov eax, dword [ebp + 8]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x4022b2
mov eax, 4
jmp 0x4022be
cmp eax, 0x400
jle 0x4022be
mov eax, 0x400
mov ecx, dword [ebp + 0xc]
add eax, ecx
cmp esi, eax
jge 0x4022cd
mov dword [esp + 0x30], eax
jmp 0x4022d3
mov dword [esp + 0x30], esi
mov eax, esi
lea ecx, [eax + eax*4]
shl ecx, 2
push ecx
call fcn.004dbbfa
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
add esp, 4
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x18], eax
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov edx, esi
sub edx, ecx
lea ecx, [ecx + ecx*4]
push edx
lea edx, [eax + ecx*4]
push edx
call fcn.00403aa0
mov eax, dword [ebp + 4]
push eax
call fcn.004dbc23
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov edi, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], esi
mov dword [ebp + 0xc], edx
mov eax, dword [edi + 8]
mov esi, dword [edi + 4]
mov ebp, dword [ebp + 4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x402361
lea edi, [eax + 1]
mov eax, esi
mov ecx, ebp
push eax
add esi, 0x14
add ebp, 0x14
call fcn.0042dc50
dec edi
jne 0x40234e
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4