Function at 0x646ca4c0
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 0x646ca760
test esi, esi
je 0x646ca750
test bx, 0xfffd
je 0x646ca539
cmp bx, 0x17
jne 0x646ca750
mov dword [ebp - 0x48], esi
xor ebx, ebx
mov edx, 2
xor eax, eax
test di, di
je 0x646ca553
cmp di, dx
jne 0x646ca5fd
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 + 0x646d1ee8]
mov dword [ebp - 0x3c], eax
mov eax, 0x646d2630
cmp dx, 2
je 0x646ca591
cmp dx, 0x17
mov eax, 0
mov edx, 0x646d2618
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 sub.nsi.dll_NsiAllocateAndGetTable
sub esp, 0x34
test eax, eax
je 0x646ca5fd
mov dword [ebp + ebx - 0x20], 0
add ebx, 4
mov edx, 0x17
cmp ebx, 8
jne 0x646ca545
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 0x646ca794
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea ebx, [ecx + edx]
mov dword [eax], ebx
test ecx, ecx
je 0x646ca6a8
xor ebx, ebx
jmp 0x646ca66a
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
add ebx, 1
shl eax, 5
add eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, edi
call fcn.646ca330
cmp dword [ebp - 0x20], ebx
ja 0x646ca668
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x646ca6ee
xor ebx, ebx
nop
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
add ebx, 1
shl edx, 4
add edx, dword [ebp - 0x24]
mov eax, edi
mov dword [esp + 4], edx
mov edx, 0x17
call fcn.646ca330
cmp dword [ebp - 0x1c], ebx
ja 0x646ca6b0
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 sub.nsi.dll_NsiFreeTable
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 sub.nsi.dll_NsiFreeTable
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 0x646ca736
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 fcn.646c3090
jmp 0x646ca520
mov dword [ebp - 0x3c], 8
jmp 0x646ca6ee