Function at 0x1002d710
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push edi
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebx]
mov dword [ebp - 0x10], edx
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
movzx ecx, word [eax + edx + 6]
movzx edi, cx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
cmp ecx, edi
jb 0x1002d745
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax + edx + 0x14]
add eax, dword [ebp - 4]
push esi
lea esi, [ecx + ecx*4]
shl esi, 3
mov dword [ebp - 0x18], esi
add esi, 0x18
add eax, esi
mov esi, dword [eax + edx + 0x14]
add eax, edx
mov dword [ebp - 0x14], esi
mov esi, dword [eax + 0x10]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x20]
movzx esi, si
sub edi, ecx
je 0x1002d799
lea esi, [eax + 0x28]
push 0x28
push esi
push eax
call fcn.1008d490
add esp, 0xc
mov eax, esi
sub edi, 1
jne 0x1002d775
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
movzx esi, word [eax + edx + 6]
mov edi, dword [ebp - 0xc]
lea eax, [esi - 1]
mov esi, dword [ebp - 4]
mov word [esi + edx + 6], ax
movzx esi, ax
cmp ecx, esi
jne 0x1002d7fd
mov ecx, dword [ebx]
xor edx, edx
mov eax, dword [ebp - 8]
mov esi, dword [ecx + 0x3c]
add esi, ecx
div dword [esi + 0x38]
xor eax, eax
cmp eax, edx
sbb eax, eax
and eax, dword [esi + 0x38]
sub edx, eax
mov eax, dword [ebp - 8]
sub edx, eax
add dword [esi + 0x50], edx
sub dword [edi], eax
push dword [edi]
call fcn.1008bff2
push dword [edi]
mov esi, eax
push dword [ebx]
push esi
call fcn.1008d490
push dword [ebx]
call fcn.1008c032
add esp, 0x14
mov dword [ebx], esi
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edi]
call fcn.1008bff2
push dword [edi]
mov ecx, eax
push dword [ebx]
mov dword [ebp - 0x20], ecx
push ecx
call fcn.1008d490
mov eax, dword [ebp - 0x20]
add esp, 0x10
mov ecx, dword [eax + 0x3c]
movzx edx, word [ecx + eax + 0x14]
add edx, ecx
add edx, eax
mov eax, dword [ebp + 8]
cmp eax, esi
jae 0x1002d8a1
mov edi, dword [ebp - 0x18]
add edi, 0x2c
add edi, edx
sub esi, eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x18], esi
nop dword [eax]
push dword [edi - 4]
mov eax, dword [edi]
add eax, dword [ebx]
push eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebx]
push eax
call fcn.1008d490
mov ebx, dword [edi - 0x28]
add esp, 0xc
mov ecx, dword [edi - 0x2c]
add ebx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [edi], ebx
mov edi, dword [edi - 0x30]
add edi, ecx
mov esi, dword [edx + eax + 0x38]
mov eax, edi
xor edx, edx
div esi
xor eax, eax
cmp eax, edx
sbb eax, eax
and eax, esi
sub eax, edx
add eax, edi
mov edi, dword [ebp + 8]
mov dword [edi - 8], eax
mov eax, dword [edi - 4]
add edi, 0x28
add eax, ebx
mov dword [ebp + 8], edi
sub dword [ebp - 0x18], 1
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jne 0x1002d840
mov edi, dword [ebp - 0xc]
push dword [ebx]
call fcn.1008c032
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 8]
mov dword [ebx], ecx
mov esi, dword [ecx + 0x3c]
add esi, ecx
div dword [esi + 0x38]
xor eax, eax
cmp eax, edx
sbb eax, eax
and eax, dword [esi + 0x38]
sub edx, eax
mov eax, dword [ebp - 8]
sub edx, eax
add dword [esi + 0x50], edx
sub dword [edi], eax
push dword [edi]
call fcn.1008bff2
push dword [edi]
mov esi, eax
push dword [ebx]
push esi
call fcn.1008d490
push dword [ebx]
call fcn.1008c032
add esp, 0x18
mov dword [ebx], esi
mov eax, 1
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret