Function at 0x486470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dab18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.0042b0f0
mov eax, dword [esp + 0x38]
push 1
xor ebp, ebp
push 0x80000000
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebp
call fcn.0042b110
test eax, eax
je 0x486577
push ebp
push 0x50
lea ecx, [esp + 0x14]
call fcn.0042b280
lea ecx, [esp + 0x10]
push 4
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], ebp
call fcn.0042b1c0
mov eax, dword [esp + 0x10]
mov esi, 0x657a
cmp eax, esi
jne 0x48656a
lea edx, [esp + 0x14]
push 4
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebp
call fcn.0042b1c0
cmp eax, 4
jne 0x48656a
mov eax, dword [esp + 0x14]
push 1
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
lea edi, [eax + eax*2]
shl edi, 1
push edi
call fcn.0042b280
lea eax, [esp + 0x10]
push 4
push eax
lea ecx, [esp + 0x14]
call fcn.0042b1c0
cmp dword [esp + 0x10], esi
jne 0x48656a
mov ecx, 0xfffffffc
push 1
sub ecx, edi
push ecx
lea ecx, [esp + 0x14]
call fcn.0042b280
push edi
call fcn.004a1b7d
add esp, 4
mov esi, eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], esi
push edi
push esi
call fcn.0042b1c0
cmp edi, eax
je 0x48659c
push esi
call fcn.004a1a94
add esp, 4
push 0xffffffffffffffff
push ebp
push 0x4e72
call fcn.004bc171
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.0042b100
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push ebx
mov ebx, dword [esp + 0x40]
push 0xffffffffffffffff
push ebp
mov ecx, ebx
call fcn.00486ee0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x40], ebp
cmp eax, ebp
jle 0x486753
mov dword [esp + 0x1c], esi
mov ecx, dword [ebx + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x24], esi
lea ebp, [esi + 1]
cmp ebp, edi
jne 0x4865f3
mov eax, dword [ebx + 4]
cmp eax, edi
je 0x4865e8
push eax
mov dword [esp + 0x40], ecx
call fcn.004b4275
add esp, 4
mov dword [ebx + 4], edi
mov dword [ebx + 0xc], edi
mov dword [ebx + 8], edi
jmp 0x486718
mov edx, dword [ebx + 4]
cmp edx, edi
jne 0x48662d
lea edi, [ebp + ebp*2]
shl edi, 1
push edi
call fcn.004b424c
mov edx, eax
mov ecx, edi
mov dword [ebx + 4], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 0xc], ebp
mov dword [ebx + 8], ebp
jmp 0x486718
mov edi, dword [ebx + 0xc]
cmp ebp, edi
jg 0x48666f
cmp ecx, ebp
jge 0x48665f
mov eax, ebp
sub eax, ecx
lea ecx, [ecx + ecx*2]
lea edi, [edx + ecx*2]
lea ecx, [eax + eax*2]
shl ecx, 1
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [ebx + 8], ebp
jmp 0x486718
jle 0x486667
sub ecx, ebp
mov dword [esp + 0x3c], ecx
mov dword [ebx + 8], ebp
jmp 0x486718
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x486699
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x48668d
mov eax, 4
jmp 0x486699
cmp eax, 0x400
jle 0x486699
mov eax, 0x400
add eax, edi
cmp ebp, eax
jge 0x4866a5
mov dword [esp + 0x3c], eax
jmp 0x4866ab
mov dword [esp + 0x3c], ebp
mov eax, ebp
lea eax, [eax + eax*2]
shl eax, 1
push eax
call fcn.004b424c
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov edi, eax
mov dword [esp + 0x24], eax
lea ecx, [ecx + ecx*2]
shl ecx, 1
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 edx, dword [ebx + 8]
mov ecx, ebp
sub ecx, edx
lea edx, [edx + edx*2]
lea ecx, [ecx + ecx*2]
shl ecx, 1
lea edi, [eax + edx*2]
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx + 4]
push eax
call fcn.004b4275
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x44]
mov esi, dword [esp + 0x2c]
add esp, 8
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
mov dword [ebx + 0xc], ecx
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x1c]
lea edx, [esi + esi*2]
lea edx, [eax + edx*2]
mov eax, ecx
add ecx, 6
mov esi, dword [eax]
mov dword [esp + 0x1c], ecx
mov dword [edx], esi
mov ax, word [eax + 4]
mov word [edx + 4], ax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x40], eax
jl 0x4865bf
mov esi, dword [esp + 0x28]
push esi
call fcn.004a1a94
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.0042b100
mov ecx, dword [esp + 0x2c]
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret