Function at 0x646c90e0
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 edx, dword [ecx + 0xc]
mov dword [ebp - 0x80], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x5c], edx
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x78], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x74], edx
test byte [0x646cf018], 8
jne 0x646c9690
mov ebx, dword [ebp - 0x74]
test ebx, ebx
je 0x646c96dc
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], 0x646d2610
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
mov dword [ebp - 0x50], eax
sub esp, 0x34
test eax, eax
je 0x646c91b8
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 - 0x7c], eax
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x646c9942
mov eax, dword [ebp - 0x30]
imul edx, eax, 0x178
add edx, ebx
mov dword [ebp - 0x58], edx
test eax, eax
je 0x646c9548
mov ebx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x68], ebx
lea ebx, [edx + 0x2c]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x64], edx
jmp 0x646c93f0
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 0x646c948d
test ecx, ecx
je 0x646c9262
movzx eax, byte [eax + 6]
mov byte [edx], al
test cl, 2
jne 0x646c98e0
mov ecx, dword [ebp - 0x54]
cmp ecx, 4
jae 0x646c94a9
test ecx, ecx
je 0x646c9281
mov eax, dword [ebp - 0x60]
and ecx, 2
mov byte [eax], 0
jne 0x646c9930
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 0x646c9530
mov eax, 0x202
sub eax, ecx
mov dword [ebp - 0x60], eax
lea eax, [edi + ecx]
mov dword [ebp - 0x70], eax
lea esi, [edx + 0x16]
cmp ecx, 4
jae 0x646c9518
test ecx, ecx
je 0x646c92dc
mov edi, dword [ebp - 0x54]
movzx eax, byte [edx + 0x16]
mov byte [edi], al
test cl, 2
jne 0x646c9918
mov esi, dword [ebp - 0x60]
cmp esi, 4
jae 0x646c94f8
test esi, esi
je 0x646c92fb
mov eax, dword [ebp - 0x70]
and esi, 2
mov byte [eax], 0
jne 0x646c9900
mov eax, dword [ebp - 0x54]
add dword [ebp - 0x58], 0x42c
mov dword [ebx - 4], eax
movzx ecx, word [edx + 0x218]
cmp ecx, 8
ja 0x646c94c8
mov dword [ebx + 8], ecx
lea esi, [edx + 0x21a]
cmp ecx, 4
jae 0x646c94e0
test ecx, ecx
je 0x646c9340
movzx eax, byte [edx + 0x21a]
mov byte [ebx], al
test cl, 2
jne 0x646c98f0
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 - 0x6c]
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]
inc dword [ebp - 0x4c]
mov edi, dword [ebp - 0x4c]
mov dword [ebx - 0xd0], eax
mov eax, dword [ebp - 0x30]
cmp eax, edi
jbe 0x646c9548
mov edi, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x68]
mov dword [ebx - 0x2c], 0x178
dec eax
imul esi, edi, 0x258
mov edx, dword [edx + esi]
mov dword [ebx - 0x28], edx
cmp eax, edi
jbe 0x646c9417
lea eax, [ebx + 0x14c]
mov dword [ebx - 0x24], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x64]
shl eax, 3
mov dword [esp + 4], edx
add ecx, eax
mov dword [ebp - 0x6c], eax
mov dword [esp], ecx
call sym.iphlpapi.dll_ConvertInterfaceLuidToGuid
mov edi, dword [ebp - 0x58]
mov edx, dword [ebp - 0x64]
sub esp, 8
mov dword [esp], edx
mov dword [esp + 8], 0x27
mov dword [esp + 4], edi
call sym._ConvertGuidToStringA_12.part.0
mov eax, dword [ebp - 0x34]
mov dword [ebx - 0x20], edi
lea edx, [edi + 0x28]
sub esp, 0xc
add esi, eax
mov dword [ebp - 0x68], eax
movzx ecx, word [esi + 4]
mov dword [ebp - 0x50], esi
cmp ecx, 0x201
jbe 0x646c9230
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 0x646c924f
mov edi, dword [esi + ecx - 4]
mov dword [edx + ecx - 4], edi
dec ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x54]
cmp ecx, 4
jb 0x646c926e
mov ecx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x60]
xor eax, eax
mov dword [edi + ecx - 4], 0
dec ecx
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x646c9281
xor ecx, ecx
mov dword [ebx + 8], 0
lea esi, [edx + 0x21a]
cmp ecx, 4
jb 0x646c932a
mov eax, dword [esi + ecx - 4]
mov edi, ebx
mov dword [ebx + ecx - 4], eax
dec ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x646c9340
mov ecx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x70]
xor eax, eax
mov dword [edi + ecx - 4], 0
dec ecx
shr ecx, 2
rep stosd dword es:[edi], eax
jmp 0x646c92fb
mov edi, dword [esi + ecx - 4]
mov eax, dword [ebp - 0x54]
mov dword [eax + ecx - 4], edi
dec ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x646c92dc
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], 0x202
xor ecx, ecx
mov dword [ebp - 0x70], eax
jmp 0x646c92ba
test byte [ebp - 0x78], 1
je 0x646c9888
test byte [ebp - 0x78], 0x90
je 0x646c9590
cmp dword [ebp - 0x80], 2
je 0x646c9840
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
mov edx, 0x17
call sym._gateway_and_prefix_addresses_alloc
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x646c985b
cmp dword [ebp - 0x80], 0x17
jne 0x646c9840
lea esi, [esi]
nop
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x7c]
call sym._dns_info_alloc
mov dword [ebp - 0x50], eax
mov ebx, 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 sym._NsiFreeTable_16
sub esp, 0x10
test ebx, ebx
jne 0x646c9680
lea edi, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov ebx, dword [ebp - 0x7c]
xor esi, esi
mov dword [ebp - 0x64], edi
jmp 0x646c95eb
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_strlen]
add eax, 2
and eax, 0xfffffffe
lea eax, [esi + eax + 0x178]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
mov esi, eax
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
lea edx, [esi + eax + 2]
mov eax, dword [ebp - 0x2c]
lea eax, [eax + edx*2]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebx + 0x28]
test edx, edx
je 0x646c9645
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_wcslen]
mov edx, dword [ebp - 0x2c]
lea eax, [edx + eax*2 + 2]
add eax, 7
mov ecx, edi
mov edx, sym._address_entry_size
and eax, 0xfffffff8
mov dword [ebp - 0x2c], eax
mov eax, ebx
call sym._address_lists_iterate
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x646c95e8
mov ebx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x2c]
test ebx, ebx
je 0x646c9674
mov ebx, dword [ebp - 0x74]
cmp dword [ebx], eax
jae 0x646c96f0
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x50], 0x6f
mov dword [edx], eax
mov eax, dword [ebp - 0x7c]
call sym._adapters_addresses_free
jmp 0x646c91a0
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x78]
mov ebx, dword [ebp - 0x5c]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x80]
mov dword [esp + 0x1c], ebx
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 sym._wine_dbg_log.constprop.0
mov ebx, dword [ebp - 0x74]
test ebx, ebx
jne 0x646c912f
mov dword [ebp - 0x50], 0x57
jmp 0x646c91a0
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x4c], eax
jmp 0x646c9714
mov dword [esi + 8], eax
mov edx, dword [ebx + 8]
mov dword [ebp - 0x4c], edx
test edx, edx
je 0x646c9680
mov dword [ebp - 0x5c], eax
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 sym._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 sym._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 sym._memcpy
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x646c97f5
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 sym._memcpy
mov eax, dword [ebp - 0x4c]
add ebx, 7
mov esi, dword [ebp - 0x5c]
mov edx, sym._address_entry_copy
and ebx, 0xfffffff8
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], ebx
mov ebx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x1c], 0xffffffff
call sym._address_lists_iterate
mov edx, dword [ebx + 8]
mov eax, dword [ebp - 0x24]
test edx, edx
jne 0x646c9700
jmp 0x646c9680
mov ecx, dword [ebp - 0x78]
mov edx, 2
mov eax, dword [ebp - 0x7c]
call sym._gateway_and_prefix_addresses_alloc
mov dword [ebp - 0x50], eax
test eax, eax
je 0x646c9590
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 sym._NsiFreeTable_16
sub esp, 0x10
jmp 0x646c9680
cmp dword [ebp - 0x80], 2
je 0x646c98c0
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
mov edx, 0x17
call sym._unicast_addresses_alloc
mov dword [ebp - 0x50], eax
test eax, eax
jne 0x646c985b
cmp dword [ebp - 0x80], 0x17
jne 0x646c98c0
mov eax, dword [ebp - 0x78]
test al, 0x90
je 0x646c9590
mov ecx, eax
mov edx, 0x17
jmp 0x646c9848
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebp - 0x7c]
mov edx, 2
call sym._unicast_addresses_alloc
mov dword [ebp - 0x50], eax
test eax, eax
je 0x646c9552
jmp 0x646c985b
movzx esi, word [esi + ecx - 2]
mov word [edx + ecx - 2], si
jmp 0x646c9262
movzx eax, word [esi + ecx - 2]
mov word [ebx + ecx - 2], ax
jmp 0x646c9340
mov eax, dword [ebp - 0x70]
mov esi, dword [ebp - 0x60]
xor edi, edi
mov word [eax + esi - 2], di
jmp 0x646c92fb
movzx esi, word [esi + ecx - 2]
mov eax, dword [ebp - 0x54]
mov word [eax + ecx - 2], si
jmp 0x646c92dc
mov eax, dword [ebp - 0x60]
mov esi, dword [ebp - 0x54]
xor ecx, ecx
mov word [eax + esi - 2], cx
jmp 0x646c9281
mov dword [ebp - 0x50], 8
jmp 0x646c985b