Function at 0x4865f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5c364a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [esp + 0x28]
xor edi, edi
cmp ebx, eax
mov dword [esp + 0x20], edi
jl 0x486811
inc ebx
cmp ebx, edi
jne 0x486661
mov esi, dword [ebp + 4]
cmp esi, edi
je 0x486656
mov ecx, eax
dec eax
test ecx, ecx
je 0x486647
lea ebx, [eax + 1]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 4]
add esi, 0x38
dec ebx
jne 0x486639
mov eax, dword [ebp + 4]
push eax
call fcn.0058ed21
add esp, 4
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], edi
jmp 0x486811
mov ecx, dword [ebp + 4]
cmp ecx, edi
jne 0x4866ca
lea edi, [ebx*8]
sub edi, ebx
shl edi, 3
push edi
call fcn.0058ecf8
mov ecx, edi
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
mov dword [ebp + 4], esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], esi
rep stosb byte es:[edi], al
lea edi, [ebx]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 1
je 0x4866b0
mov ecx, esi
call fcn.00514850
add esi, 0x38
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x48669c
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], ebx
jmp 0x486811
mov esi, dword [ebp + 0xc]
cmp ebx, esi
jg 0x486761
cmp eax, ebx
jge 0x486742
lea esi, [eax*8]
mov edx, ebx
sub esi, eax
sub edx, eax
xor eax, eax
lea edi, [ecx + esi*8]
lea ecx, [edx*8]
sub ecx, edx
mov dword [esp + 0x10], edi
shl ecx, 3
mov esi, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec edx
test eax, eax
je 0x486759
mov esi, dword [esp + 0x10]
lea edi, [edx + 1]
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20], 2
je 0x48672b
mov ecx, esi
call fcn.00514850
add esi, 0x38
dec edi
mov byte [esp + 0x20], 0
mov dword [esp + 0x10], esi
jne 0x486717
mov dword [ebp + 8], ebx
jmp 0x486811
jle 0x486759
lea edx, [ebx*8]
sub eax, ebx
sub edx, ebx
push eax
lea eax, [ecx + edx*8]
push eax
call fcn.004868c0
mov dword [ebp + 8], ebx
jmp 0x486811
mov ecx, dword [ebp + 0x10]
cmp ecx, edi
jne 0x48678c
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x48677f
mov ecx, 4
jmp 0x48678c
cmp ecx, 0x400
jle 0x48678c
mov ecx, 0x400
lea eax, [esi + ecx]
cmp ebx, eax
jge 0x486799
mov dword [esp + 0x10], eax
jmp 0x48679f
mov dword [esp + 0x10], ebx
mov eax, ebx
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 3
push ecx
call fcn.0058ecf8
mov edx, dword [ebp + 8]
mov esi, dword [ebp + 4]
mov edi, eax
add esp, 4
lea ecx, [edx*8]
mov dword [esp + 0x14], eax
sub ecx, edx
shl ecx, 3
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
sub edx, ecx
push edx
lea edx, [ecx*8]
sub edx, ecx
lea eax, [eax + edx*8]
push eax
call fcn.00476320
mov eax, dword [ebp + 4]
push eax
call fcn.0058ed21
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], edx
mov eax, dword [esp + 0x28]
mov edx, dword [ebp + 4]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esp + 0x34]
lea esi, [edx + ecx*8]
mov ecx, dword [esp + 0x38]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x40]
push eax
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], edx
call fcn.00593814
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esi + 0x18]
call fcn.00593814
mov edx, dword [esp + 0x48]
mov dword [esp + 0x20], 0xffffffff
mov dword [esi + 0x1c], edx
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x20], eax
mov ecx, dword [esp + 0x50]
mov dword [esi + 0x24], ecx
mov edx, dword [esp + 0x54]
mov dword [esi + 0x28], edx
mov eax, dword [esp + 0x58]
mov dword [esi + 0x2c], eax
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x30], ecx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x34], edx
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x2c]
mov dword [esi + 4], eax
call fcn.005148b0
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x3c