Function at 0x1008d510
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
mov eax, dword [edi + 0x64]
lea ebx, [edi + 0x128]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
push 0x20
push dword [edi + 0xbc]
push dword [edi + 0xc0]
push ebp
call fcn.1008e600
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1008d7b2
lea eax, [esp + 0x10]
push eax
push ebp
call fcn.1005dcc0
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1008d7b2
test esi, 0xffffff00
je 0x1008d58a
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x18
ret
and esi, 4
mov dword [esp + 0x24], esi
push ebx
je 0x1008d59b
push 0x1010c848
jmp 0x1008d5a0
push 0x1010c82c
push ebp
call fcn.1005da00
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1008d7b2
movzx edx, word [ebx]
movzx eax, word [ebx + 2]
cmp dx, ax
ja 0x1008d7ad
mov ecx, 0xff
cmp ax, cx
ja 0x1008d7ad
movzx eax, word [ebx + 4]
movzx ecx, word [ebx + 6]
cmp ax, cx
ja 0x1008d7ad
mov eax, 0xff
cmp cx, ax
ja 0x1008d7ad
movzx ecx, word [ebx + 8]
mov ax, cx
movzx ecx, cl
shr ax, 8
movzx eax, ax
mov dword [esp + 0x14], eax
movzx eax, word [ebx + 4]
mov dword [esp + 0x18], ecx
cmp word [esp + 0x14], ax
jb 0x1008d637
movzx ebp, word [ebx + 6]
cmp word [esp + 0x14], bp
mov ebp, dword [esp + 0x2c]
ja 0x1008d637
cmp cx, dx
movzx ecx, word [ebx + 2]
jb 0x1008d63b
cmp word [esp + 0x18], cx
jbe 0x1008d654
jmp 0x1008d63b
movzx ecx, word [ebx + 2]
shl eax, 8
add eax, edx
mov word [ebx + 8], ax
movzx eax, word [ebx + 4]
mov edi, eax
mov dword [esp + 0x14], edi
mov edi, edx
mov dword [esp + 0x18], edi
movzx edi, word [ebx + 6]
movzx eax, ax
movzx ecx, cx
sub edi, eax
sub ecx, edx
inc edi
inc ecx
imul edi, ecx
mov dword [esp + 0x1c], edi
lea eax, [edi + edi]
push eax
push ebp
call fcn.1005d480
mov edi, dword [esp + 0x38]
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x1008d7b2
mov edx, dword [esp + 0x14]
movzx eax, word [ebx + 4]
movzx ecx, word [ebx]
movzx edx, dx
sub edx, eax
movzx eax, word [ebx + 2]
sub eax, ecx
inc eax
imul edx, eax
mov eax, dword [esp + 0x18]
movzx eax, ax
sub edx, ecx
add edx, eax
mov eax, dword [ebp + 0x20]
lea eax, [eax + edx*2]
test esi, esi
je 0x1008d6c0
movzx ecx, byte [eax]
movzx eax, byte [eax + 1]
jmp 0x1008d6c7
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl cx, 8
or cx, ax
mov eax, 0xffff
movzx edx, cx
cmp dx, ax
jne 0x1008d6e2
mov edx, 1
jmp 0x1008d6f4
inc edx
mov ecx, 1
movzx eax, dx
cmp eax, dword [edi + 0x120]
cmovae edx, ecx
mov ecx, dword [edi + 0x124]
movzx eax, dx
add eax, eax
movups xmm0, xmmword [ecx + eax*8]
lea eax, [esp + 0x10]
push eax
push 0
push dword [esp + 0x24]
movups xmmword [ecx], xmm0
push 0
push 2
push dword [esp + 0x34]
call fcn.1005f930
mov edi, eax
add esp, 0x18
mov eax, dword [esp + 0x10]
mov dword [ebx + 0xc], edi
test eax, eax
jne 0x1008d7b2
movzx eax, word [ebx + 4]
mov dword [esp + 0x30], eax
cmp ax, word [ebx + 6]
ja 0x1008d798
movzx esi, word [ebx]
cmp si, word [ebx + 2]
ja 0x1008d78d
nop dword [eax]
cmp dword [esp + 0x24], 0
push ebp
je 0x1008d75f
call fcn.1005d6b0
jmp 0x1008d764
call fcn.1005d6f0
movzx eax, ax
mov ecx, 0xffff
add esp, 4
cmp ax, cx
jne 0x1008d778
mov eax, ecx
jmp 0x1008d77c
inc eax
movzx eax, ax
mov word [edi], ax
inc esi
add edi, 2
cmp si, word [ebx + 2]
jbe 0x1008d750
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp ax, word [ebx + 6]
jbe 0x1008d740
push ebp
call fcn.1005d550
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret