Function at 0x1012a0d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
mov esi, edx
mov dword [esp + 0x20], esi
mov eax, dword [ebx]
push edi
mov esi, dword [esi + 0x20]
mov eax, dword [eax + 0x54]
sub eax, 8
cdq
idiv dword [ebp + 0x10]
mov ecx, eax
mov eax, 0x20
cmp ecx, eax
cmovl ecx, eax
mov dword [esp + 0x20], ecx
test esi, esi
jne 0x1012a110
lea edi, [eax - 0x1f]
mov dword [esp + 0x18], eax
jmp 0x1012a164
cmp esi, 1
jne 0x1012a159
mov ecx, dword [ebp + 8]
mov edi, esi
mov dword [esp + 0x10], edi
mov ecx, dword [ecx]
movzx edx, byte [ecx + 4]
movzx eax, byte [ecx + 5]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 6]
shl edx, 8
add edx, eax
movzx eax, byte [ecx + 7]
mov ecx, dword [esp + 0x20]
shl edx, 8
add edx, eax
mov eax, 0x20
shl edx, 2
cmp edx, 0x20
cmovg eax, edx
mov dword [esp + 0x18], eax
cmp eax, ecx
jle 0x1012a170
lea edi, [esi*2 + 1]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
nop dword [eax + eax]
xor ecx, ecx
lea esi, [edi*4]
xor edi, edi
mov dword [esp + 0x14], ecx
cmp dword [ebx + 0x2c], ecx
jne 0x1012a1c6
call fcn.100d8ee0
test eax, eax
je 0x1012a195
xor ecx, ecx
mov dword [esp + 0x14], ecx
jmp 0x1012a1a9
push edi
push esi
call fcn.10027b10
mov ecx, eax
add esp, 8
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x1012a1b6
test esi, esi
je 0x1012a1c6
mov dword [ebx + 0x2c], 7
jmp 0x1012a1c6
push esi
push 0
push ecx
call fcn.1013ad10
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov edx, dword [esp + 0x18]
xor edi, edi
mov esi, dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
imul edx, esi
add edx, 8
mov dword [esp + 0x18], edx
test eax, eax
jle 0x1012a233
lea esi, [edx + 0xc]
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x2c], 0
jne 0x1012a22b
call fcn.100d8ee0
test eax, eax
je 0x1012a1fb
xor esi, esi
jmp 0x1012a20d
xor eax, eax
push eax
push esi
call fcn.10027b10
mov esi, eax
add esp, 8
test esi, esi
jne 0x1012a277
cmp dword [esp + 0x1c], 0
jbe 0x1012a21b
mov dword [ebx + 0x2c], 7
test esi, esi
jne 0x1012a286
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x1012a1e8
mov esi, dword [ebp + 0x10]
cmp dword [ebx + 0x2c], 0
mov edi, dword [esp + 0x10]
jne 0x1012a29b
mov edx, dword [esp + 0x24]
push ecx
push edi
push esi
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.10129e20
add esp, 0x14
test eax, eax
je 0x1012a29b
mov ecx, dword [esp + 0x14]
mov edx, edi
call fcn.10120ea0
mov eax, dword [esp + 0x20]
lea edi, [edi*2 + 1]
mov dword [esp + 0x18], eax
jmp 0x1012a164
push dword [esp + 0x1c]
push 0
push esi
call fcn.1013ad10
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
mov dword [esi], eax
mov dword [ecx + edi*4], esi
jmp 0x1012a223
cmp dword [ebx + 0x2c], 0
mov ecx, dword [esp + 0x14]
je 0x1012a2c5
mov edx, edi
call fcn.10120ea0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret