Function at 0x646caa50
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x98
mov ebx, dword [ecx]
mov edi, dword [ecx + 4]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], bx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test byte [0x646cf018], 8
jne 0x646cad38
test edi, edi
je 0x646cad20
test bx, 0xfffd
je 0x646caadc
cmp bx, 0x17
jne 0x646cad20
mov dword [ebp - 0x5c], edi
xor esi, esi
mov edx, 2
movzx eax, word [ebp - 0x4c]
test ax, ax
je 0x646caaf8
cmp ax, dx
jne 0x646cab9f
lea eax, [ebp - 0x20]
lea edi, [ebp + esi - 0x40]
lea ebx, [eax + esi]
lea eax, [ebp - 0x28]
lea ecx, [eax + esi]
lea eax, [ebp + esi - 0x30]
mov dword [ebp - 0x54], eax
lea eax, [ebp + esi - 0x38]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x646d1d00]
mov dword [ebp - 0x50], eax
mov eax, 0x646d2630
cmp dx, 2
je 0x646cab3b
cmp dx, 0x17
mov eax, 0
mov edx, 0x646d2618
cmove eax, edx
mov dword [esp + 0x2c], ebx
mov ebx, dword [ebp - 0x54]
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp - 0x58]
mov dword [esp + 0x28], 8
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp - 0x50]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], 8
mov dword [esp + 0x18], 0x1c
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov dword [esp], 1
call sub.nsi.dll_NsiAllocateAndGetTable
sub esp, 0x34
test eax, eax
jne 0x646cad6c
add esi, 4
mov edx, 0x17
cmp esi, 8
jne 0x646caae6
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
lea eax, [eax + eax*4]
mov edi, dword [ebp - 0x5c]
shl eax, 4
add eax, 8
mov dword [esp + 8], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [edi], eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x646cad73
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax]
mov dword [esi], ecx
test edx, edx
je 0x646cac5b
xor ebx, ebx
jmp 0x646cac12
mov esi, dword [edi]
lea edx, [ebx + ebx*4]
lea eax, [ebx*8]
mov ecx, ebx
shl edx, 4
shl ecx, 4
add ecx, dword [ebp - 0x40]
lea esi, [esi + edx + 8]
mov edx, dword [ebp - 0x28]
add edx, eax
add eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
imul eax, ebx, 0x1c
add eax, dword [ebp - 0x38]
add ebx, 1
mov dword [esp + 8], edx
mov edx, 2
mov dword [esp], eax
mov eax, esi
call fcn.646ca7a0
cmp dword [ebp - 0x20], ebx
ja 0x646cac10
mov eax, dword [ebp - 0x1c]
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x646cacc3
mov dword [ebp - 0x4c], edi
lea esi, [esi]
lea esi, [esi]
mov edx, dword [ebp - 0x3c]
lea ecx, [ebx + ebx*2]
mov edi, dword [ebp - 0x4c]
lea eax, [ebx*8]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp - 0x20]
mov edi, dword [edi]
add edx, ebx
add ebx, 1
lea edx, [edx + edx*4]
shl edx, 4
lea edi, [edi + edx + 8]
mov edx, dword [ebp - 0x24]
add edx, eax
add eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov edx, 0x17
add eax, esi
add esi, 0x1c
mov dword [esp], eax
mov eax, edi
call fcn.646ca7a0
cmp dword [ebp - 0x1c], ebx
ja 0x646cac70
xor ebx, ebx
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sub.nsi.dll_NsiFreeTable
mov eax, dword [ebp - 0x24]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call sub.nsi.dll_NsiFreeTable
mov eax, ebx
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
lea esp, [ebp - 0x10]
mov ebx, 0x57
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
movzx eax, bx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._u___p_n
mov dword [esp + 8], str.GetUnicastIpAddressTable
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call fcn.646c3090
jmp 0x646caac3
mov ebx, eax
jmp 0x646cacc5
mov ebx, 8
jmp 0x646cacc5