Function at 0x485a10
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
cmp dword [eax + 8], 6
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
je 0x485a28
mov edi, eax
call fcn.004855b0
mov edx, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
mov ebp, eax
mov eax, dword [eax]
sub ebp, edx
mov edx, dword [esi + 0x18]
mov dword [ecx + 0xc], edx
mov cl, byte [eax + 6]
mov edx, dword [esi + 8]
test cl, cl
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x14], ebp
jne 0x485b40
push ebx
mov ebx, dword [eax + 0x10]
movzx eax, byte [ebx + 0x4b]
sub ecx, edx
mov edx, eax
shl edx, 4
cmp ecx, edx
jg 0x485a7b
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
jg 0x485a6f
lea eax, [ecx + ecx]
push eax
jmp 0x485a72
add ecx, eax
push ecx
push esi
call fcn.00485250
add esp, 8
mov edi, dword [esi + 0x20]
mov al, byte [ebx + 0x4a]
add edi, ebp
test al, al
jne 0x485a9e
movzx ecx, byte [ebx + 0x49]
shl ecx, 4
lea ebp, [edi + 0x10]
lea eax, [ecx + ebp]
cmp dword [esi + 8], eax
jbe 0x485abd
mov dword [esi + 8], eax
jmp 0x485abd
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 4
dec eax
push eax
mov ecx, ebx
call fcn.00485450
mov edi, dword [esi + 0x20]
mov ebp, eax
mov eax, dword [esp + 0x1c]
add esp, 4
add edi, eax
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x485acc
call fcn.004859d0
jmp 0x485ad2
add eax, 0x18
mov dword [esi + 0x14], eax
mov dword [eax + 4], edi
mov dword [eax], ebp
mov dword [esi + 0xc], ebp
movzx edx, byte [ebx + 0x4b]
shl edx, 4
add edx, ebp
mov dword [eax + 8], edx
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [eax + 8]
xor edx, edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 8]
cmp ecx, edi
pop ebx
jae 0x485b10
mov dword [ecx + 8], edx
mov edi, dword [eax + 8]
add ecx, 0x10
cmp ecx, edi
jb 0x485b03
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test byte [esi + 0x38], 1
je 0x485b3a
mov ebp, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
add ebp, 4
push esi
mov dword [esi + 0x18], ebp
call fcn.00485360
mov eax, dword [esi + 0x18]
add esp, 0xc
add eax, 0xfffffffc
mov dword [esi + 0x18], eax
pop edi
pop esi
xor eax, eax
pop ebp
ret
sub ecx, edx
cmp ecx, 0x140
jg 0x485b65
mov eax, dword [esi + 0x2c]
cmp eax, 0x14
jl 0x485b58
lea edx, [eax + eax]
push edx
jmp 0x485b5c
add eax, 0x14
push eax
push esi
call fcn.00485250
add esp, 8
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x485b74
call fcn.004859d0
jmp 0x485b7a
add eax, 0x18
mov dword [esi + 0x14], eax
mov ecx, dword [esi + 0x20]
add ecx, ebp
mov dword [eax + 4], ecx
add ecx, 0x10
mov dword [eax], ecx
mov edx, dword [esi + 8]
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x18]
add edx, 0x140
mov dword [eax + 8], edx
mov dword [eax + 0x10], ecx
test byte [esi + 0x38], 1
je 0x485bb0
push 0xffffffffffffffff
push 0
push esi
call fcn.00485360
add esp, 0xc
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 4]
mov ecx, dword [eax]
push esi
call dword [ecx + 0x10]
add esp, 4
test eax, eax
jge 0x485bcc
pop edi
pop esi
mov eax, 2
pop ebp
ret
mov edx, dword [esi + 8]
shl eax, 4
sub edx, eax
push edx
push esi
call fcn.004856b0
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
ret