Function at 0x1001c4f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
mov dword [esp + 0x18], edx
mov edi, ecx
cmp dword [ebx], 0
mov dword [esp + 0x10], 0
jne 0x1001c6ed
cmp byte [edi + 1], 0
jne 0x1001c699
mov esi, dword [ebp + 0xc]
movzx eax, word [edi + 0x10]
lea ecx, [esi + 2]
cmp ecx, eax
jg 0x1001c699
mov ecx, dword [edi + 0x44]
mov edx, dword [ecx + 0x10]
mov eax, dword [edx + 0x94]
cmp eax, dword [edx + 0x98]
jbe 0x1001c54d
call fcn.10012c80
jmp 0x1001c552
call fcn.10012970
test eax, eax
je 0x1001c55f
mov dword [ebx], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x38]
mov edx, esi
movzx ecx, word [edi + 0xe]
mov dword [esp + 0x14], eax
movzx eax, word [edi + 0x12]
lea eax, [ecx + eax*2]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
lea eax, [ecx + eax*2]
mov ecx, edi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
call fcn.10016c40
add esp, 4
test eax, eax
jne 0x1001c556
mov ecx, dword [esp + 0x10]
mov eax, 0xfffe
mov edx, dword [esp + 0x14]
sub eax, esi
inc word [edi + 0x12]
add word [edi + 0x10], ax
push esi
push dword [ebp + 8]
lea esi, [edx + ecx]
push esi
call fcn.100c1ff0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
test ecx, ecx
je 0x1001c5dd
mov eax, ecx
mov byte [esi + 3], cl
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov esi, dword [esp + 0x14]
add esi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
push eax
lea eax, [esi + 2]
push esi
push eax
call fcn.100c1ff0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov edx, dword [esp + 0x14]
mov eax, ecx
mov byte [esi + 1], cl
sar eax, 8
mov byte [esi], al
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 0x13]
mov byte [ecx + edx + 3], al
movzx ecx, byte [edi + 6]
movzx eax, byte [edi + 0x12]
mov byte [ecx + edx + 4], al
mov eax, dword [edi + 0x34]
cmp byte [eax + 0x11], 0
je 0x1001c6ed
cmp dword [ebx], 0
jne 0x1001c6ed
mov esi, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
mov edx, esi
mov ecx, edi
call fcn.10016870
mov ax, word [esp + 0x36]
add esp, 4
test ax, ax
je 0x1001c6ed
movzx ecx, ax
movzx eax, byte [ecx + esi + 1]
add ecx, esi
push ebx
push dword [edi + 0x48]
movzx edx, byte [ecx]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 2]
shl edx, 8
or edx, eax
movzx eax, byte [ecx + 3]
mov ecx, dword [edi + 0x34]
shl edx, 8
push 3
or edx, eax
call fcn.100165f0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1001c6b5
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.100c1ff0
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x1001c6b8
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x1001c6d9
mov eax, ecx
mov byte [esi + 3], cl
shr eax, 0x18
mov byte [esi], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 1], al
mov eax, ecx
shr eax, 8
mov byte [esi + 2], al
mov al, byte [edi + 1]
movzx ecx, al
inc al
mov byte [edi + 1], al
mov dword [edi + ecx*4 + 0x20], esi
mov word [edi + ecx*2 + 0x16], dx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret