Function at 0x10033610
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
push 0x30
push esi
mov ecx, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x1c], 0x2332
call fcn.10031c80
test al, al
je 0x10033a7f
mov al, byte [edi + 4]
test al, al
mov ebx, dword [esi]
mov dword [esp + 0x18], ebx
je 0x10033654
mov word [ebx + 0x2a], 3
mov ecx, edi
call fcn.10031ed0
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.10031e30
mov cx, word [esp + 0x14]
mov word [ebx + 0x28], cx
cmp word [esp + 0x14], 0x1f5e
jb 0x1003367d
mov byte [edi + 5], 1
mov ecx, edi
call fcn.10032c20
push 0x1c
lea ebp, [ebx + 8]
push ebp
mov ecx, edi
call fcn.10031c80
push 0x21c
lea esi, [ebx + 0x14]
push esi
mov ecx, edi
call fcn.10031c80
test al, al
je 0x10033a7f
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x100336b5
mov ecx, dword [esp + 0x1c]
cmp cx, 4
jne 0x100336f1
cmp word [esp + 0x14], 0x2328
jae 0x100336f1
mov edx, dword [ebp]
push 2
add edx, 0x10
push edx
mov ecx, edi
call fcn.10031c80
test al, al
je 0x10033a7f
mov eax, dword [ebp]
mov ecx, dword [eax + 0x10]
mov byte [ecx], 0x36
mov edx, dword [ebp]
mov eax, dword [edx + 0x10]
mov byte [eax + 1], 0
jmp 0x10033715
mov eax, dword [ebp]
test eax, eax
je 0x10033701
movzx ecx, cx
lea edx, [eax + ecx*4]
push edx
jmp 0x1003370e
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov ecx, edi
call fcn.100329e0
mov eax, dword [esp + 0x1c]
inc eax
cmp ax, 7
mov dword [esp + 0x1c], eax
jb 0x100336b1
cmp word [esp + 0x14], 0x2328
jae 0x1003374e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.10032880
mov edx, dword [esp + 0x1c]
push edx
call fcn.1005ad00
add esp, 4
push ebx
mov ecx, edi
call fcn.10031e30
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.10031e30
lea ecx, [ebx + 0xc]
push ecx
mov ecx, edi
call fcn.10031e80
lea edx, [ebx + 0x10]
push edx
mov ecx, edi
call fcn.10031e80
lea eax, [ebx + 0x1c]
push eax
mov ecx, edi
call fcn.10031e80
mov ecx, edi
call fcn.10032c20
mov eax, dword [esi]
test eax, eax
je 0x10033795
add eax, 0x18
push eax
jmp 0x100337a2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
mov ecx, edi
call fcn.10031e80
lea ebp, [ebx + 0x22]
push ebp
mov ecx, edi
call fcn.10031e30
test al, al
je 0x10033a7f
cmp word [ebx + 0x28], 0x2328
jae 0x100337ca
mov word [ebp], 0
mov al, byte [edi + 4]
test al, al
jne 0x100337f5
xor cl, cl
mov byte [esp + 0x12], cl
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x100337f5
mov edx, dword [eax]
cmp byte [edx], cl
je 0x100337f5
inc cl
movzx edx, cl
mov byte [esp + 0x12], cl
mov edx, dword [eax + edx*4]
cmp byte [edx], 0
jne 0x100337e4
lea eax, [esp + 0x12]
push eax
mov ecx, edi
call fcn.10031e20
movzx ax, byte [esp + 0x12]
add ebx, 0x24
lea eax, [eax*4 + 4]
movzx ecx, ax
push ecx
push ebx
mov ecx, edi
call fcn.10031c80
test al, al
je 0x10033a7f
mov al, byte [esp + 0x12]
xor ebp, ebp
test al, al
jbe 0x1003384e
nop
mov eax, dword [ebx]
movzx edx, bp
lea ecx, [eax + edx*4]
push ecx
mov ecx, edi
call fcn.10032880
mov al, byte [esp + 0x12]
movzx dx, al
inc ebp
cmp bp, dx
jb 0x10033830
mov cl, byte [edi + 4]
test cl, cl
je 0x10033861
mov ecx, dword [ebx]
movzx eax, al
mov dword [ecx + eax*4], 0x1009c8e0
mov ebx, dword [esp + 0x18]
xor eax, eax
mov ax, word [ebx]
test ax, ax
je 0x100338bd
shl eax, 2
movzx edx, ax
push edx
add ebx, 4
push ebx
mov ecx, edi
call fcn.10031c80
test al, al
je 0x10033a7f
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp word [eax], bp
jbe 0x100338bd
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx]
movzx edx, bp
push ecx
lea ecx, [eax + edx*4]
push ecx
push edi
call fcn.100332d0
add esp, 0xc
test al, al
je 0x10033a7f
mov edx, dword [esp + 0x18]
inc ebp
cmp bp, word [edx]
jb 0x10033894
mov ecx, edi
call fcn.10031ed0
mov ecx, edi
call fcn.10032c20
mov ebx, dword [esi]
lea ecx, [esp + 0x12]
test ebx, ebx
setne al
push ecx
mov ecx, edi
mov byte [esp + 0x16], al
call fcn.10031e20
mov al, byte [esp + 0x12]
test al, al
je 0x10033a4f
mov eax, dword [esi]
mov edx, dword [eax + 4]
cmp edx, dword [eax + 8]
lea ecx, [esp + 0x13]
setne al
push ecx
mov ecx, edi
mov byte [esp + 0x17], al
call fcn.10031e20
mov al, byte [edi + 4]
test al, al
je 0x10033972
mov al, byte [esp + 0x13]
test al, al
je 0x1003392a
mov edx, dword [esi]
push 0x100
add edx, 8
push edx
mov ecx, edi
call fcn.10031c80
mov eax, dword [esi]
push 0x100
add eax, 4
push eax
mov ecx, edi
call fcn.10031c80
mov ecx, dword [esi]
add ecx, 0xc
push 0x100
push ecx
mov ecx, edi
call fcn.10031c80
mov edx, dword [esi]
push 0x100
add edx, 0x10
push edx
mov ecx, edi
call fcn.10031c80
mov eax, dword [esi]
push 0x100
add eax, 0x14
push eax
mov ecx, edi
call fcn.10031c80
mov ecx, dword [esi]
push ecx
mov ecx, edi
call fcn.10032880
test al, al
je 0x10033a7f
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 0x100
push eax
mov ecx, edi
call fcn.10031d20
mov al, byte [esp + 0x13]
test al, al
je 0x100339b2
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push 0x100
push edx
mov ecx, edi
call fcn.10031d20
jmp 0x100339ba
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [eax + 8], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push 0x100
push eax
mov ecx, edi
call fcn.10031d20
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push 0x100
push edx
mov ecx, edi
call fcn.10031d20
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push 0x100
push ecx
mov ecx, edi
call fcn.10031d20
lea edx, [esp + 0x12]
push edx
mov ecx, edi
mov byte [esp + 0x16], 1
call fcn.10031e20
mov al, byte [esp + 0x12]
test al, al
je 0x10033a4f
mov ebp, 0x1c
mov ebx, 0x80
mov eax, dword [esi]
add eax, ebp
push eax
mov ecx, edi
call fcn.10031e30
add ebp, 2
dec ebx
jne 0x10033a13
mov ecx, dword [esi]
add ecx, 0x11c
push 0x80
push ecx
mov ecx, edi
call fcn.10031d20
mov edx, dword [esi]
push 0x80
add edx, 0x19c
push edx
mov ecx, edi
call fcn.10031d20
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push eax
add esi, 0x18
call fcn.100331c0
add esp, 4
mov ecx, edi
call fcn.10032c20
mov ecx, edi
call fcn.10031ed0
movzx ax, byte [edi + 6]
test ax, ax
mov dword [esp + 0x20], eax
jne 0x10033a8c
mov ecx, dword [esp + 0x30]
push ecx
call fcn.10032f40
add esp, 4
mov al, byte [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret