Function at 0x486f10
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push edi
push esi
push ebp
push ebx
sub esp, 0x60
mov ebx, 0xff
mov ebp, dword [esp + 0x80]
mov byte [esp], bl
mov byte [esp + 1], bl
mov byte [esp + 2], bl
mov dword [esp + 0x50], ebp
mov esi, eax
mov byte [esp + 3], 0
mov eax, dword [esp]
mov ebx, esi
sar ebx, 1
shr ebx, 0x1e
mov dword [esp + 0x24], eax
add ebx, esi
mov eax, ecx
mov ecx, ebx
sar ecx, 2
mov ebx, edx
sar ebx, 1
mov dword [esp + 0x40], eax
shr ebx, 0x1e
add edx, ebx
mov eax, edx
sar eax, 2
test eax, eax
jle 0x48735a
shl eax, 4
xor ebp, ebp
xor edx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov ebx, edx
imul ebx, ecx
add eax, ebx
test ecx, ecx
jle 0x487348
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x48], ecx
imul ebx, ebp
shl ecx, 4
mov dword [esp + 0x20], ebx
xor ebx, ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], ebp
mov edx, 0xff
mov dword [esp + 0x34], eax
mov byte [esp + 3], dl
mov cl, byte [eax + 9]
lea esi, [eax + 8]
and cl, 0xf8
mov byte [esp], cl
mov ecx, dword [eax + 8]
and ecx, 0x7e0
shr ecx, 5
add ecx, ecx
add ecx, ecx
mov byte [esp + 1], cl
mov cl, byte [eax + 8]
mov byte [esp + 7], dl
and cl, 0x1f
add cl, cl
add cl, cl
add cl, cl
mov byte [esp + 2], cl
mov dl, byte [eax + 0xb]
and dl, 0xf8
mov byte [esp + 4], dl
mov edx, dword [eax + 0xa]
and edx, 0x7e0
shr edx, 5
add edx, edx
add edx, edx
mov byte [esp + 5], dl
mov dl, byte [eax + 0xa]
and dl, 0x1f
add dl, dl
add dl, dl
add dl, dl
mov byte [esp + 6], dl
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
cmp edx, eax
jle 0x487110
movzx ebp, byte [esp + 4]
movzx edi, byte [esp]
mov eax, 3
lea edx, [ebp + edi*2]
mov ecx, eax
mov eax, edx
cdq
idiv ecx
movzx edx, byte [esp + 5]
movzx ecx, byte [esp + 1]
mov dword [esp + 0x30], edx
lea edx, [edx + ecx*2]
mov dword [esp + 0x2c], ecx
mov ecx, 3
movzx eax, ax
mov byte [esp + 8], al
mov eax, edx
cdq
idiv ecx
movzx edx, byte [esp + 6]
movzx ecx, byte [esp + 2]
mov dword [esp + 0x28], edx
lea edx, [edx + ecx*2]
mov dword [esp + 0x14], ecx
mov ecx, 3
movzx eax, ax
mov byte [esp + 9], al
mov eax, edx
cdq
idiv ecx
lea edi, [edi + ebp*2]
mov edx, 3
movzx eax, ax
mov ecx, 0xff
mov byte [esp + 0xa], al
mov byte [esp + 0xb], cl
mov eax, edi
mov ecx, edx
cdq
idiv ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov ebp, 3
lea edx, [edx + ecx*2]
movzx eax, ax
mov byte [esp + 0xc], al
mov eax, edx
cdq
idiv ebp
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
mov ebp, 3
lea edx, [edx + ecx*2]
movzx eax, ax
mov byte [esp + 0xf], 0xff
mov byte [esp + 0xd], al
mov eax, edx
cdq
idiv ebp
movzx eax, ax
mov byte [esp + 0xe], al
jmp 0x48718d
movzx eax, byte [esp]
movzx edx, byte [esp + 4]
movzx ecx, byte [esp + 1]
add eax, edx
movzx edx, byte [esp + 5]
add eax, 0x80000000
movzx ebp, byte [esp + 2]
adc eax, 0x80000000
movzx edi, byte [esp + 6]
sar eax, 1
add ecx, edx
movzx eax, ax
add ecx, 0x80000000
mov edx, 0xff
adc ecx, 0x80000000
add ebp, edi
sar ecx, 1
add ebp, 0x80000000
mov byte [esp + 8], al
adc ebp, 0x80000000
movzx ecx, cx
sar ebp, 1
mov byte [esp + 9], cl
mov eax, ebp
movzx eax, ax
xor cl, cl
mov byte [esp + 0xa], al
mov byte [esp + 0xb], dl
mov byte [esp + 0xd], dl
mov byte [esp + 0xe], dl
mov byte [esp + 0xc], cl
mov byte [esp + 0xf], cl
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
lea eax, [ebx + eax*4]
mov ebp, esi
add eax, edx
lea edi, [esi + 4]
mov edx, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x3c], ebx
movzx ecx, byte [ebp + 4]
mov ebx, 0xfffffffc
lea esi, [esi]
mov eax, ecx
and eax, 3
je 0x487210
cmp eax, 1
je 0x487200
cmp eax, 2
je 0x4871f0
cmp eax, 3
je 0x4871e0
add edx, 4
jmp 0x487218
mov eax, dword [esp + 0xc]
mov dword [edx], eax
add edx, 4
jmp 0x487218
mov eax, dword [esp + 8]
mov dword [edx], eax
add edx, 4
jmp 0x487218
mov eax, dword [esp + 4]
mov dword [edx], eax
add edx, 4
jmp 0x487218
mov eax, dword [esp]
mov dword [edx], eax
add edx, 4
shr ecx, 2
inc ebx
jne 0x4871c0
lea eax, [esi*4 - 0x10]
inc ebp
add edx, eax
cmp edi, ebp
jg 0x4871b1
mov edi, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, 8
add edx, edi
xor cl, cl
mov dword [esp + 0x14], edx
mov edx, eax
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], cl
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x3c], ebx
movzx ecx, word [edi]
mov ebx, 0xfffffffc
nop
lea esi, [esi]
mov eax, 0xf
and eax, ecx
and dword [edx], esi
shr ecx, 4
mov ebp, 0xf
and ebp, ecx
shr ecx, 4
add ebx, 4
mov dword [esp + 0x58], edi
mov edi, eax
shl edi, 4
or eax, edi
mov edi, 0xf
and edi, ecx
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x10]
and dword [edx + 4], esi
or dword [edx], eax
mov eax, ebp
shl eax, 4
shr ecx, 4
or ebp, eax
mov eax, 0xf
and eax, ecx
mov dword [esp + 0x5c], ebx
mov ebx, ebp
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x10]
and dword [edx + 8], esi
or dword [edx + 4], ebx
mov ebx, edi
shl ebx, 4
shr ecx, 4
or edi, ebx
mov ebx, edi
mov byte [esp + 0x13], bl
mov ebx, dword [esp + 0x10]
and dword [edx + 0xc], esi
or dword [edx + 8], ebx
mov ebx, eax
shl ebx, 4
or eax, ebx
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x10]
or dword [edx + 0xc], eax
add edx, 0x10
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x18]
add edi, 2
lea eax, [eax*4 - 0x10]
mov ecx, dword [esp + 0x14]
add edx, eax
cmp ecx, edi
jg 0x487263
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov eax, esi
add eax, 8
add ebx, 0x10
mov edx, dword [esp + 0x1c]
cmp ebx, edx
jl 0x486fb8
mov ebp, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
add edx, 0x10
add ebp, 4
mov eax, dword [esp + 0x54]
cmp edx, eax
jl 0x486f85
add esp, 0x60
pop ebx
pop ebp
pop esi
pop edi
ret