Function at 0x10032840
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 0x10032858
mov edi, eax
call fcn.10032420
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 0x10032970
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 0x100328ab
mov ecx, dword [esi + 0x2c]
cmp eax, ecx
jg 0x1003289f
lea eax, [ecx + ecx]
push eax
jmp 0x100328a2
add ecx, eax
push ecx
push esi
call fcn.100320c0
add esp, 8
mov edi, dword [esi + 0x20]
mov al, byte [ebx + 0x4a]
add edi, ebp
test al, al
jne 0x100328ce
movzx ecx, byte [ebx + 0x49]
shl ecx, 4
lea ebp, [edi + 0x10]
lea eax, [ecx + ebp]
cmp dword [esi + 8], eax
jbe 0x100328ed
mov dword [esi + 8], eax
jmp 0x100328ed
mov eax, dword [esi + 8]
sub eax, edi
sar eax, 4
dec eax
push eax
mov ecx, ebx
call fcn.100322c0
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 0x100328fc
call fcn.10032800
jmp 0x10032902
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 0x10032940
mov dword [ecx + 8], edx
mov edi, dword [eax + 8]
add ecx, 0x10
cmp ecx, edi
jb 0x10032933
mov eax, dword [eax + 8]
mov dword [esi + 8], eax
test byte [esi + 0x38], 1
je 0x1003296a
mov ebp, dword [esi + 0x18]
push 0xffffffffffffffff
push edx
add ebp, 4
push esi
mov dword [esi + 0x18], ebp
call fcn.100321d0
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 0x10032995
mov eax, dword [esi + 0x2c]
cmp eax, 0x14
jl 0x10032988
lea edx, [eax + eax]
push edx
jmp 0x1003298c
add eax, 0x14
push eax
push esi
call fcn.100320c0
add esp, 8
mov eax, dword [esi + 0x14]
cmp eax, dword [esi + 0x24]
jne 0x100329a4
call fcn.10032800
jmp 0x100329aa
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 0x100329e0
push 0xffffffffffffffff
push 0
push esi
call fcn.100321d0
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 0x100329fc
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.10032520
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebp
ret