Function at 0x1012dfc
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov eax, dword [ebx + 0x54]
mov ecx, dword [ebx + 8]
push 1
xor esi, esi
cmp byte [ecx + eax], 0
pop edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], esi
jne 0x1012e75
mov ecx, dword [ebx + 0x60]
cmp byte [ecx], 0xff
jne 0x1012e75
inc dword [ebx + 0x68]
inc ecx
inc eax
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x54], eax
mov eax, dword [ebx + 4]
cmp dword [eax + 4], esi
je 0x1012e6d
mov ecx, dword [ebx + 0x5c]
mov eax, dword [ebp + 8]
imul ecx, ecx, 0x3c
mov edi, dword [eax + 0xe2]
push 0xf
add edi, ecx
mov dword [ebp - 0x3a], esi
mov dword [ebp - 0x42], esi
pop ecx
lea esi, [ebp - 0x4c]
add eax, 0xde
mov byte [ebp - 0x4c], 0x66
push 0x3c
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.01014a12
inc dword [ebx + 0x5c]
push 4
pop eax
jmp 0x10131ed
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
movsx ecx, word [eax + 0x16]
add dword [ebx + 0x50], ecx
mov ecx, dword [ebx + 0x50]
cmp word [eax + 0xa], si
mov dword [ebp - 8], ecx
je 0x1012e9a
push edx
push eax
call fcn.010126f0
add dword [ebx + 0x50], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
movsx ecx, word [eax + 0x1e]
sub edx, ecx
mov dword [ebx + 0x3c], edx
cmp word [eax + 0xa], si
je 0x1012eb9
push 4
push eax
call fcn.010126f0
sub dword [ebx + 0x3c], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], 3
mov edi, dword [ebp + 8]
jl 0x1012ed1
cmp dword [edi + 0xf6], esi
jle 0x1013092
cmp dword [ebx + 0xc], esi
jne 0x1012fa9
cmp dword [edi + 0xf6], esi
lea eax, [edi + 0xf6]
jle 0x1012fa9
mov esi, dword [edi + 0xf2]
lea edx, [edi + 0xf2]
push 0xa
lea edi, [ebx + 0x10]
pop ecx
rep movsd dword es:[edi], dword [esi]
dec dword [eax]
mov eax, dword [eax]
mov edx, dword [edx]
lea eax, [eax + eax*4]
shl eax, 3
push eax
lea eax, [edx + 0x28]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
xor esi, esi
cmp dword [ebx + 0x10], esi
push 1
pop ecx
mov dword [ebx + 0xc], ecx
jne 0x1012f46
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x24]
cmp eax, 0xa
mov dword [ebx + 0x1c], eax
jge 0x1012f3b
mov dword [ebx + 0x10], ecx
jmp 0x1012f41
add eax, 0xfffffff6
mov dword [ebx + 0x3c], eax
cmp dword [ebx + 0x10], esi
je 0x1012f71
mov eax, dword [ebx]
movsx ecx, word [eax + 0x1c]
mov dword [ebx + 0x1c], ecx
mov dx, word [eax + 0x20]
cmp dx, si
jge 0x1012f60
movsx edx, dx
add edx, ecx
mov dword [ebx + 0x1c], edx
cmp word [eax + 0xa], si
je 0x1012f71
push 2
push eax
call fcn.010126f0
add dword [ebx + 0x1c], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x50]
cmp ecx, dword [ebx + 0x18]
mov dword [ebx + 0x20], eax
jge 0x1012fa4
mov edx, ecx
imul edx, edx, 0x3c
mov esi, dword [ebp + 8]
mov eax, edx
add edx, 0x3c
add eax, dword [esi + 0xe2]
mov esi, dword [ebx + 0x1c]
add dword [eax + 2], esi
mov esi, dword [ebx + 0x20]
add dword [eax + 6], esi
inc ecx
cmp ecx, dword [ebx + 0x18]
jl 0x1012f84
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
cmp dword [ebx + 0xc], esi
sete al
mov dword [ebx + 0x40], eax
mov eax, dword [ebx]
movsx ecx, word [eax + 0x1c]
mov dword [ebx + 0x38], ecx
cmp word [eax + 0xa], si
je 0x1012fce
push 2
push eax
call fcn.010126f0
add dword [ebx + 0x38], eax
cmp dword [ebx + 0xc], esi
je 0x1012fe1
cmp dword [ebx + 0x10], esi
je 0x1012fe1
mov eax, dword [ebx + 0x24]
add eax, 0xa
add dword [ebx + 0x38], eax
cmp dword [ebp - 0xc], esi
je 0x1013006
mov eax, dword [ebx]
cmp word [eax + 0x10], si
movsx eax, word [eax + 0x20]
je 0x1012ffe
sub dword [ebx + 0x3c], eax
mov dword [ebp - 4], 1
jmp 0x1013001
add dword [ebx + 0x38], eax
mov dword [ebp - 0xc], esi
jmp 0x101301d
cmp dword [ebp - 4], esi
je 0x101301d
mov eax, dword [ebx]
cmp word [eax + 0x10], si
je 0x101301d
movsx eax, word [eax + 0x20]
add dword [ebx + 0x3c], eax
mov dword [ebp - 4], esi
cmp dword [ebp + 0xc], 3
je 0x1013033
cmp dword [ebp + 0xc], 4
je 0x1013033
push ebx
push edi
call fcn.010131f4
mov dword [ebp + 0xc], eax
cmp dword [ebx + 0xc], esi
je 0x1012ebc
cmp dword [ebp + 0xc], 3
je 0x1013057
cmp dword [ebp + 0xc], 4
je 0x1013057
mov eax, dword [ebx + 0x28]
add eax, dword [ebx + 0x20]
cmp dword [ebx + 0x50], eax
jle 0x1012ebc
mov eax, dword [ebx]
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0xc], esi
movsx ecx, word [eax + 0x1e]
sub edx, ecx
mov dword [ebx + 0x3c], edx
cmp word [eax + 0xa], si
je 0x1013079
push 4
push eax
call fcn.010126f0
sub dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x20]
add eax, ecx
mov ecx, dword [ebx + 0x50]
cmp ecx, eax
jle 0x101308a
mov eax, ecx
mov dword [ebx + 0x50], eax
jmp 0x1012ebc
mov eax, dword [ebp - 8]
cmp dword [ebx + 0x50], eax
jne 0x10130ed
cmp dword [ebp + 0xc], 4
je 0x10130ed
cmp word [ebx + 0x48], 0xffff
jne 0x10130ab
mov word [ebx + 0x48], si
movsx eax, word [ebx + 0x48]
cmp dword [edi + 0x13e], eax
je 0x10130de
push eax
push edi
call fcn.0100ef05
lea eax, [edi + 0x142]
push eax
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
movsx eax, word [ebx + 0x48]
mov dword [edi + 0x13a], eax
mov dword [edi + 0x13e], eax
mov eax, dword [edi + 0x142]
add eax, dword [edi + 0x152]
add dword [ebx + 0x50], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebx + 0x5c]
imul ecx, ecx, 0x3c
imul eax, eax, 0x3c
mov edx, dword [edi + 0xe2]
mov dword [ebp + 0x10], esi
lea esi, [ecx + edx]
add edx, eax
cmp esi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edx
jae 0x101312f
mov edx, dword [esi + 0x12]
mov esi, dword [esi + 6]
add edx, esi
cmp dword [ebp + 0x10], edx
jg 0x1013121
mov dword [ebp + 0x10], edx
mov esi, dword [ebp - 0xc]
add esi, 0x3c
cmp esi, dword [ebp - 0x10]
mov dword [ebp - 0xc], esi
jb 0x1013111
mov edx, dword [ebx + 0x50]
cmp edx, dword [ebp + 0x10]
jg 0x101313a
mov edx, dword [ebp + 0x10]
mov dword [ebx + 0x50], edx
mov edx, dword [ebx]
xor esi, esi
cmp word [edx + 0xa], si
je 0x10131e1
mov edi, dword [edi + 0xe2]
add ecx, edi
add edi, eax
cmp ecx, edi
jae 0x101316c
mov eax, dword [ecx + 2]
mov edx, dword [ecx + 0xe]
add eax, edx
cmp esi, eax
jg 0x1013167
mov esi, eax
add ecx, 0x3c
jmp 0x1013155
mov al, byte [edi + 1]
mov byte [edi], 5
and al, 0xfe
or al, 2
mov byte [edi + 1], al
mov eax, dword [ebx]
movsx ecx, word [eax + 0x1c]
movsx eax, word [eax + 0x20]
add eax, ecx
cmp ecx, eax
jge 0x101318b
mov eax, ecx
mov dword [edi + 2], eax
mov eax, dword [ebp - 8]
mov dword [edi + 6], eax
mov eax, dword [ebx + 0x3c]
cmp esi, eax
jg 0x101319d
mov esi, eax
push 4
push dword [ebx]
call fcn.010126f0
sub esi, dword [edi + 2]
push 3
add eax, esi
mov dword [edi + 0xe], eax
push dword [ebx]
call fcn.010126f0
add dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x50]
sub eax, dword [ebp - 8]
add edi, 0x2a
push 0x3c
mov dword [edi - 0x18], eax
mov esi, dword [ebx]
mov eax, dword [ebp + 8]
add esi, 0x24
movsw word es:[edi], word [esi]
add eax, 0xde
push eax
movsb byte es:[edi], byte [esi]
call fcn.01014a12
inc dword [ebx + 0x5c]
mov eax, dword [ebx]
movsx eax, word [eax + 0x18]
add dword [ebx + 0x50], eax
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc