Function at 0x1002d280
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 0x10], ebx
mov esi, dword [ebx]
mov dword [ebp - 0x14], esi
mov eax, dword [esi + 0x3c]
mov dword [ebp - 4], eax
movzx ecx, word [eax + esi + 6]
movzx edi, cx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 8]
cmp ecx, edi
jb 0x1002d2b7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [eax + esi + 0x14]
lea ebx, [ecx + ecx*4]
add eax, dword [ebp - 4]
shl ebx, 3
mov dword [ebp - 0x1c], ebx
add ebx, 0x18
add eax, ebx
mov ebx, dword [eax + esi + 0x14]
add eax, esi
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax + 0x10]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x20]
movzx ebx, bx
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x10]
sub edi, ecx
je 0x1002d319
nop dword [eax]
lea esi, [eax + 0x28]
push 0x28
push esi
push eax
call fcn.1008d490
add esp, 0xc
mov eax, esi
sub edi, 1
jne 0x1002d2f0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
movzx eax, word [eax + esi + 6]
jmp 0x1002d31c
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 4]
dec eax
mov word [edi + esi + 6], ax
movzx esi, ax
cmp ecx, esi
jne 0x1002d37e
mov ecx, dword [ebx]
xor edx, edx
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [edx]
call fcn.1008bff2
mov edi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], edi
push dword [eax]
push dword [ebx]
push edi
call fcn.1008d490
mov ecx, dword [edi + 0x3c]
add esp, 0x10
mov eax, dword [ebp + 8]
movzx edx, word [ecx + edi + 0x14]
add edx, ecx
add edx, edi
cmp eax, esi
jae 0x1002d422
mov edi, dword [ebp - 0x1c]
add edi, 0x2c
add edi, edx
sub esi, eax
mov dword [ebp + 8], edi
mov dword [ebp - 0x1c], esi
nop dword [eax]
push dword [edi - 4]
mov eax, dword [ebx]
add eax, dword [edi]
push eax
mov eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x18]
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 - 0x14]
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 - 0x1c], 1
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jne 0x1002d3c0
mov edi, dword [ebp - 0x20]
push dword [ebx]
call fcn.1008c032
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [ebx], edi
mov esi, dword [edi + 0x3c]
add esi, edi
mov edi, dword [ebp - 0xc]
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret