Function at 0x646cb4a0
Capabilities:
Access peb ldr_data
Check if process is running under wine
Get process heap flags
Get process heap force flags
Query or enumerate registry value

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, 0xc8
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
test byte [0x646cf018], 8
jne 0x646cba98
test esi, esi
je 0x646cbacc
lea eax, [ebp - 0x5c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x48]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x50]
mov dword [esp + 0x28], 0x258
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
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
sub esp, 0x34
mov ebx, eax
test eax, eax
jne 0x646cba82
mov ecx, dword [ebp - 0x5c]
test ecx, ecx
je 0x646cb9e0
imul ecx, ecx, 0x258
mov eax, dword [ebp - 0x48]
add ecx, eax
lea esi, [esi]
xor edx, edx
cmp dword [eax + 0x208], 0x18
setne dl
add eax, 0x258
add ebx, edx
cmp ecx, eax
jne 0x646cb590
test ebx, ebx
je 0x646cb9e0
lea eax, [ebp - 0x58]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x40]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x44]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0x1c
mov dword [esp + 0x10], 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xa
mov dword [esp + 4], 0x646d2670
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
sub esp, 0x34
test eax, eax
jne 0x646cbae8
mov eax, dword [ebp - 0x58]
lea ebx, [ebx + ebx*4]
mov edx, dword [ebp - 0x70]
mov edi, ebx
shl edi, 7
lea eax, [eax + eax*4]
lea eax, [edi + eax*8]
test edx, edx
je 0x646cbb00
cmp dword [esi], eax
jb 0x646cbb00
lea eax, [ebp - 0x54]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x646d2670
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
mov dword [ebp - 0x78], 0
sub esp, 0x34
mov ebx, eax
test eax, eax
jne 0x646cb9ec
lea eax, [ebp - 0x38]
mov dword [esp + 4], str.SoftwareWineNetwork
mov dword [esp + 8], eax
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyA]
sub esp, 0xc
test eax, eax
jne 0x646cb76e
mov dword [ebp - 0x6c], 2
mov eax, str.WinsServer
lea esi, [ebp - 0x28]
mov dword [ebp - 0x88], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x646cbdc6
cmp dword [ebp - 0x6c], 1
mov eax, str.BackupWinsServer
jne 0x646cbd64
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 0x88]
sub esp, 4
test eax, eax
jne 0x646cbe16
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov esi, dword [ebp - 0x5c]
add edi, dword [ebp - 0x70]
mov dword [ebp - 0x84], edi
test esi, esi
je 0x646cbd52
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x94], ebx
jmp 0x646cb7b7
inc dword [ebp - 0x74]
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x5c], eax
jbe 0x646cbd4c
mov edi, dword [ebp - 0x74]
mov eax, dword [ebp - 0x48]
imul ebx, edi, 0x258
add eax, ebx
cmp dword [eax + 0x208], 0x18
je 0x646cb7a8
mov esi, dword [ebp - 0x70]
add eax, 0x218
lea edx, [esi + 0x280]
mov dword [esi + 4], 0
mov dword [esi], edx
mov dword [ebp - 0x90], edx
lea edx, [esi + 8]
mov dword [esp + 4], edx
mov dword [esp + 8], 0x104
mov dword [esp], eax
call sym._ConvertGuidToStringA_12.part.0
mov edx, dword [ebp - 0x48]
lea eax, [esi + 0x10c]
sub esp, 0xc
add edx, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
add edx, 6
mov dword [esp + 0x14], 0x83
mov dword [esp + 0x10], eax
movzx eax, word [edx - 2]
mov dword [esp + 8], edx
shr ax, 1
mov dword [esp + 4], 0
movzx eax, ax
mov dword [esp], 0
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
imul ecx, edi, 0x444
add ecx, dword [ebp - 0x4c]
mov byte [esi + eax + 0x10c], 0
movzx eax, word [ecx + 0x218]
sub esp, 0x20
cmp eax, 8
ja 0x646cbc90
mov dword [esi + 0x190], eax
mov edx, 8
sub edx, eax
mov esi, dword [ebp - 0x70]
lea edi, [esi + 0x194]
lea esi, [ecx + 0x21a]
mov dword [ebp - 0x6c], edi
cmp eax, 4
jae 0x646cbc70
test eax, eax
je 0x646cb8b7
movzx ecx, byte [ecx + 0x21a]
mov byte [edi], cl
test al, 2
jne 0x646cbe7d
add eax, dword [ebp - 0x6c]
test edx, edx
je 0x646cb8c9
xor ecx, ecx
mov byte [eax + ecx], 0
inc ecx
cmp ecx, edx
jb 0x646cb8c0
mov eax, dword [ebp - 0x48]
mov esi, dword [ebp - 0x70]
add eax, ebx
mov ebx, dword [ebp - 0x58]
mov edx, dword [eax]
mov dword [esi + 0x19c], edx
mov eax, dword [eax + 0x208]
mov dword [esi + 0x1a4], 1
mov dword [esi + 0x1a0], eax
mov dword [esi + 0x1a8], 0
test ebx, ebx
je 0x646cbd70
mov eax, dword [ebp - 0x74]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x6c], esi
shl eax, 3
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x70]
add eax, 0x1ac
mov dword [ebp - 0x8c], eax
jmp 0x646cb9a5
mov eax, dword [ebp - 0x84]
mov dword [edi], eax
mov edi, eax
add eax, 0x28
mov dword [ebp - 0x84], eax
mov esi, dword [ebp - 0x80]
imul eax, dword [ebp - 0x6c], 0x1c
add eax, dword [ebp - 0x40]
mov dword [esp + 4], esi
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call sym.iphlpapi.dll_ConvertLengthToIpv4Mask
add ebx, dword [ebp - 0x44]
lea eax, [edi + 4]
mov dword [edi], 0
sub esp, 8
add ebx, 8
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._RtlIpv4AddressToStringA_8
lea eax, [edi + 0x14]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._RtlIpv4AddressToStringA_8
mov dword [edi + 0x24], 0
sub esp, 8
inc dword [ebp - 0x6c]
mov eax, dword [ebp - 0x6c]
cmp dword [ebp - 0x58], eax
jbe 0x646cbb18
mov ebx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x50]
shl ebx, 4
mov eax, dword [edx + ebx]
mov edx, dword [edx + ebx + 4]
mov esi, eax
mov eax, dword [ebp - 0x7c]
xor edx, dword [ecx + eax + 4]
xor esi, dword [ecx + eax]
or edx, esi
jne 0x646cb996
test edi, edi
jne 0x646cb930
mov edi, dword [ebp - 0x8c]
jmp 0x646cb943
mov dword [ebp - 0x78], 0
mov ebx, 0xe8
mov esi, dword [ebp - 0x78]
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov dword [esp + 8], esi
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [ebp - 0x3c]
sub esp, 0xc
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call sym._NsiFreeTable_16
mov eax, dword [ebp - 0x40]
sub esp, 0x10
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 0xc], 0
mov dword [esp], eax
mov dword [esp + 8], 0
call sym._NsiFreeTable_16
mov eax, dword [ebp - 0x48]
sub esp, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym._NsiFreeTable_16
sub esp, 0x10
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.info__p__size__p_n
mov dword [esp + 8], str.GetAdaptersInfo
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
jne 0x646cb4fe
lea esp, [ebp - 0x10]
mov ebx, 0x57
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebp - 0x78], 0
mov ebx, eax
jmp 0x646cb9ec
mov dword [esi], eax
mov ebx, 0x6f
mov dword [ebp - 0x78], 0
jmp 0x646cb9ec
test edi, edi
je 0x646cbd76
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x646cbb80
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x74]
xor edx, edx
mov edi, dword [eax + esi*8]
mov esi, dword [eax + esi*8 + 4]
mov eax, dword [ebp - 0x3c]
jmp 0x646cbb59
inc edx
add eax, 0x30
cmp edx, dword [ebp - 0x6c]
je 0x646cbb80
mov ebx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
xor ebx, esi
xor ecx, edi
or ebx, ecx
jne 0x646cbb50
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x646cbb50
cmp byte [eax + 8], 0
jne 0x646cbb50
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x30], eax
lea esi, [esi]
mov edi, dword [ebp - 0x70]
mov dword [edi + 0x1d4], 0
lea eax, [edi + 0x1d8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call sym._RtlIpv4AddressToStringA_8
lea eax, [edi + 0x1e8]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sym._RtlIpv4AddressToStringA_8
mov edx, dword [ebp - 0x88]
xor eax, eax
mov dword [edi + 0x1f8], 0
sub esp, 8
mov byte [edi + 0x200], 0
test edx, edx
mov dword [edi + 0x1fc], 0
setne al
mov byte [edi + 0x210], 0
mov dword [edi + 0x220], 0
mov dword [edi + 0x224], eax
mov dword [edi + 0x228], 0
mov byte [edi + 0x22c], 0
mov byte [edi + 0x23c], 0
mov dword [edi + 0x24c], 0
mov dword [edi + 0x250], 0
mov byte [edi + 0x254], 0
mov byte [edi + 0x264], 0
mov dword [edi + 0x274], 0
jne 0x646cbca9
mov eax, dword [ebp - 0x70]
mov dword [eax + 0x278], 0
mov dword [eax + 0x27c], 0
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x70], eax
jmp 0x646cb7a8
mov ecx, dword [esi + eax - 4]
mov edi, dword [ebp - 0x6c]
mov dword [edi + eax - 4], ecx
lea ecx, [eax - 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
jmp 0x646cb8b7
mov eax, dword [ebp - 0x70]
mov edx, 8
mov dword [eax + 0x190], 0
xor eax, eax
jmp 0x646cb887
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x28], 0xffffffff
lea eax, [esi + 0x22c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
add eax, 4
mov dword [esp], eax
call sym._RtlIpv4AddressToStringA_8
lea eax, [esi + 0x23c]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sym._RtlIpv4AddressToStringA_8
mov dword [esi + 0x24c], 0
sub esp, 8
cmp dword [ebp - 0x88], 1
je 0x646cbc42
mov esi, dword [ebp - 0x70]
mov dword [esi + 0x250], 0
lea eax, [esi + 0x254]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
add eax, 0x20
mov dword [esp], eax
call sym._RtlIpv4AddressToStringA_8
lea eax, [esi + 0x264]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x80]
mov dword [esp], eax
call sym._RtlIpv4AddressToStringA_8
mov dword [esi + 0x274], 0
sub esp, 8
jmp 0x646cbc42
mov ebx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x70]
mov dword [eax - 0x280], 0
jmp 0x646cb9ec
mov dword [ebp - 0x6c], 1
jmp 0x646cb705
lea eax, [ebp - 0x28]
mov dword [ebp - 0x80], eax
mov esi, dword [ebp - 0x70]
mov edi, dword [ebp - 0x80]
mov dword [ebp - 0x28], 0
mov dword [esi + 0x1ac], 0
lea eax, [esi + 0x1b0]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._RtlIpv4AddressToStringA_8
lea eax, [esi + 0x1c0]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._RtlIpv4AddressToStringA_8
mov dword [esi + 0x1d0], 0
sub esp, 8
jmp 0x646cbb20
mov edx, dword [ebp - 0x88]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
lea eax, [ebp + edx*4 - 0x30]
mov dword [esp], esi
mov dword [esp + 0xc], eax
call sym._RtlIpv4StringToAddressA_16
sub esp, 0x10
test eax, eax
jne 0x646cb742
mov edx, dword [ebp - 0x88]
mov eax, dword [ebp + edx*4 - 0x30]
mov dword [ebp - 0x74], eax
dec eax
cmp eax, 0xfffffffe
adc edx, 0
mov dword [ebp - 0x88], edx
jmp 0x646cb742
imul edx, dword [ebp - 0x88], 0x1c
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 0x646cb76e
mov eax, 2
cmp dword [ebp - 0x88], 1
mov word [esi], ax
mov eax, dword [ebp - 0x30]
mov dword [esi + 4], eax
je 0x646cb77f
mov eax, 2
mov word [esi + 0x1c], ax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x20], eax
jmp 0x646cb77f
movzx ecx, word [esi + eax - 2]
mov esi, dword [ebp - 0x6c]
mov word [esi + eax - 2], cx
jmp 0x646cb8b7