Function at 0x646c6390
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 eax, dword [ecx + 4]
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x50], eax
mov esi, ebx
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 0x646c67b8
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x646c67a8
test bx, 0xfffd
je 0x646c6420
cmp bx, 0x17
jne 0x646c67a8
xor ebx, ebx
mov edx, 2
xor eax, eax
test si, si
je 0x646c6437
cmp si, dx
jne 0x646c64f0
lea eax, [ebp - 0x20]
lea edi, [eax + ebx]
lea eax, [ebp - 0x28]
lea ecx, [eax + ebx]
mov eax, dword [ebx + 0x646d1f7c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp + ebx - 0x30]
mov dword [ebp - 0x58], eax
lea eax, [ebp + ebx - 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebx + 0x646d1f74]
mov dword [ebp - 0x54], eax
lea eax, [ebp + ebx - 0x40]
mov dword [ebp - 0x60], eax
mov eax, 0x646d2670
cmp dx, 2
je 0x646c6486
cmp dx, 0x17
mov eax, 0
mov edx, 0x646d2658
cmove eax, edx
mov dword [esp + 0x2c], edi
mov edi, dword [ebp - 0x4c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], edi
mov edi, dword [ebp - 0x58]
mov dword [esp + 0x28], 8
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x5c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x54]
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x10], edi
mov edi, dword [ebp - 0x60]
mov dword [esp + 8], 0x10
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
sub esp, 0x34
test eax, eax
je 0x646c64f0
mov dword [ebp + ebx - 0x20], 0
add ebx, 4
mov edx, 0x17
cmp ebx, 8
jne 0x646c6429
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
mov dword [esp + 4], 0
imul eax, eax, 0x68
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 edi, dword [ebp - 0x50]
sub esp, 0xc
mov dword [edi], eax
test eax, eax
je 0x646c67ec
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea ebx, [ecx + edx]
mov dword [eax], ebx
test ecx, ecx
je 0x646c663e
xor esi, esi
mov dword [ebp - 0x4c], esi
jmp 0x646c6565
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
mov ebx, dword [ebp - 0x4c]
mov esi, dword [ebp - 0x30]
imul edx, ebx, 0x68
mov dword [ebp - 0x58], esi
lea ecx, [ebx + ebx*2]
mov esi, ebx
shl esi, 5
shl ecx, 4
add ecx, dword [ebp - 0x40]
lea eax, [eax + edx + 8]
mov edx, dword [ebp - 0x28]
lea edi, [edx + ebx*8]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x54], edi
lea edi, [ebx + ebx*4]
mov ebx, dword [ecx + 0x18]
add edx, esi
mov esi, dword [ecx + 0x1c]
mov dword [eax + 0xc], 2
mov dword [eax], ebx
mov dword [eax + 4], esi
mov ebx, dword [ecx + 4]
mov dword [eax + 0x14], 0
mov esi, dword [ebp - 0x58]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x18], 0
movzx ebx, byte [ecx + 8]
mov dword [eax + 0x2c], 2
mov byte [eax + 0x28], bl
mov ecx, dword [ecx + 0x28]
mov dword [eax + 0x34], 0
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], 0
mov ecx, dword [esi + edi*4]
mov edi, dword [ebp - 0x54]
mov dword [eax + 0x60], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 8], ecx
mov ecx, dword [edx]
mov byte [eax + 0x48], cl
mov ecx, dword [edx + 4]
mov dword [eax + 0x4c], ecx
mov ecx, dword [edx + 8]
inc dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x4c]
mov dword [eax + 0x50], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0x54], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x58], ecx
movzx ecx, byte [edx + 0x14]
mov byte [eax + 0x5c], cl
movzx ecx, byte [edx + 0x15]
mov byte [eax + 0x5d], cl
movzx ecx, byte [edx + 0x16]
mov byte [eax + 0x5e], cl
movzx edx, byte [edx + 0x17]
mov byte [eax + 0x5f], dl
mov edx, dword [edi]
mov dword [eax + 0x64], edx
cmp dword [ebp - 0x20], ebx
ja 0x646c6560
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x646c674d
xor edi, edi
lea esi, [esi]
nop
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x2c]
lea ecx, [edi*8]
mov ebx, dword [ebp - 0x24]
mov edx, dword [eax]
mov eax, dword [ebp - 0x20]
add ebx, ecx
add ecx, edi
add eax, edi
mov dword [ebp - 0x4c], ebx
imul eax, eax, 0x68
lea eax, [edx + eax + 8]
mov edx, edi
inc edi
shl edx, 5
add esi, edx
add edx, dword [ebp - 0x34]
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x3c]
lea ecx, [esi + ecx*8]
mov ebx, dword [ecx + 0x28]
mov esi, dword [ecx + 0x2c]
mov dword [eax + 0xc], 0x17
mov dword [eax + 0x10], 0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov ebx, dword [ecx + 4]
mov dword [eax + 0x14], ebx
mov esi, dword [ecx + 8]
mov dword [eax + 0x18], esi
mov ebx, dword [ecx + 0xc]
mov dword [eax + 0x1c], ebx
mov esi, dword [ecx + 0x10]
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], esi
movzx ebx, byte [ecx + 0x14]
mov dword [eax + 0x2c], 0x17
mov byte [eax + 0x28], bl
mov dword [eax + 0x30], 0
mov ebx, dword [ecx + 0x38]
mov dword [eax + 0x34], ebx
mov esi, dword [ecx + 0x3c]
mov dword [eax + 0x38], esi
mov ebx, dword [ecx + 0x40]
mov esi, dword [ebp - 0x4c]
mov dword [eax + 0x3c], ebx
mov ebx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x44]
mov dword [eax + 0x44], 0
mov dword [eax + 0x40], ecx
mov ecx, dword [ebx]
mov dword [eax + 0x60], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 8], ecx
mov ecx, dword [edx]
mov byte [eax + 0x48], cl
mov ecx, dword [edx + 4]
mov dword [eax + 0x4c], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 0x50], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0x54], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x58], ecx
movzx ecx, byte [edx + 0x14]
mov byte [eax + 0x5c], cl
movzx ecx, byte [edx + 0x15]
mov byte [eax + 0x5d], cl
movzx ecx, byte [edx + 0x16]
mov byte [eax + 0x5e], cl
movzx edx, byte [edx + 0x17]
mov byte [eax + 0x5f], dl
mov edx, dword [esi]
mov dword [eax + 0x64], edx
cmp dword [ebp - 0x1c], edi
ja 0x646c6650
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
sub esp, 0x10
mov eax, dword [ebp - 0x5c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebp - 0x5c], 0x57
jmp 0x646c6793
mov dword [esp + 0x14], eax
movzx eax, bx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str._u___p_n
mov dword [esp + 8], str.GetIpForwardTable2
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x646c6404
mov dword [ebp - 0x5c], 8
jmp 0x646c674d