Function at 0x646c92f0
Capabilities:
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
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, 0xb8
mov eax, dword [ecx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x5c], esi
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x70], esi
test byte [0x646cf018], 8
jne 0x646c9930
mov edi, dword [ebp - 0x70]
test edi, edi
je 0x646c997c
lea eax, [ebp - 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x34]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x38]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x40]
mov dword [esp + 0x28], 0x258
mov dword [esp + 0x20], 0xd8
mov dword [esp + 0x18], 0x444
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x646d25d0
mov dword [esp], 1
call sub.nsi.dll_NsiAllocateAndGetTable
mov dword [ebp - 0x50], eax
sub esp, 0x34
test eax, eax
je 0x646c93c8
mov eax, dword [ebp - 0x50]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x14
imul edx, dword [ebp - 0x30], 0x5a4
mov dword [esp + 4], 8
mov eax, dword fs:[0x18]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x78], eax
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x646c9c78
mov eax, dword [ebp - 0x30]
imul edx, eax, 0x178
add edx, esi
mov dword [ebp - 0x58], edx
test eax, eax
je 0x646c9673
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x64], esi
mov esi, dword [ebp - 0x78]
lea ebx, [esi + 0x2c]
lea esi, [esi]
mov edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x64]
mov dword [ebx - 0x2c], 0x178
sub eax, 1
imul esi, edi, 0x258
mov edx, dword [edx + esi]
mov dword [ebx - 0x28], edx
cmp eax, edi
jbe 0x646c9459
lea eax, [ebx + 0x14c]
mov dword [ebx - 0x24], eax
mov eax, dword [ebp - 0x4c]
lea edi, [ebp - 0x2c]
mov dword [esp + 4], edi
shl eax, 3
add ecx, eax
mov dword [ebp - 0x68], eax
mov dword [esp], ecx
call sym.iphlpapi.dll_ConvertInterfaceLuidToGuid
mov edi, dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
sub esp, 8
mov dword [esp + 8], 0x27
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.646c2fb0
mov eax, dword [ebp - 0x34]
mov dword [ebx - 0x20], edi
lea edx, [edi + 0x28]
sub esp, 0xc
add esi, eax
mov dword [ebp - 0x64], eax
movzx ecx, word [esi + 4]
mov dword [ebp - 0x50], esi
cmp ecx, 0x201
ja 0x646c98b8
mov eax, 0x202
sub eax, ecx
mov dword [ebp - 0x54], eax
lea eax, [edx + ecx]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
lea esi, [eax + 6]
cmp ecx, 4
jae 0x646c98d3
test ecx, ecx
je 0x646c94e6
movzx eax, byte [eax + 6]
mov byte [edx], al
test cl, 2
jne 0x646c9c24
mov edi, dword [ebp - 0x54]
cmp edi, 4
jae 0x646c9902
test edi, edi
je 0x646c9505
mov eax, dword [ebp - 0x60]
and edi, 2
mov byte [eax], 0
jne 0x646c9c66
mov dword [ebx - 8], edx
mov eax, dword [ebp - 0x58]
imul edx, dword [ebp - 0x4c], 0x444
add edx, dword [ebp - 0x3c]
movzx ecx, word [edx + 0x14]
lea edi, [eax + 0x22a]
mov dword [ebp - 0x54], edi
cmp ecx, 0x201
ja 0x646c98a0
mov eax, 0x202
sub eax, ecx
mov dword [ebp - 0x60], eax
lea eax, [edi + ecx]
mov dword [ebp - 0x6c], eax
lea esi, [edx + 0x16]
cmp ecx, 4
jae 0x646c9870
test ecx, ecx
je 0x646c9560
mov edi, dword [ebp - 0x54]
movzx eax, byte [edx + 0x16]
mov byte [edi], al
test cl, 2
jne 0x646c9c54
mov esi, dword [ebp - 0x60]
cmp esi, 4
jae 0x646c9840
test esi, esi
je 0x646c957f
mov eax, dword [ebp - 0x6c]
and esi, 2
mov byte [eax], 0
jne 0x646c9c42
mov eax, dword [ebp - 0x54]
xor edi, edi
add dword [ebp - 0x58], 0x42c
lea esi, [edx + 0x21a]
mov dword [ebx - 4], eax
movzx eax, word [edx + 0x218]
cmp eax, 9
cmovae eax, edi
mov dword [ebx + 8], eax
cmp eax, 4
jae 0x646c97f0
test eax, eax
je 0x646c95c2
movzx ecx, byte [edx + 0x21a]
mov byte [ebx], cl
test al, 2
jne 0x646c9c33
imul eax, dword [ebp - 0x4c], 0xd8
add eax, dword [ebp - 0x38]
add ebx, 0x178
mov ecx, dword [eax + 0x10]
mov esi, dword [ebp - 0x50]
mov dword [ebx - 0x168], ecx
mov ecx, dword [esi + 0x208]
mov dword [ebx - 0x164], ecx
mov ecx, dword [eax]
mov dword [ebx - 0x160], ecx
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov ecx, dword [ebp - 0x40]
mov dword [ebx - 0x114], esi
mov dword [ebx - 0x110], edi
mov esi, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
mov eax, dword [ebp - 0x68]
mov dword [ebx - 0x10c], esi
mov dword [ebx - 0x108], edi
mov esi, dword [ecx + eax]
mov edi, dword [ecx + eax + 4]
mov dword [ebx - 0xf4], esi
mov esi, dword [ebp - 0x50]
mov dword [ebx - 0xf0], edi
mov eax, dword [edx]
mov dword [ebx - 0xe0], eax
mov eax, dword [edx + 4]
mov dword [ebx - 0xdc], eax
mov eax, dword [edx + 8]
mov dword [ebx - 0xd8], eax
mov eax, dword [edx + 0xc]
mov dword [ebx - 0xd4], eax
mov eax, dword [esi + 0x214]
add dword [ebp - 0x4c], 1
mov edi, dword [ebp - 0x4c]
mov dword [ebx - 0xd0], eax
mov eax, dword [ebp - 0x30]
cmp eax, edi
ja 0x646c9430
test byte [ebp - 0x74], 1
je 0x646c9bc6
test byte [ebp - 0x74], 0x90
jne 0x646c9988
mov ecx, dword [ebp - 0x74]
mov edx, dword [ebp - 0x7c]
xor ebx, ebx
mov eax, dword [ebp - 0x78]
call fcn.646c4420
mov dword [ebp - 0x50], eax
mov edi, eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sub.nsi.dll_NsiFreeTable
mov esi, dword [ebp - 0x78]
sub esp, 0x10
test edi, edi
jne 0x646c97e0
lea esi, [esi]
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
add eax, 2
and eax, 0xfffffffe
lea edi, [ebx + eax + 0x178]
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov ebx, eax
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [ebx + eax + 2]
lea ebx, [edi + eax*2]
mov eax, dword [esi + 0x28]
test eax, eax
je 0x646c971e
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea ebx, [ebx + eax*2 + 2]
mov eax, dword [esi + 0x10]
add ebx, 7
and ebx, 0xfffffff8
test eax, eax
je 0x646c9747
lea esi, [esi]
nop
mov edx, eax
mov eax, dword [eax + 8]
mov ecx, dword [edx]
mov edx, dword [edx + 0x10]
lea edx, [ecx + edx + 7]
add ebx, edx
and ebx, 0xfffffff8
test eax, eax
jne 0x646c9730
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x646c9767
nop
mov edx, eax
mov eax, dword [eax + 8]
mov ecx, dword [edx]
mov edx, dword [edx + 0x10]
lea edx, [ecx + edx + 7]
add ebx, edx
and ebx, 0xfffffff8
test eax, eax
jne 0x646c9750
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x646c978f
lea esi, [esi]
mov edx, eax
mov eax, dword [eax + 8]
mov ecx, dword [edx]
mov edx, dword [edx + 0x10]
lea edx, [ecx + edx + 7]
add ebx, edx
and ebx, 0xfffffff8
test eax, eax
jne 0x646c9778
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x646c97b7
lea esi, [esi]
mov edx, eax
mov eax, dword [eax + 8]
mov ecx, dword [edx]
mov edx, dword [edx + 0x10]
lea edx, [ecx + edx + 7]
add ebx, edx
and ebx, 0xfffffff8
test eax, eax
jne 0x646c97a0
mov esi, dword [esi + 8]
test esi, esi
jne 0x646c96d0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x646c97d4
mov eax, dword [ebp - 0x70]
cmp dword [eax], ebx
jae 0x646c99f2
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x50], 0x6f
mov dword [eax], ebx
mov eax, dword [ebp - 0x78]
call fcn.646c4980
jmp 0x646c93b0
mov ecx, dword [edx + 0x21a]
lea edi, [ebx + 4]
and edi, 0xfffffffc
mov dword [ebx], ecx
mov ecx, dword [esi + eax - 4]
mov dword [ebx + eax - 4], ecx
mov ecx, ebx
sub ecx, edi
add eax, ecx
sub esi, ecx
and eax, 0xfffffffc
cmp eax, 4
jb 0x646c95c2
mov dword [ebp - 0x54], edx
and eax, 0xfffffffc
xor ecx, ecx
mov edx, dword [esi + ecx]
mov dword [edi + ecx], edx
add ecx, 4
cmp ecx, eax
jb 0x646c9822
mov edx, dword [ebp - 0x54]
jmp 0x646c95c2
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0
lea edi, [eax + 4]
mov esi, dword [ebp - 0x60]
and edi, 0xfffffffc
mov dword [eax + esi - 4], 0
sub eax, edi
mov ecx, eax
xor eax, eax
add ecx, esi
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x646c957f
mov eax, dword [ebp - 0x54]
mov edi, dword [edx + 0x16]
mov dword [eax], edi
mov edi, dword [esi + ecx - 4]
mov dword [eax + ecx - 4], edi
lea edi, [eax + 4]
and edi, 0xfffffffc
sub eax, edi
add ecx, eax
sub esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x646c9560
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], 0x202
xor ecx, ecx
mov dword [ebp - 0x6c], eax
jmp 0x646c953e
mov eax, dword [ebp - 0x50]
xor ecx, ecx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x54], 0x202
lea esi, [eax + 6]
cmp ecx, 4
jb 0x646c94d3
mov eax, dword [ebp - 0x50]
mov edi, dword [eax + 6]
mov eax, edx
mov dword [edx], edi
mov edi, dword [esi + ecx - 4]
mov dword [edx + ecx - 4], edi
lea edi, [edx + 4]
and edi, 0xfffffffc
sub eax, edi
add ecx, eax
sub esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x54]
cmp edi, 4
jb 0x646c94f2
mov eax, dword [ebp - 0x60]
mov dword [eax], 0
lea edi, [eax + 4]
mov esi, dword [ebp - 0x54]
and edi, 0xfffffffc
mov dword [eax + esi - 4], 0
sub eax, edi
mov ecx, eax
xor eax, eax
add ecx, esi
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x646c9505
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x74]
mov edi, dword [ebp - 0x5c]
mov dword [esp + 0x20], esi
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x7c]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__ld___08lx___p___p___p__n
mov dword [esp + 8], str.GetAdaptersAddresses
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call fcn.646c3090
mov edi, dword [ebp - 0x70]
test edi, edi
jne 0x646c933f
mov dword [ebp - 0x50], 0x57
jmp 0x646c93b0
cmp dword [ebp - 0x7c], 2
je 0x646c99af
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov edx, 0x17
call fcn.646c3dd0
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x646c99ca
cmp dword [ebp - 0x7c], 0x17
je 0x646c9687
mov ecx, dword [ebp - 0x74]
mov edx, 2
mov eax, dword [ebp - 0x78]
call fcn.646c3dd0
mov dword [ebp - 0x50], eax
test eax, eax
je 0x646c9687
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sub.nsi.dll_NsiFreeTable
sub esp, 0x10
jmp 0x646c97e0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x4c], eax
lea esi, [esi]
nop
mov eax, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x4c]
mov ecx, 0x5e
mov edi, eax
lea ebx, [eax + 0x178]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x4c]
mov dword [eax + 0xc], ebx
mov edi, dword [esi + 0xc]
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 4], edi
mov esi, eax
lea eax, [eax + 1]
mov dword [esp], ebx
mov dword [esp + 8], eax
add esi, 2
and esi, 0xfffffffe
add ebx, esi
call sub.ucrtbase.dll_memcpy
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x24], ebx
mov eax, dword [edi + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [edi + 0x24]
lea esi, [eax + eax + 2]
mov eax, dword [ebp - 0x5c]
add ebx, esi
mov eax, dword [eax + 0x24]
mov dword [esp + 4], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x20], ebx
mov eax, dword [edi + 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [edi + 0x20]
lea esi, [eax + eax + 2]
mov eax, dword [ebp - 0x5c]
add ebx, esi
mov eax, dword [eax + 0x20]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x646c9ae1
mov eax, dword [ebp - 0x5c]
mov dword [eax + 0x28], ebx
mov eax, dword [edi + 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [edi + 0x28]
lea esi, [eax + eax + 2]
mov eax, dword [ebp - 0x5c]
add ebx, esi
mov eax, dword [eax + 0x28]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.ucrtbase.dll_memcpy
mov eax, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x5c]
add ebx, 7
mov dword [ebp - 0x20], 0
and ebx, 0xfffffff8
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], ebx
mov ebx, dword [eax + 0x10]
test ebx, ebx
je 0x646c9b26
lea esi, [esi]
nop
mov eax, ebx
mov ebx, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov edx, 0x10
call fcn.646c25e0
test ebx, ebx
jne 0x646c9b10
mov eax, dword [ebp - 0x4c]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x646c9b46
mov eax, ebx
mov ebx, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov edx, 0x1c
call fcn.646c25e0
test ebx, ebx
jne 0x646c9b30
mov eax, dword [ebp - 0x4c]
mov ebx, dword [eax + 0xa4]
test ebx, ebx
je 0x646c9b6e
lea esi, [esi]
nop
mov eax, ebx
mov ebx, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov edx, 0xa4
call fcn.646c25e0
test ebx, ebx
jne 0x646c9b58
mov eax, dword [ebp - 0x4c]
mov ebx, dword [eax + 0x8c]
test ebx, ebx
je 0x646c9b96
lea esi, [esi]
nop
mov eax, ebx
mov ebx, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov edx, 0x8c
call fcn.646c25e0
test ebx, ebx
jne 0x646c9b80
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x24]
mov edx, dword [esi + 8]
test edx, edx
je 0x646c97e0
mov esi, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x5c]
mov dword [edi + 8], eax
mov esi, dword [esi + 8]
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x646c97e0
mov dword [ebp - 0x5c], eax
jmp 0x646c9a00
cmp dword [ebp - 0x7c], 2
je 0x646c9c04
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov edx, 0x17
call fcn.646c3a80
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x646c99ca
cmp dword [ebp - 0x7c], 0x17
jne 0x646c9c04
mov eax, dword [ebp - 0x74]
test al, 0x90
je 0x646c9687
mov ecx, eax
mov edx, 0x17
jmp 0x646c99b7
mov ecx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
mov edx, 2
call fcn.646c3a80
mov dword [ebp - 0x50], eax
test eax, eax
je 0x646c967d
jmp 0x646c99ca
movzx esi, word [esi + ecx - 2]
mov word [edx + ecx - 2], si
jmp 0x646c94e6
movzx ecx, word [esi + eax - 2]
mov word [ebx + eax - 2], cx
jmp 0x646c95c2
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x60]
xor ecx, ecx
mov word [eax + edi - 2], cx
jmp 0x646c957f
movzx esi, word [esi + ecx - 2]
mov eax, dword [ebp - 0x54]
mov word [eax + ecx - 2], si
jmp 0x646c9560
mov eax, dword [ebp - 0x60]
mov edi, dword [ebp - 0x54]
xor esi, esi
mov word [eax + edi - 2], si
jmp 0x646c9505
mov dword [ebp - 0x50], 8
jmp 0x646c99ca