Function at 0x646ca0f0
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, 0x78
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov edi, ebx
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 0x646ca388
test esi, esi
je 0x646ca378
test bx, 0xfffd
je 0x646ca169
cmp bx, 0x17
jne 0x646ca378
mov dword [ebp - 0x48], esi
xor ebx, ebx
mov edx, 2
xor eax, eax
test di, di
je 0x646ca183
cmp di, dx
jne 0x646ca22d
lea eax, [ebp - 0x20]
lea esi, [ebp + ebx - 0x38]
lea ecx, [eax + ebx]
lea eax, [ebp - 0x28]
add eax, ebx
mov dword [ebp - 0x40], eax
lea eax, [ebp + ebx - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x646d1f28]
mov dword [ebp - 0x3c], eax
mov eax, 0x646d2670
cmp dx, 2
je 0x646ca1c1
cmp dx, 0x17
mov eax, 0
mov edx, 0x646d2658
cmove eax, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp - 0x40]
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0xb
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
sub esp, 0x34
test eax, eax
je 0x646ca22d
mov dword [ebp + ebx - 0x20], 0
add ebx, 4
mov edx, 0x17
cmp ebx, 8
jne 0x646ca175
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x48]
mov dword [esp + 4], 0
imul eax, eax, 0x58
mov edx, dword fs:[0x18]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x646ca3bc
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea ebx, [ecx + edx]
mov dword [eax], ebx
test ecx, ecx
je 0x646ca2d6
xor ebx, ebx
jmp 0x646ca29a
mov eax, dword [esi]
mov edx, dword [ebp - 0x38]
lea ecx, [ebx + ebx*2]
lea ecx, [edx + ecx*8]
imul edx, ebx, 0x58
lea edi, [eax + edx + 8]
mov eax, ebx
mov edx, 2
shl eax, 4
add eax, dword [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, ebx
inc ebx
shl eax, 5
add eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, edi
call sym._ipnet_row2_fill
cmp dword [ebp - 0x20], ebx
ja 0x646ca298
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x646ca31c
xor ebx, ebx
lea esi, [esi]
mov edx, dword [ebp - 0x20]
mov edi, dword [esi]
mov eax, ebx
mov ecx, dword [ebp - 0x34]
shl eax, 5
add edx, ebx
imul edx, edx, 0x58
add ecx, eax
add eax, dword [ebp - 0x2c]
mov dword [esp], eax
lea edi, [edi + edx + 8]
mov edx, ebx
inc ebx
shl edx, 4
add edx, dword [ebp - 0x24]
mov eax, edi
mov dword [esp + 4], edx
mov edx, 0x17
call sym._ipnet_row2_fill
cmp dword [ebp - 0x1c], ebx
ja 0x646ca2e0
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._NsiFreeTable_16
mov eax, dword [ebp - 0x24]
sub esp, 0x10
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sym._NsiFreeTable_16
sub esp, 0x10
mov eax, dword [ebp - 0x3c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebp - 0x3c], 0x57
jmp 0x646ca364
movzx eax, bx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._u___p_n
mov dword [esp + 8], str.GetIpNetTable2
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x646ca150
mov dword [ebp - 0x3c], 8
jmp 0x646ca31c