Function at 0x466220
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4b168b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov al, byte [esp + 0x20]
push ebx
lea ebx, [ecx + 8]
push ebp
push esi
push edi
mov byte [ebx], al
xor eax, eax
mov dword [esp + 0x18], ecx
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov ebp, dword [esp + 0x30]
mov dword [ecx], 0x4b8430
lea edi, [ecx + 0x18]
mov dword [esp + 0x28], eax
mov edx, dword [ebp + 4]
lea esi, [ebp + 0x18]
mov dword [ecx + 4], edx
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0xc]
cmp ecx, eax
jne 0x466285
xor edx, edx
mov dword [esp + 0x10], edx
jmp 0x466295
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x10], eax
mov edx, eax
xor eax, eax
mov ecx, dword [ebx + 4]
cmp ecx, eax
je 0x4662a4
mov eax, dword [ebx + 0xc]
sub eax, ecx
sar eax, 2
cmp eax, edx
jae 0x466316
test edx, edx
mov eax, edx
jge 0x4662b0
xor eax, eax
shl eax, 2
push eax
call fcn.004a2a14
mov esi, dword [ebx + 4]
mov ebp, eax
mov eax, dword [ebx + 8]
add esp, 4
cmp esi, eax
mov edi, ebp
mov dword [esp + 0x14], eax
je 0x4662e6
push esi
push edi
call fcn.00416a60
mov eax, dword [esp + 0x1c]
add esi, 4
add esp, 8
add edi, 4
cmp esi, eax
jne 0x4662ce
mov eax, dword [ebx + 4]
push eax
mov dword [esp + 0x20], eax
call fcn.004a2a3d
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [ebp + ecx*4]
mov ecx, ebx
mov dword [ebx + 0xc], edx
call fcn.004137b0
lea eax, [ebp + eax*4]
mov dword [ebx + 4], ebp
mov ebp, dword [esp + 0x30]
mov dword [ebx + 8], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], esi
test eax, eax
je 0x4664d8
mov ecx, dword [ebp + 0x10]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x4664d8
push 0x210
call fcn.004a2a14
add esp, 4
test eax, eax
je 0x466359
mov edx, dword [ebp + 0xc]
mov ecx, 0x84
mov edi, eax
mov esi, dword [edx + esi*4]
rep movsd dword es:[edi], dword [esi]
jmp 0x46635b
xor eax, eax
mov esi, dword [ebx + 8]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0xc]
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x466426
mov ecx, ebx
call fcn.004137b0
cmp eax, 1
jbe 0x46638a
mov ecx, ebx
call fcn.004137b0
mov edi, eax
jmp 0x46638f
mov edi, 1
mov ecx, ebx
call fcn.004137b0
mov ebp, eax
add ebp, edi
mov eax, ebp
jns 0x4663a0
xor eax, eax
lea ecx, [eax*4]
push ecx
call fcn.004a2a14
mov edx, dword [ebx + 4]
add esp, 4
mov edi, eax
mov ecx, ebx
push edi
push esi
push edx
call fcn.00491680
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
push ecx
push 1
push eax
mov ecx, ebx
call fcn.00416a30
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 8]
add edx, 4
mov ecx, ebx
push edx
push eax
push esi
call fcn.00491680
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.00443ee0
mov eax, dword [ebx + 4]
push eax
call fcn.004a2a3d
lea ecx, [edi + ebp*4]
add esp, 4
mov dword [ebx + 0xc], ecx
mov ecx, ebx
call fcn.004137b0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x30]
lea edx, [edi + eax*4 + 4]
mov dword [ebx + 4], edi
mov dword [ebx + 8], edx
inc esi
jmp 0x466318
mov eax, esi
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x466487
lea eax, [esi + 4]
mov ecx, ebx
push eax
push esi
push esi
call fcn.00491680
mov eax, dword [ebx + 8]
lea ecx, [esp + 0x10]
mov edx, eax
push ecx
sub edx, esi
mov ecx, 1
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, ebx
call fcn.00416a30
mov ecx, dword [ebx + 8]
mov eax, esi
cmp esi, ecx
je 0x4664c5
mov edx, dword [esp + 0x10]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x466467
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x14]
add eax, 4
inc esi
mov dword [ebx + 8], eax
jmp 0x466318
lea eax, [esi - 4]
push esi
push esi
push eax
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.00491680
mov ecx, dword [ebx + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0x4664b1
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x4664a2
lea eax, [esi + 4]
cmp esi, eax
je 0x4664c5
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x4664b8
mov eax, dword [ebx + 8]
mov esi, dword [esp + 0x14]
add eax, 4
inc esi
mov dword [ebx + 8], eax
jmp 0x466318
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4