Function at 0x646ca680
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 0x646ca960
test edi, edi
je 0x646ca948
test bx, 0xfffd
je 0x646ca70c
cmp bx, 0x17
jne 0x646ca948
mov dword [ebp - 0x5c], edi
xor esi, esi
mov edx, 2
movzx eax, word [ebp - 0x4c]
test ax, ax
je 0x646ca728
cmp ax, dx
jne 0x646ca7cf
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 + 0x646d1d38]
mov dword [ebp - 0x50], eax
mov eax, 0x646d2670
cmp dx, 2
je 0x646ca76b
cmp dx, 0x17
mov eax, 0
mov edx, 0x646d2658
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 sym._NsiAllocateAndGetTable_52
sub esp, 0x34
test eax, eax
jne 0x646ca994
add esi, 4
mov edx, 0x17
cmp esi, 8
jne 0x646ca716
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 0x646ca99b
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax]
mov dword [esi], ecx
test edx, edx
je 0x646ca889
xor ebx, ebx
jmp 0x646ca842
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]
inc ebx
mov dword [esp + 8], edx
mov edx, 2
mov dword [esp], eax
mov eax, esi
call sym._unicast_row_fill
cmp dword [ebp - 0x20], ebx
ja 0x646ca840
mov eax, dword [ebp - 0x1c]
xor esi, esi
xor ebx, ebx
test eax, eax
je 0x646ca8e9
mov dword [ebp - 0x4c], edi
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
inc ebx
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 sym._unicast_row_fill
cmp dword [ebp - 0x1c], ebx
ja 0x646ca898
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 sym._NsiFreeTable_16
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 sym._NsiFreeTable_16
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 sym._wine_dbg_log.constprop.0
jmp 0x646ca6f3
mov ebx, eax
jmp 0x646ca8eb
mov ebx, 8
jmp 0x646ca8eb