Function at 0x10072740
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [eax + 4]
push ebp
mov ebp, dword [eax + 0x2c]
push edi
mov edi, ecx
lea edx, [ebx + ebp]
mov ecx, edx
call fcn.10072070
movzx eax, ax
test ax, ax
mov dword [esp + 0x18], eax
jne 0x1007278b
lea ecx, [edx + 2]
call fcn.10072070
movzx eax, ax
sub eax, 6
cmp edi, eax
jge 0x10072782
movzx eax, byte [edx + edi + 6]
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
cmp ax, 6
push esi
jne 0x100727d2
lea ecx, [edx + 6]
call fcn.10072070
movzx esi, ax
cmp edi, esi
jb 0x10072950
lea ecx, [edx + 8]
call fcn.10072070
movzx ecx, ax
add ecx, esi
cmp edi, ecx
jae 0x10072950
sub edi, esi
lea ecx, [ebp + edi*2 + 0xa]
add ecx, ebx
call fcn.10072070
pop esi
pop edi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x14
ret
cmp ax, 2
je 0x10072950
cmp ax, 4
jne 0x1007292c
lea ecx, [edx + 6]
call fcn.10072070
shr ax, 1
movzx eax, ax
lea ecx, [edx + 8]
mov dword [esp + 0x18], eax
call fcn.10072070
shr ax, 1
movzx ecx, ax
mov dword [esp + 0x14], ecx
lea ecx, [edx + 0xa]
call fcn.10072070
movzx eax, ax
lea ecx, [edx + 0xc]
mov dword [esp + 0x10], eax
call fcn.10072070
shr ax, 1
cmp edi, 0xffff
movzx eax, ax
lea edx, [ebp + 0xe]
jg 0x10072950
movzx ecx, ax
lea esi, [edx + ecx*2]
lea ecx, [esi + ebx]
call fcn.10072070
movzx eax, ax
cmp edi, eax
jl 0x1007284d
mov edx, esi
sub edx, 2
cmp word [esp + 0x10], 0
je 0x10072896
jmp 0x10072860
mov ax, word [esp + 0x14]
shr ax, 1
movzx ecx, ax
lea esi, [edx + ecx*2]
lea ecx, [esi + ebx]
mov word [esp + 0x14], ax
call fcn.10072070
movzx eax, ax
cmp edi, eax
jle 0x10072884
mov edx, esi
mov eax, dword [esp + 0x10]
add eax, 0xffff
test ax, ax
mov dword [esp + 0x10], eax
jne 0x10072860
lea eax, [ebp + 0xe]
sub edx, eax
add edx, 2
shr edx, 1
movzx eax, dx
movzx edx, word [esp + 0x18]
movzx esi, ax
lea ecx, [edx + esi]
lea ecx, [ebp + ecx*2 + 0x10]
add ecx, ebx
mov dword [esp + 0x18], edx
call fcn.10072070
movzx eax, ax
movzx eax, ax
cmp edi, eax
mov dword [esp + 0x14], eax
jl 0x10072950
lea edx, [edx + edx*2]
lea eax, [edx + esi]
lea ecx, [ebp + eax*2 + 0x10]
add ecx, ebx
call fcn.10072070
movzx eax, ax
test ax, ax
jne 0x10072909
mov ecx, dword [esp + 0x18]
lea edx, [esi + ecx*2 + 8]
lea ecx, [ebp + edx*2]
add ecx, ebx
call fcn.10072080
pop esi
add ax, di
pop edi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x14
ret
sub edx, dword [esp + 0x14]
movzx eax, ax
add edx, esi
add edx, edi
add eax, ebp
lea ecx, [eax + edx*2 + 0x10]
add ecx, ebx
call fcn.10072070
pop esi
pop edi
pop ebp
movzx eax, ax
pop ebx
add esp, 0x14
ret
cmp ax, 0xc
je 0x10072938
cmp ax, 0xd
jne 0x10072950
lea ecx, [edx + 0xc]
mov dword [esp + 0x14], 0
call fcn.10072090
test eax, eax
mov dword [esp + 0x10], eax
jg 0x10072964
xor eax, eax
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esp + 0x14]
sub esi, eax
sar esi, 1
add esi, eax
lea ecx, [esi + esi*2]
lea edx, [ebp + ecx*4]
lea eax, [edx + ebx]
lea ecx, [eax + 0x10]
mov dword [esp + 0x18], eax
call fcn.10072090
cmp edi, eax
mov dword [esp + 0x20], eax
jae 0x10072994
mov dword [esp + 0x10], esi
jmp 0x100729ab
mov ecx, dword [esp + 0x18]
add ecx, 0x14
call fcn.10072090
cmp edi, eax
jbe 0x100729bf
add esi, 1
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jl 0x10072960
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
lea ecx, [esi + esi*2 + 6]
lea ecx, [ebp + ecx*4]
add ecx, ebx
call fcn.10072090
cmp word [esp + 0x1c], 0xc
jne 0x10072952
sub eax, dword [esp + 0x20]
pop esi
add eax, edi
pop edi
pop ebp
pop ebx
add esp, 0x14
ret