Function at 0x100332d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov ecx, esi
call fcn.10031ed0
mov ecx, esi
call fcn.10032c20
mov al, byte [esi + 4]
test al, al
mov edi, dword [esp + 0x24]
jne 0x10033318
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ecx
jne 0x10033304
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
jmp 0x10033318
xor ecx, ecx
mov cx, word [eax + 0x24]
xor edx, edx
mov dword [esp + 8], ecx
mov dx, word [eax + 0x26]
mov dword [esp + 0xc], edx
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.10031e30
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10031e30
cmp word [esp + 8], 0
jne 0x1003334f
cmp word [esp + 0xc], 0
jne 0x1003334f
mov dword [edi], 0
mov al, byte [esi + 6]
pop edi
pop esi
add esp, 0x14
ret
push 0x48
push edi
mov ecx, esi
call fcn.10031c80
test al, al
je 0x10033606
mov dx, word [esp + 8]
push ebx
mov ebx, dword [edi]
push ebp
lea ecx, [ebx + 0x28]
mov word [ebx + 0x24], dx
mov ax, word [esp + 0x14]
push ecx
mov ecx, esi
mov dword [esp + 0x20], ebx
mov word [ebx + 0x26], ax
call fcn.10031e30
lea edx, [ebx + 0x2a]
push edx
mov ecx, esi
call fcn.10031e30
lea eax, [ebx + 0x30]
push eax
mov ecx, esi
call fcn.10031e20
lea ecx, [ebx + 0x3c]
push ecx
mov ecx, esi
call fcn.10031e80
lea edx, [ebx + 0x40]
push edx
mov ecx, esi
call fcn.10031e80
lea eax, [ebx + 0x34]
push eax
mov ecx, esi
call fcn.10031e80
mov ax, word [ebx + 0x24]
shl ax, 2
movzx edx, ax
lea ecx, [ebx + 0x18]
push edx
push ecx
mov ecx, esi
call fcn.10031c80
test al, al
je 0x10033604
xor edi, edi
cmp word [ebx + 0x24], di
mov dword [esp + 0x28], edi
jbe 0x1003352f
jmp 0x100333f2
mov edi, dword [esp + 0x28]
mov ecx, esi
call fcn.10031ed0
mov ecx, esi
call fcn.10032c20
mov al, byte [esi + 4]
test al, al
jne 0x1003341a
mov ecx, dword [ebx + 0x18]
movzx eax, di
mov edx, dword [ecx + eax*4]
xor eax, eax
mov ax, word [edx + 8]
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.10031e30
mov al, byte [esp + 0x18]
and al, 4
neg al
movzx edi, di
mov ecx, esi
sbb eax, eax
and eax, 0x10
add eax, 0x18
movzx edx, ax
mov eax, dword [ebx + 0x18]
add ebx, 0x18
shl edi, 2
push edx
add eax, edi
push eax
call fcn.10031c80
test al, al
je 0x10033604
mov ecx, dword [ebx]
mov ebp, dword [edi + ecx]
mov dx, word [esp + 0x18]
push ebp
mov ecx, esi
mov word [ebp + 8], dx
call fcn.10031e30
lea eax, [ebp + 2]
push eax
mov ecx, esi
call fcn.10031e30
lea edi, [ebp + 0xa]
push edi
mov ecx, esi
call fcn.10031e30
mov ax, word [edi]
shl ax, 1
movzx ecx, ax
push ecx
lea ebx, [ebp + 0xc]
push ebx
mov ecx, esi
call fcn.10031c80
test al, al
je 0x10033604
mov edx, dword [ebx]
push edx
mov ecx, esi
xor edi, edi
call fcn.10031e30
mov eax, dword [ebx]
test byte [eax + 1], 0x80
jne 0x100334dd
jmp 0x100334c0
mov edi, dword [esp + 0x20]
jmp 0x100334c0
inc edi
mov dword [esp + 0x20], edi
movzx edi, di
shl edi, 1
add eax, edi
push eax
mov ecx, esi
call fcn.10031e30
mov eax, dword [ebx]
test byte [eax + edi + 1], 0x80
je 0x100334b7
lea ecx, [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.100327c0
lea edx, [ebp + 0x14]
push edx
mov ecx, esi
call fcn.100327c0
test byte [ebp + 8], 4
je 0x1003350f
lea eax, [ebp + 0x20]
push eax
mov ecx, esi
call fcn.10031e30
add ebp, 0x22
push ebp
mov ecx, esi
call fcn.10031e30
mov ecx, esi
call fcn.10032c20
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
inc eax
cmp ax, word [ecx + 0x24]
mov dword [esp + 0x28], eax
mov ebx, ecx
jb 0x100333ee
push ebx
mov ecx, esi
call fcn.100327c0
lea edx, [ebx + 4]
push edx
mov ecx, esi
call fcn.100327c0
mov ax, word [ebx + 0x26]
shl ax, 2
movzx eax, ax
lea ecx, [ebx + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.10031c80
test al, al
je 0x10033604
cmp word [ebx + 0x26], 0
mov dword [esp + 0x28], 0
jbe 0x100335fd
mov ecx, esi
call fcn.10032c20
movzx edi, word [esp + 0x28]
mov ecx, dword [ebx + 0x14]
shl edi, 2
add ecx, edi
push 0x1c
push ecx
mov ecx, esi
call fcn.10031c80
test al, al
je 0x10033604
mov edx, dword [ebx + 0x14]
mov edi, dword [edi + edx]
lea eax, [edi + 4]
push eax
mov ecx, esi
call fcn.100327c0
lea ecx, [edi + 8]
push ecx
mov ecx, esi
call fcn.100327c0
push edi
mov ecx, esi
call fcn.10031e20
lea edx, [edi + 2]
push edx
mov ecx, esi
call fcn.10031e30
lea ebp, [edi + 0x10]
push ebp
mov ecx, esi
call fcn.10031e30
cmp word [ebp], 0xff
jne 0x100335e3
add edi, 0xc
push edi
mov ecx, esi
call fcn.100327c0
mov ecx, esi
call fcn.10032c20
mov eax, dword [esp + 0x28]
inc eax
cmp ax, word [ebx + 0x26]
mov dword [esp + 0x28], eax
jb 0x10033574
mov ecx, esi
call fcn.10032c20
pop ebp
pop ebx
mov al, byte [esi + 6]
pop edi
pop esi
add esp, 0x14
ret