Function at 0x10033760
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.10031db0
test al, al
je 0x10033bd1
mov al, byte [edi + 4]
test al, al
mov ebx, dword [esi]
mov dword [esp + 0x18], ebx
je 0x100337a4
mov word [ebx + 0x2a], 3
mov ecx, edi
call fcn.10031ff0
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.10031f50
mov cx, word [esp + 0x14]
mov word [ebx + 0x28], cx
cmp word [esp + 0x14], 0x1f5e
jb 0x100337cd
mov byte [edi + 5], 1
mov ecx, edi
call fcn.10032d80
push 0x1c
lea ebp, [ebx + 8]
push ebp
mov ecx, edi
call fcn.10031db0
push 0x21c
lea esi, [ebx + 0x14]
push esi
mov ecx, edi
call fcn.10031db0
test al, al
je 0x10033bd1
xor ecx, ecx
mov dword [esp + 0x1c], ecx
jmp 0x10033805
mov ecx, dword [esp + 0x1c]
cmp cx, 4
jne 0x10033841
cmp word [esp + 0x14], 0x2328
jae 0x10033841
mov edx, dword [ebp]
push 2
add edx, 0x10
push edx
mov ecx, edi
call fcn.10031db0
test al, al
je 0x10033bd1
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 0x10033865
mov eax, dword [ebp]
test eax, eax
je 0x10033851
movzx ecx, cx
lea edx, [eax + ecx*4]
push edx
jmp 0x1003385e
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov ecx, edi
call fcn.10032b60
mov eax, dword [esp + 0x1c]
inc eax
cmp ax, 7
mov dword [esp + 0x1c], eax
jb 0x10033801
cmp word [esp + 0x14], 0x2328
jae 0x1003389e
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
mov dword [esp + 0x20], 0
call fcn.100329e0
mov edx, dword [esp + 0x1c]
push edx
call fcn.1005abf0
add esp, 4
push ebx
mov ecx, edi
call fcn.10031f50
lea eax, [ebx + 2]
push eax
mov ecx, edi
call fcn.10031f50
lea ecx, [ebx + 0xc]
push ecx
mov ecx, edi
call fcn.10031fa0
lea edx, [ebx + 0x10]
push edx
mov ecx, edi
call fcn.10031fa0
lea eax, [ebx + 0x1c]
push eax
mov ecx, edi
call fcn.10031fa0
mov ecx, edi
call fcn.10032d80
mov eax, dword [esi]
test eax, eax
je 0x100338e5
add eax, 0x18
push eax
jmp 0x100338f2
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
mov ecx, edi
call fcn.10031fa0
lea ebp, [ebx + 0x22]
push ebp
mov ecx, edi
call fcn.10031f50
test al, al
je 0x10033bd1
cmp word [ebx + 0x28], 0x2328
jae 0x1003391a
mov word [ebp], 0
mov al, byte [edi + 4]
test al, al
jne 0x10033948
xor cl, cl
mov byte [esp + 0x12], cl
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x10033948
mov edx, dword [eax]
cmp word [edx], 0
je 0x10033948
inc cl
movzx edx, cl
mov byte [esp + 0x12], cl
mov edx, dword [eax + edx*4]
cmp word [edx], 0
jne 0x10033936
lea eax, [esp + 0x12]
push eax
mov ecx, edi
call fcn.10031f40
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.10031db0
test al, al
je 0x10033bd1
mov al, byte [esp + 0x12]
xor ebp, ebp
test al, al
jbe 0x100339a0
mov eax, dword [ebx]
movzx edx, bp
lea ecx, [eax + edx*4]
push ecx
mov ecx, edi
call fcn.100329e0
mov al, byte [esp + 0x12]
movzx dx, al
inc ebp
cmp bp, dx
jb 0x10033982
mov cl, byte [edi + 4]
test cl, cl
je 0x100339b3
mov ecx, dword [ebx]
movzx eax, al
mov dword [ecx + eax*4], 0x10090620
mov ebx, dword [esp + 0x18]
xor eax, eax
mov ax, word [ebx]
test ax, ax
je 0x10033a0f
shl eax, 2
movzx edx, ax
push edx
add ebx, 4
push ebx
mov ecx, edi
call fcn.10031db0
test al, al
je 0x10033bd1
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp word [eax], bp
jbe 0x10033a0f
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.10033420
add esp, 0xc
test al, al
je 0x10033bd1
mov edx, dword [esp + 0x18]
inc ebp
cmp bp, word [edx]
jb 0x100339e6
mov ecx, edi
call fcn.10031ff0
mov ecx, edi
call fcn.10032d80
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.10031f40
mov al, byte [esp + 0x12]
test al, al
je 0x10033ba1
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.10031f40
mov al, byte [edi + 4]
test al, al
je 0x10033ac4
mov al, byte [esp + 0x13]
test al, al
je 0x10033a7c
mov edx, dword [esi]
push pe_nt_image_headers32
add edx, 8
push edx
mov ecx, edi
call fcn.10031db0
mov eax, dword [esi]
push pe_nt_image_headers32
add eax, 4
push eax
mov ecx, edi
call fcn.10031db0
mov ecx, dword [esi]
add ecx, 0xc
push pe_nt_image_headers32
push ecx
mov ecx, edi
call fcn.10031db0
mov edx, dword [esi]
push pe_nt_image_headers32
add edx, 0x10
push edx
mov ecx, edi
call fcn.10031db0
mov eax, dword [esi]
push pe_nt_image_headers32
add eax, 0x14
push eax
mov ecx, edi
call fcn.10031db0
mov ecx, dword [esi]
push ecx
mov ecx, edi
call fcn.100329e0
test al, al
je 0x10033bd1
mov edx, dword [esi]
mov eax, dword [edx + 4]
push pe_nt_image_headers32
push eax
mov ecx, edi
call fcn.10031e40
mov al, byte [esp + 0x13]
test al, al
je 0x10033b04
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push pe_nt_image_headers32
push edx
mov ecx, edi
call fcn.10031e40
jmp 0x10033b0c
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [eax + 8], ecx
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
push pe_nt_image_headers32
push eax
mov ecx, edi
call fcn.10031e40
mov ecx, dword [esi]
mov edx, dword [ecx + 0x10]
push pe_nt_image_headers32
push edx
mov ecx, edi
call fcn.10031e40
mov eax, dword [esi]
mov ecx, dword [eax + 0x14]
push pe_nt_image_headers32
push ecx
mov ecx, edi
call fcn.10031e40
lea edx, [esp + 0x12]
push edx
mov ecx, edi
mov byte [esp + 0x16], 1
call fcn.10031f40
mov al, byte [esp + 0x12]
test al, al
je 0x10033ba1
mov ebp, 0x1c
mov ebx, 0x80
mov eax, dword [esi]
add eax, ebp
push eax
mov ecx, edi
call fcn.10031f50
add ebp, 2
dec ebx
jne 0x10033b65
mov ecx, dword [esi]
add ecx, 0x11c
push 0x80
push ecx
mov ecx, edi
call fcn.10031e40
mov edx, dword [esi]
push 0x80
add edx, 0x19c
push edx
mov ecx, edi
call fcn.10031e40
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
push eax
add esi, 0x18
call fcn.10033310
add esp, 4
mov ecx, edi
call fcn.10032d80
mov ecx, edi
call fcn.10031ff0
movzx ax, byte [edi + 6]
test ax, ax
mov dword [esp + 0x20], eax
jne 0x10033bde
mov ecx, dword [esp + 0x30]
push ecx
call fcn.100330a0
add esp, 4
mov al, byte [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret