Function at 0x6c87a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 8
push ebx
mov ebx, dword [eax + 4]
push edi
mov edi, ecx
mov eax, dword [ebx + 0x40]
cmp eax, dword [ebx + 0x44]
jne 0x6c87c2
cmp byte [edi + 0xc], 0
je 0x6c89a5
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [edi + 0x18]
lea edx, [eax + eax*4]
mov eax, dword [ebx + 0x50]
movzx ecx, byte [ecx + 4]
shl ecx, 8
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
add edx, ecx
mov ecx, dword [edi + 0x14]
movzx eax, byte [eax + 5]
add edx, eax
mov eax, esi
add edx, edx
sub eax, ecx
cmp edx, eax
jae 0x6c87fb
mov edx, 0x3fffffff
jmp 0x6c8801
sub edx, esi
add edx, ecx
shr edx, 1
mov eax, dword [edi + 4]
lea esi, [esi + edx*2]
add eax, 0x14
mov dword [ebp - 8], esi
push eax
mov ecx, esi
call fcn.006ba980
mov edx, 0x100
test al, al
je 0x6c88cc
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
imul ecx, edx
add cx, ax
je 0x6c88cc
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
inc eax
mov ecx, dword [edi + 0x10]
cmp eax, edx
mov dword [ebp + 8], ecx
mov ecx, edx
cmovbe ecx, eax
cmp ecx, edx
cmovbe edx, ecx
mov ecx, dword [ebp + 8]
mov eax, edx
mov dword [ebp - 4], edx
sub eax, ecx
cmp eax, 2
jb 0x6c8888
or dword [ebx + 0x90], 0x20
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffff
push edx
push ecx
push esi
mov ecx, ebx
call fcn.00673010
mov ecx, dword [ebp + 8]
push 3
push eax
push dword [ebp - 4]
push ecx
push esi
mov ecx, ebx
call fcn.00673090
mov esi, dword [ebp - 8]
movzx edx, byte [esi]
movzx eax, byte [esi + 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 0x6c88c9
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
add ecx, eax
push ecx
mov ecx, dword [edi + 8]
call fcn.00691f90
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 esi, dword [edi + 0x18]
cmovbe ecx, dword [ebx + 0x40]
lea edx, [ecx + ecx*4]
mov ecx, dword [ebp + 0xc]
shl edx, 2
mov dword [ebp + 8], edx
movzx ecx, byte [ecx + 7]
mov edx, dword [eax + edx]
mov eax, dword [ebp + 0xc]
add edx, ecx
mov ecx, dword [edi + 0x14]
movzx eax, byte [eax + 6]
shl eax, 8
add edx, eax
mov eax, esi
add edx, edx
sub eax, ecx
cmp edx, eax
jae 0x6c8912
mov edx, 0x3fffffff
jmp 0x6c8918
sub edx, esi
add edx, ecx
shr edx, 1
mov eax, dword [edi + 4]
lea esi, [esi + edx*2]
add eax, 0x14
mov ecx, esi
push eax
call fcn.006ba980
test al, al
je 0x6c8982
mov dh, byte [esi]
mov eax, 0x100
mov dl, byte [esi + 1]
movzx ecx, dh
imul ecx, eax
movzx eax, dl
add cx, ax
je 0x6c8982
movzx ecx, dh
movzx eax, dl
mov edx, dword [ebp + 8]
shl ecx, 8
add ecx, eax
mov eax, dword [ebx + 0x50]
mov dword [edx + eax], ecx
cmp byte [edi + 0xd], 0
je 0x6c897f
movzx ecx, byte [esi]
movzx eax, byte [esi + 1]
shl ecx, 8
add ecx, eax
push ecx
mov ecx, dword [edi + 8]
call fcn.00691f90
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebp + 8]
mov word [ecx + edx + 0xc], ax
mov byte [edi], 1
mov eax, dword [ebp + 0xc]
pop esi
movzx ecx, byte [eax + 2]
mov eax, 0x100
cwde
movsx ecx, cx
imul ecx, eax
test cx, cx
jns 0x6c89a5
mov byte [edi + 0xc], 1
mov eax, dword [ebx + 0x40]
mov dword [edi + 0x10], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8