Function at 0x10033420
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push esi
mov esi, dword [esp + 0x1c]
push edi
mov ecx, esi
call fcn.10031ff0
mov ecx, esi
call fcn.10032d80
mov al, byte [esi + 4]
test al, al
mov edi, dword [esp + 0x24]
jne 0x10033468
mov eax, dword [edi]
xor ecx, ecx
cmp eax, ecx
jne 0x10033454
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
jmp 0x10033468
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.10031f50
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.10031f50
cmp word [esp + 8], 0
jne 0x1003349f
cmp word [esp + 0xc], 0
jne 0x1003349f
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.10031db0
test al, al
je 0x10033756
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.10031f50
lea edx, [ebx + 0x2a]
push edx
mov ecx, esi
call fcn.10031f50
lea eax, [ebx + 0x30]
push eax
mov ecx, esi
call fcn.10031f40
lea ecx, [ebx + 0x3c]
push ecx
mov ecx, esi
call fcn.10031fa0
lea edx, [ebx + 0x40]
push edx
mov ecx, esi
call fcn.10031fa0
lea eax, [ebx + 0x34]
push eax
mov ecx, esi
call fcn.10031fa0
mov ax, word [ebx + 0x24]
shl ax, 2
movzx edx, ax
lea ecx, [ebx + 0x18]
push edx
push ecx
mov ecx, esi
call fcn.10031db0
test al, al
je 0x10033754
xor edi, edi
cmp word [ebx + 0x24], di
mov dword [esp + 0x28], edi
jbe 0x1003367f
jmp 0x10033542
mov edi, dword [esp + 0x28]
mov ecx, esi
call fcn.10031ff0
mov ecx, esi
call fcn.10032d80
mov al, byte [esi + 4]
test al, al
jne 0x1003356a
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.10031f50
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.10031db0
test al, al
je 0x10033754
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.10031f50
lea eax, [ebp + 2]
push eax
mov ecx, esi
call fcn.10031f50
lea edi, [ebp + 0xa]
push edi
mov ecx, esi
call fcn.10031f50
mov ax, word [edi]
shl ax, 1
movzx ecx, ax
push ecx
lea ebx, [ebp + 0xc]
push ebx
mov ecx, esi
call fcn.10031db0
test al, al
je 0x10033754
mov edx, dword [ebx]
push edx
mov ecx, esi
xor edi, edi
call fcn.10031f50
mov eax, dword [ebx]
test byte [eax + 1], 0x80
jne 0x1003362d
jmp 0x10033610
mov edi, dword [esp + 0x20]
jmp 0x10033610
inc edi
mov dword [esp + 0x20], edi
movzx edi, di
shl edi, 1
add eax, edi
push eax
mov ecx, esi
call fcn.10031f50
mov eax, dword [ebx]
test byte [eax + edi + 1], 0x80
je 0x10033607
lea ecx, [ebp + 0x10]
push ecx
mov ecx, esi
call fcn.10032900
lea edx, [ebp + 0x14]
push edx
mov ecx, esi
call fcn.10032900
test byte [ebp + 8], 4
je 0x1003365f
lea eax, [ebp + 0x20]
push eax
mov ecx, esi
call fcn.10031f50
add ebp, 0x22
push ebp
mov ecx, esi
call fcn.10031f50
mov ecx, esi
call fcn.10032d80
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 0x1003353e
push ebx
mov ecx, esi
call fcn.10032900
lea edx, [ebx + 4]
push edx
mov ecx, esi
call fcn.10032900
mov ax, word [ebx + 0x26]
shl ax, 2
movzx eax, ax
lea ecx, [ebx + 0x14]
push eax
push ecx
mov ecx, esi
call fcn.10031db0
test al, al
je 0x10033754
cmp word [ebx + 0x26], 0
mov dword [esp + 0x28], 0
jbe 0x1003374d
mov ecx, esi
call fcn.10032d80
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.10031db0
test al, al
je 0x10033754
mov edx, dword [ebx + 0x14]
mov edi, dword [edi + edx]
lea eax, [edi + 4]
push eax
mov ecx, esi
call fcn.10032900
lea ecx, [edi + 8]
push ecx
mov ecx, esi
call fcn.10032900
push edi
mov ecx, esi
call fcn.10031f40
lea edx, [edi + 2]
push edx
mov ecx, esi
call fcn.10031f50
lea ebp, [edi + 0x10]
push ebp
mov ecx, esi
call fcn.10031f50
cmp word [ebp], 0xff
jne 0x10033733
add edi, 0xc
push edi
mov ecx, esi
call fcn.10032900
mov ecx, esi
call fcn.10032d80
mov eax, dword [esp + 0x28]
inc eax
cmp ax, word [ebx + 0x26]
mov dword [esp + 0x28], eax
jb 0x100336c4
mov ecx, esi
call fcn.10032d80
pop ebp
pop ebx
mov al, byte [esi + 6]
pop edi
pop esi
add esp, 0x14
ret