Function at 0x10031750
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
cmp byte [eax], 0
push edi
mov dword [esp + 0x10], edx
je 0x1003184a
mov edi, dword [eax + 4]
movzx ecx, byte [edi]
cmp ecx, edx
jne 0x1003179c
movzx edx, word [eax + 2]
movzx eax, byte [edi + 1]
push edx
push eax
push 0
mov eax, esi
call fcn.100316d0
mov dword [esi + 8], edi
pop edi
mov ecx, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
jmp fcn.10031170
mov ebx, eax
mov dword [esi + 0x14], 0
movzx ebp, byte [ebx]
movzx edx, byte [edi + 1]
mov eax, ebp
mov edi, edi
movzx ecx, byte [edi + 6]
add edi, 6
cmp ecx, dword [esp + 0x10]
movzx ecx, byte [edi + 1]
je 0x10031828
add edx, ecx
sub eax, 1
jne 0x100317b0
or ecx, 0xffffffff
jmp 0x100317d0
mov dword [esp + eax*4 + 0x1c], ecx
mov dword [esp + eax*4 + 0x20], ecx
mov dword [esp + eax*4 + 0x24], ecx
mov dword [esp + eax*4 + 0x28], ecx
mov dword [esp + eax*4 + 0x2c], ecx
mov dword [esp + eax*4 + 0x30], ecx
mov dword [esp + eax*4 + 0x34], ecx
mov dword [esp + eax*4 + 0x38], ecx
add eax, 8
cmp eax, 0x40
jb 0x100317d0
movzx eax, byte [edi]
mov byte [esp + eax + 0x1c], 0
mov eax, ebp
movzx ecx, byte [edi - 6]
sub edi, 6
sub eax, 1
mov byte [esp + ecx + 0x1c], 0
jne 0x10031802
movzx eax, word [ebx + 2]
push eax
sub eax, edx
push eax
push edx
mov eax, esi
call fcn.100316d0
jmp 0x10031928
movzx eax, word [ebx + 2]
push eax
push ecx
push edx
mov eax, esi
call fcn.100316d0
mov dword [esi + 8], edi
pop edi
mov ecx, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
jmp fcn.10031130
movzx ecx, byte [eax + 3]
mov edi, dword [eax + 8]
movzx edi, byte [edi]
movzx ecx, byte [ecx + esi + 0x32f]
movzx edi, byte [edi + esi + 0x230]
shl ecx, 6
add ecx, edi
mov edi, dword [esi + 0x1c]
sar edi, 0x1a
and edi, 0x20
add ecx, edi
movzx edi, byte [eax + 1]
add ecx, edi
add ecx, dword [esi + 0x14]
lea ebp, [eax + 2]
movzx eax, byte [ebp]
lea edi, [esi + ecx*2 + 0x1038]
movzx ecx, word [edi]
cmp eax, edx
mov eax, esi
jne 0x100318c2
push ecx
call fcn.10031700
movzx eax, word [edi]
movzx edx, ax
add edx, 0x20
sar edx, 7
sub eax, edx
sub eax, 0xffffff80
mov word [edi], ax
pop edi
mov dword [esi + 8], ebp
mov ecx, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
jmp fcn.100311c0
call fcn.10031720
movzx eax, word [edi]
movzx ecx, ax
add ecx, 0x20
sar ecx, 7
sub eax, ecx
movzx edx, ax
mov word [edi], ax
shr edx, 0xa
movzx eax, byte [edx + 0x100c48b4]
mov dword [esi + 0x10], eax
xor eax, eax
or ecx, 0xffffffff
lea ecx, [ecx]
mov dword [esp + eax*4 + 0x1c], ecx
mov dword [esp + eax*4 + 0x20], ecx
mov dword [esp + eax*4 + 0x24], ecx
mov dword [esp + eax*4 + 0x28], ecx
mov dword [esp + eax*4 + 0x2c], ecx
mov dword [esp + eax*4 + 0x30], ecx
mov dword [esp + eax*4 + 0x34], ecx
mov dword [esp + eax*4 + 0x38], ecx
add eax, 8
cmp eax, 0x40
jb 0x100318f0
movzx ecx, byte [ebp]
mov byte [esp + ecx + 0x1c], 0
mov dword [esi + 0x14], 0
mov edx, dword [esi]
movzx edx, byte [edx]
lea ecx, [ecx]
inc dword [esi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax + 8]
test eax, eax
je 0x10031a20
mov dword [esi], eax
movzx ecx, byte [eax]
cmp ecx, edx
je 0x10031930
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.10031070
mov ecx, dword [esi]
movzx edx, byte [ecx]
mov ebp, eax
mov eax, dword [ecx + 4]
xor edi, edi
mov dword [esp + 0x14], ebp
inc edx
jmp 0x10031974
mov ebp, dword [esp + 0x14]
movzx ecx, byte [eax]
cmp ecx, dword [esp + 0x10]
je 0x100319bc
movzx ebx, byte [eax + 1]
movsx ebp, byte [esp + ecx + 0x1c]
lea ecx, [esp + ecx + 0x1c]
and ebx, ebp
add edi, ebx
add eax, 6
sub edx, 1
mov byte [ecx], 0
jne 0x10031970
mov eax, dword [esp + 0x18]
lea ecx, [edi + eax]
push ecx
push eax
push edi
mov eax, esi
call fcn.100316d0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add edx, edi
add word [eax], dx
jmp 0x10031928
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
movzx ecx, byte [eax]
movzx ebx, byte [eax + 1]
movsx ecx, byte [esp + ecx + 0x1c]
and ecx, ebx
add edi, ecx
add eax, 6
sub edx, 1
jne 0x100319c4
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add edi, edx
push edi
mov edi, dword [esp + 0x18]
movzx eax, byte [edi + 1]
push eax
push ecx
mov eax, esi
call fcn.100316d0
mov cl, byte [ebp + 2]
cmp cl, 7
jae 0x10031a16
add byte [ebp + 3], 0xff
jne 0x10031a16
shl word [ebp], 1
mov dl, 3
shl dl, cl
inc cl
mov byte [ebp + 2], cl
mov byte [ebp + 3], dl
mov ecx, esi
mov dword [esi + 8], edi
call fcn.100311f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret