Function at 0x4a8fa0
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 0x4a8fb8
mov edi, eax
call fcn.004a8b40
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 0x4a90d0
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 0x4a900b
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
jg 0x4a8fff
lea eax, [ecx + ecx]
push eax
jmp 0x4a9002
add ecx, eax
push ecx
push esi
call fcn.004a87e0
add esp, 8
mov edi, dword [esi + 0x20]
mov al, byte [ebx + 0x4a]
add edi, ebp
test al, al
jne 0x4a902e
movzx ecx, byte [ebx + 0x49]
shl ecx, 4
lea ebp, [edi + 0x10]
lea eax, [ecx + ebp]
cmp dword [esi + 8], eax
jbe 0x4a904d
mov dword [esi + 8], eax
jmp 0x4a904d
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 4
dec eax
push eax
mov ecx, ebx
call fcn.004a89e0
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 0x4a905c
call fcn.004a8f60
jmp 0x4a9062
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 0x4a90a0
mov dword [ecx + 8], edx
mov edi, dword [eax + 8]
add ecx, 0x10
cmp ecx, edi
jb 0x4a9093
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test byte [esi + 0x36], 1
je 0x4a90ca
mov ebp, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
add ebp, 4
push esi
mov dword [esi + 0x18], ebp
call fcn.004a88f0
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 0x4a90f5
mov eax, dword [esi + 0x2c]
cmp eax, 0x14
jl 0x4a90e8
lea edx, [eax + eax]
push edx
jmp 0x4a90ec
add eax, 0x14
push eax
push esi
call fcn.004a87e0
add esp, 8
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x4a9104
call fcn.004a8f60
jmp 0x4a910a
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 + 0x36], 1
je 0x4a9140
push 0xffffffffffffffff
push 0
push esi
call fcn.004a88f0
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 0x4a915c
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.004a8c40
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
ret