Function at 0x100fc830
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
mov edi, ecx
mov ebx, dword [eax + 4]
mov eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x44]
jne 0x100fc84e
cmp byte [edi + 0xc], 0
je 0x100fca56
mov eax, dword [edi + 0x10]
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [edi + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x50]
movzx ecx, byte [ecx + 4]
shl ecx, 8
push esi
mov edx, dword [eax + edx*4]
mov eax, dword [esp + 0x1c]
add edx, ecx
mov esi, dword [edi + 0x18]
movzx eax, byte [eax + 5]
add edx, eax
mov eax, esi
add edx, edx
sub eax, ebp
cmp edx, eax
jae 0x100fc88a
mov edx, 0x3fffffff
jmp 0x100fc890
sub edx, esi
add edx, ebp
shr edx, 1
lea eax, [esi + edx*2]
mov esi, 0x10161c90
cmp eax, dword [edi + 0x18]
mov ebp, esi
cmovae ebp, eax
mov eax, dword [edi + 4]
add eax, 0x14
mov ecx, ebp
push eax
call fcn.100f24a0
mov edx, 0x100
test al, al
je 0x100fc96f
movzx ecx, byte [ebp]
movzx eax, byte [ebp + 1]
imul ecx, edx
add cx, ax
je 0x100fc96f
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
inc eax
mov ecx, dword [edi + 0x10]
cmp eax, edx
mov dword [esp + 0x18], ecx
mov ecx, edx
cmovbe ecx, eax
cmp ecx, edx
cmovbe edx, ecx
mov ecx, dword [esp + 0x18]
mov eax, edx
mov dword [esp + 0x10], edx
sub eax, ecx
cmp eax, 2
jb 0x100fc929
or dword [ebx + 0x90], 0x20
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffff
push edx
push ecx
push esi
mov ecx, ebx
call fcn.100adbe0
mov ecx, dword [esp + 0x18]
push 3
push eax
push dword [esp + 0x18]
push ecx
push esi
mov ecx, ebx
call fcn.100adc60
mov esi, 0x10161c90
movzx edx, byte [ebp]
movzx eax, byte [ebp + 1]
shl edx, 8
add edx, eax
mov eax, dword [edi + 0x10]
lea ecx, [eax + eax*4]
mov eax, dword [ebx + 0x50]
mov dword [eax + ecx*4], edx
cmp byte [edi + 0xd], 0
je 0x100fc96c
movzx ecx, byte [ebp]
movzx eax, byte [ebp + 1]
shl ecx, 8
add ecx, eax
push ecx
mov ecx, dword [edi + 8]
call fcn.100c8f80
mov ecx, dword [edi + 0x10]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebx + 0x50]
mov word [ecx + edx*4 + 0xc], ax
mov byte [edi], 1
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x50]
dec ecx
cmp dword [ebx + 0x40], ecx
mov ebp, dword [edi + 0x18]
cmovbe ecx, dword [ebx + 0x40]
lea edx, [ecx + ecx*4]
mov ecx, dword [esp + 0x1c]
shl edx, 2
mov dword [esp + 0x18], edx
movzx ecx, byte [ecx + 6]
mov edx, dword [eax + edx]
mov eax, dword [esp + 0x1c]
shl ecx, 8
add edx, ecx
mov ecx, dword [edi + 0x14]
movzx eax, byte [eax + 7]
add edx, eax
mov eax, ebp
add edx, edx
sub eax, ecx
cmp edx, eax
jae 0x100fc9b8
mov edx, 0x3fffffff
jmp 0x100fc9be
sub edx, ebp
add edx, ecx
shr edx, 1
lea eax, [edx*2]
add eax, ebp
cmp eax, ebp
cmovae esi, eax
mov eax, dword [edi + 4]
add eax, 0x14
mov ecx, esi
push eax
call fcn.100f24a0
test al, al
je 0x100fca31
mov dl, byte [esi]
mov eax, 0x100
mov dh, byte [esi + 1]
movzx ecx, dl
imul ecx, eax
movzx eax, dh
add cx, ax
je 0x100fca31
mov ebp, dword [esp + 0x18]
movzx ecx, dl
shl ecx, 8
movzx eax, dh
add ecx, eax
mov eax, dword [ebx + 0x50]
mov dword [eax + ebp], ecx
cmp byte [edi + 0xd], 0
je 0x100fca2e
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
add ecx, eax
push ecx
mov ecx, dword [edi + 8]
call fcn.100c8f80
mov ecx, dword [ebx + 0x50]
mov word [ecx + ebp + 0xc], ax
mov byte [edi], 1
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
movzx ecx, byte [eax + 2]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
test cx, cx
jns 0x100fca56
mov byte [edi + 0xc], 1
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x10], eax
pop edi
pop ebx
pop ecx
ret 8