Function at 0x1000c220
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
push esi
push edi
mov edi, eax
xor eax, eax
cmp edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
je 0x1000c250
mov eax, dword [edi + 0x44]
add word [eax + 0x16], 1
jmp 0x1000c25a
mov esi, dword [ebp + 0xc]
call fcn.10007f80
mov edi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x44]
push eax
mov dword [esp + 0x14], edi
call fcn.10028460
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x1000c51c
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x40]
movzx edx, byte [eax + 0x26]
xor ecx, ecx
mov ch, byte [eax + 0x24]
mov cl, byte [eax + 0x25]
shl ecx, 8
or ecx, edx
movzx edx, byte [eax + 0x27]
shl ecx, 8
or ecx, edx
mov dword [esp + 0x24], ecx
add ecx, 1
mov edx, ecx
shr edx, 0x18
mov byte [eax + 0x24], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 0x25], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 0x26], dl
mov byte [eax + 0x27], cl
cmp byte [ebx + 0x12], 0
mov ebx, dword [ebp + 0xc]
je 0x1000c31c
test edi, edi
jne 0x1000c2ee
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov ecx, ebx
call fcn.10007f30
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c518
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x44]
push ecx
call fcn.10028460
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x1c], esi
jne 0x1000c51c
mov edx, dword [edi + 0x3c]
mov eax, dword [edx + 0x20]
mov ecx, dword [edi + 0x40]
push eax
push esi
push ecx
call int.100713b0
add esp, 0xc
mov esi, dword [ebp + 8]
cmp byte [esi + 0x14], 0
je 0x1000c349
lea edx, [esp + 0x1c]
push edx
push 0
push 2
mov eax, ebx
mov ecx, esi
call fcn.10007260
mov esi, dword [esp + 0x28]
add esp, 0xc
test esi, esi
jne 0x1000c51c
mov esi, dword [ebp + 8]
cmp dword [esp + 0x24], 0
je 0x1000c48b
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
movzx ecx, byte [eax + 0x21]
mov ch, byte [eax + 0x20]
movzx edx, byte [eax + 0x22]
add eax, 0x20
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
lea edx, [esp + 0x18]
push edx
xor eax, eax
mov dword [esp + 0x24], ecx
call fcn.10007f30
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c51c
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x40]
movzx edx, byte [eax + 6]
add eax, 4
xor ecx, ecx
mov ch, byte [eax]
mov cl, byte [eax + 1]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, edx
mov edx, dword [ebp + 8]
shl ecx, 8
or ecx, eax
mov eax, dword [edx + 0x24]
shr eax, 2
lea edx, [eax - 2]
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jbe 0x1000c3dc
mov eax, 0x13b7
call fcn.10003120
mov esi, eax
jmp 0x1000c51c
add eax, 0xfffffff8
cmp ecx, eax
jae 0x1000c488
mov eax, dword [esi + 0x44]
push eax
call fcn.10028460
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c51c
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x40]
add ecx, 1
add eax, 4
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov byte [eax + 3], cl
mov edx, ecx
mov ecx, dword [esp + 0x1c]
shr edx, 8
mov byte [eax + 2], dl
mov eax, dword [esi + 0x40]
lea eax, [eax + ecx*4 + 8]
mov edx, ebx
shr edx, 0x18
mov byte [eax], dl
mov ecx, ebx
mov edx, ebx
shr ecx, 0x10
shr edx, 8
test edi, edi
mov byte [eax + 1], cl
mov byte [eax + 2], dl
mov byte [eax + 3], bl
je 0x1000c475
mov eax, dword [ebp + 8]
cmp byte [eax + 0x12], 0
jne 0x1000c475
mov ecx, dword [edi + 0x44]
movzx eax, word [ecx + 0x14]
test al, 2
je 0x1000c475
mov edx, dword [ecx + 0x10]
cmp dword [edx + 0x60], 0
jne 0x1000c475
or eax, 0x20
mov word [ecx + 0x14], ax
mov eax, dword [ebp + 8]
push ebx
call fcn.10006f50
add esp, 4
mov esi, eax
jmp 0x1000c51c
mov esi, dword [ebp + 8]
test edi, edi
jne 0x1000c4aa
lea eax, [esp + 0x10]
push eax
xor eax, eax
mov ecx, ebx
call fcn.10007f30
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c518
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x44]
push ecx
call fcn.10028460
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000c51c
mov eax, dword [edi + 0x40]
mov ecx, dword [esp + 0x20]
mov edx, ecx
shr edx, 0x18
mov byte [eax], dl
mov byte [eax + 3], cl
mov edx, ecx
shr edx, 0x10
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov byte [eax + 2], dl
mov eax, dword [edi + 0x40]
add eax, 4
mov byte [eax], 0
mov byte [eax + 1], 0
mov byte [eax + 2], 0
mov byte [eax + 3], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x40]
add eax, 0x20
mov ecx, ebx
shr ecx, 0x18
mov byte [eax], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [eax + 1], dl
mov byte [eax + 2], cl
mov byte [eax + 3], bl
jmp 0x1000c51c
mov edi, dword [esp + 0x10]
test edi, edi
je 0x1000c549
mov byte [edi], 0
mov edi, dword [edi + 0x44]
test edi, edi
je 0x1000c549
mov ebx, dword [edi + 0x10]
mov eax, edi
call fcn.10011c70
mov edx, dword [ebx + 0xa8]
cmp dword [edx + 0xc], 0
jne 0x1000c549
push ebx
call fcn.10025c40
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000c575
mov eax, dword [eax + 0x44]
test eax, eax
je 0x1000c575
mov edi, dword [eax + 0x10]
call fcn.10011c70
mov eax, dword [edi + 0xa8]
cmp dword [eax + 0xc], 0
jne 0x1000c575
push edi
call fcn.10025c40
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret