Function at 0x10001700
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
mov ecx, 0xe0
mov dword [ebp - 0x10], edi
mov esi, dword [edi + 0x3c]
mov ax, word [esi + edi + 0x14]
lea ebx, [esi + edi]
movzx edx, word [ebx + 6]
sub ax, cx
movzx eax, ax
lea ecx, [edi + 0xf8]
mov dword [ebp - 0x1c], eax
add eax, esi
add ecx, eax
mov dword [ebp - 0x14], ebx
mov eax, dword [ebx + 0x50]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp si, dx
jae 0x1000179c
mov eax, dword [ebx + 0x38]
add ecx, 8
mov edi, edx
mov ebx, eax
mov esi, dword [ecx]
mov eax, esi
cmp dword [ecx + 8], esi
cmova eax, dword [ecx + 8]
xor edx, edx
dec eax
add eax, dword [ecx + 4]
add eax, ebx
div ebx
imul eax, ebx
cmp dword [ebp - 4], eax
ja 0x1000178d
cmp dword [ecx + 8], esi
mov eax, dword [ecx + 4]
cmova esi, dword [ecx + 8]
dec eax
add eax, esi
xor edx, edx
add eax, ebx
div ebx
imul eax, ebx
mov dword [ebp - 4], eax
jmp 0x10001790
mov eax, dword [ebp - 4]
add ecx, 0x28
dec edi
jne 0x10001755
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x100019a0
push 0x40
add eax, 0x14
push 0x3000
push eax
push dword [ebx + 0x34]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100017dc
push 0x40
push 0x3000
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100019a0
movzx eax, word [ebx + 6]
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x3c]
lea eax, [eax + ecx*8]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xf8
add eax, ecx
push eax
push edi
push esi
call fcn.100538f0
xor eax, eax
add esp, 0xc
xor edi, edi
cmp ax, word [ebx + 6]
jae 0x10001848
mov ecx, dword [ebp - 8]
lea esp, [esp]
movzx eax, di
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*8 + 0x10]
test edx, edx
je 0x10001841
mov ecx, dword [ecx + eax*8 + 0xc]
test ecx, ecx
je 0x1000183e
push edx
mov edx, dword [ebp - 8]
mov eax, dword [edx + eax*8 + 0x14]
add eax, dword [ebp - 0x10]
push eax
lea eax, [ecx + esi]
push eax
call fcn.100538f0
add esp, 0xc
mov ecx, dword [ebp - 8]
inc edi
cmp di, word [ebx + 6]
jb 0x10001810
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
add edi, esi
push 8
mov dword [edi + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [edi + 8], eax
mov dword [edi + 4], 0
mov dword [edi], 0
call fcn.10053278
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10001992
mov ecx, esi
mov dword [ebx + 4], esi
call fcn.100013a0
test eax, eax
je 0x10001989
test dword [ebp - 0xc], 1
je 0x100018d1
mov edi, 0x10080c14
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x100018a0
mov eax, dword [0x10080c1c]
mov dword [ebx], eax
inc dword [0x10080c18]
xor eax, eax
mov dword [0x10080c1c], ebx
xchg dword [edi], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
push dword [ebp + 8]
call fcn.10001570
add esp, 8
test eax, eax
je 0x10001989
mov edi, 0x10080c14
mov ecx, 1
xor eax, eax
lock cmpxchg dword [edi], ecx
test eax, eax
jne 0x100018f0
mov eax, dword [0x10080c1c]
mov dword [ebx], eax
xor eax, eax
inc dword [0x10080c18]
mov dword [0x10080c1c], ebx
xchg dword [edi], eax
mov ecx, dword [ebp - 0x14]
mov edx, 0x2000
mov ax, word [ecx + 0x16]
and ax, dx
xor edx, edx
cmp dx, ax
je 0x100018c6
mov edx, dword [ebp - 0xc]
test edx, 2
jne 0x100018c6
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x100018c6
add eax, esi
mov dword [ebp + 0xc], eax
test edx, 4
je 0x1000194f
mov eax, esi
jmp 0x10001957
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 1
push eax
call dword [ebp + 0xc]
test eax, eax
jne 0x100018c6
call fcn.100012a0
mov edx, ebx
call fcn.100012c0
xor eax, eax
xchg dword [edi], eax
mov ecx, dword [ebp - 4]
mov edx, esi
push 0
lea ecx, [esi + ecx]
call fcn.10001480
add esp, 4
push ebx
call fcn.10053240
add esp, 4
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8