Function at 0x10005b30
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, 0xbc
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
test byte [0x1000f018], 8
jne 0x10005eb8
test esi, esi
je 0x10005eec
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], 0x10012690
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
sub esp, 0x34
mov edi, eax
test eax, eax
jne 0x10005e86
mov edx, dword [ebp - 0x5c]
test edx, edx
je 0x10005ea0
lea eax, [edx - 1]
mov ecx, dword [ebp - 0x48]
cmp eax, 0x13
jbe 0x10006472
mov ebx, edx
mov eax, ecx
pxor xmm2, xmm2
movdqu xmm4, xmmword [0x10012360]
movdqu xmm3, xmmword [0x10012350]
shr ebx, 2
imul ebx, ebx, 0x960
add ebx, ecx
movd xmm1, dword [eax + 0x6b8]
movd xmm5, dword [eax + 0x910]
add eax, 0x960
movd xmm0, dword [eax - 0x758]
movd xmm6, dword [eax - 0x500]
punpckldq xmm1, xmm5
punpckldq xmm0, xmm6
punpcklqdq xmm0, xmm1
pcmpeqd xmm0, xmm4
pandn xmm0, xmm3
paddd xmm2, xmm0
cmp eax, ebx
jne 0x10005c40
movdqu xmm0, xmm2
mov edi, edx
psrldq xmm0, 8
and edi, 0xfffffffc
paddd xmm2, xmm0
movdqu xmm0, xmm2
psrldq xmm0, 4
paddd xmm2, xmm0
movd ebx, xmm2
test dl, 3
je 0x10005cd2
imul eax, edi, 0x258
add eax, ecx
lea esi, [esi]
xor ecx, ecx
cmp dword [eax + 0x208], 0x18
setne cl
add edi, 1
add eax, 0x258
add ebx, ecx
cmp edi, edx
jb 0x10005cb8
test ebx, ebx
je 0x10005ea0
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], 0x100126f0
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
mov dword [ebp - 0x6c], 0
sub esp, 0x34
mov edi, eax
test eax, eax
jne 0x10005df0
mov eax, dword [ebp - 0x58]
lea ebx, [ebx + ebx*4]
mov edx, dword [ebp - 0x60]
shl ebx, 7
lea eax, [eax + eax*4]
lea eax, [ebx + eax*8]
test edx, edx
je 0x10005f08
cmp dword [esi], eax
jb 0x10005f08
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], 0x100126f0
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
sub esp, 0x34
mov edi, eax
test eax, eax
je 0x10005f1b
mov esi, dword [ebp - 0x6c]
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, edi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [ebp - 0x6c], 0
mov edi, 0xe8
jmp 0x10005df0
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], 0x1000f018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
jne 0x10005b8e
lea esp, [ebp - 0x10]
mov edi, 0x57
pop ecx
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov dword [esi], eax
mov edi, 0x6f
mov dword [ebp - 0x6c], 0
jmp 0x10005df0
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 0x10005fbd
lea eax, [ebp - 0x28]
xor edx, edx
mov dword [ebp - 0x68], ebx
xor esi, esi
mov dword [ebp - 0x64], eax
mov ebx, edx
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebx*4 + 0x1001212c]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x10006593
cmp ebx, 1
jne 0x1000652e
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x88], ebx
mov ebx, dword [ebp - 0x68]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test esi, esi
jne 0x100065d4
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x6c], 0
mov ecx, dword [ebp - 0x5c]
add ebx, dword [ebp - 0x60]
mov dword [ebp - 0x7c], ebx
test ecx, ecx
je 0x1000651c
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x8c], edi
jmp 0x10006000
add dword [ebp - 0x68], 1
mov eax, dword [ebp - 0x68]
cmp dword [ebp - 0x5c], eax
jbe 0x10006516
mov ebx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x48]
imul edi, ebx, 0x258
add eax, edi
cmp dword [eax + 0x208], 0x18
je 0x10005ff0
mov esi, dword [ebp - 0x60]
add eax, 0x218
lea edx, [esi + 0x280]
mov dword [esi + 4], 0
mov dword [esi], edx
mov dword [ebp - 0x84], 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, edi
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 edx, ebx, 0x444
add edx, dword [ebp - 0x4c]
mov byte [esi + eax + 0x10c], 0
movzx eax, word [edx + 0x218]
sub esp, 0x20
cmp eax, 8
ja 0x10006418
mov ecx, 8
mov dword [esi + 0x190], eax
sub ecx, eax
mov dword [ebp - 0x70], ecx
mov esi, dword [ebp - 0x60]
lea ebx, [edx + 0x21a]
add esi, 0x194
mov dword [ebp - 0x64], esi
cmp eax, 4
jae 0x100063c0
test eax, eax
je 0x10006103
movzx edx, byte [edx + 0x21a]
mov byte [esi], dl
test al, 2
jne 0x10006639
mov esi, dword [ebp - 0x70]
add eax, dword [ebp - 0x64]
cmp esi, 4
jae 0x10006433
test esi, esi
je 0x10006122
and esi, 2
mov byte [eax], 0
jne 0x1000664b
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x58]
add eax, edi
mov edi, dword [ebp - 0x60]
mov edx, dword [eax]
mov dword [edi + 0x19c], edx
mov eax, dword [eax + 0x208]
mov dword [edi + 0x1a4], 1
mov dword [edi + 0x1a0], eax
mov dword [edi + 0x1a8], 0
test ebx, ebx
je 0x10006538
mov eax, dword [ebp - 0x68]
xor ebx, ebx
xor esi, esi
lea edi, [eax*8]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [sym.imp.ntdll.dll_RtlIpv4AddressToStringA]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x60]
add eax, 0x1ac
mov dword [ebp - 0x80], eax
jmp 0x100061fd
mov edx, dword [ebp - 0x7c]
mov dword [esi], edx
mov esi, edx
add edx, 0x28
mov dword [ebp - 0x7c], edx
imul edx, ebx, 0x1c
add edx, dword [ebp - 0x40]
mov edx, dword [edx + 0x10]
cmp edx, 0x20
ja 0x10006240
test edx, edx
jne 0x10006250
mov dword [ebp - 0x28], 0
lea edx, [esi + 4]
add eax, 8
mov dword [esi], 0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x70]
call eax
mov edx, dword [ebp - 0x78]
lea eax, [esi + 0x14]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x70]
mov dword [esp], edx
call eax
mov dword [esi + 0x24], 0
sub esp, 8
add ebx, 1
cmp dword [ebp - 0x58], ebx
jbe 0x10006270
mov eax, ebx
mov edx, dword [ebp - 0x50]
shl eax, 4
mov dword [ebp - 0x74], eax
add eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
xor ecx, dword [edx + edi + 4]
mov dword [ebp - 0x64], ecx
mov ecx, dword [eax]
xor ecx, dword [edx + edi]
mov edx, ecx
mov ecx, dword [ebp - 0x64]
or ecx, edx
jne 0x100061f5
test esi, esi
jne 0x10006190
imul edx, ebx, 0x1c
add edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x80]
mov edx, dword [edx + 0x10]
cmp edx, 0x20
jbe 0x100061af
mov dword [ebp - 0x28], 0xffffffff
jmp 0x100061be
mov eax, dword [ebp - 0x78]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._ConvertLengthToIpv4Mask_8.part.0
mov eax, dword [ebp - 0x74]
add eax, dword [ebp - 0x44]
sub esp, 8
jmp 0x100061be
test esi, esi
je 0x10006546
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x28], 0xffffffff
mov dword [ebp - 0x64], eax
test eax, eax
je 0x100062d8
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x68]
xor edx, edx
mov edi, dword [eax + esi*8]
mov esi, dword [eax + esi*8 + 4]
mov eax, dword [ebp - 0x3c]
jmp 0x100062b3
add edx, 1
add eax, 0x30
cmp dword [ebp - 0x64], edx
je 0x100062d8
mov ebx, dword [eax + 0x1c]
mov ecx, dword [eax + 0x18]
xor ebx, esi
xor ecx, edi
or ebx, ecx
jne 0x100062a8
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x100062a8
cmp byte [eax + 8], 0
jne 0x100062a8
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x30], eax
lea esi, [esi]
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x70]
mov dword [esi + 0x1d4], 0
lea eax, [esi + 0x1d8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call edi
lea eax, [esi + 0x1e8]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call edi
mov edi, dword [ebp - 0x88]
xor eax, eax
mov dword [esi + 0x1f8], 0
sub esp, 8
mov byte [esi + 0x200], 0
test edi, edi
mov dword [esi + 0x1fc], 0
setne al
mov byte [esi + 0x210], 0
mov dword [esi + 0x220], 0
mov dword [esi + 0x224], eax
mov dword [esi + 0x228], 0
mov byte [esi + 0x22c], 0
mov byte [esi + 0x23c], 0
mov dword [esi + 0x24c], 0
mov dword [esi + 0x250], 0
mov byte [esi + 0x254], 0
mov byte [esi + 0x264], 0
mov dword [esi + 0x274], 0
jne 0x10006479
mov eax, dword [ebp - 0x60]
mov dword [eax + 0x278], 0
mov dword [eax + 0x27c], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x60], eax
jmp 0x10005ff0
mov edx, dword [edx + 0x21a]
mov esi, dword [ebp - 0x60]
mov dword [esi + 0x194], edx
add esi, 0x198
mov edx, dword [ebx + eax - 4]
mov ecx, dword [ebp - 0x64]
and esi, 0xfffffffc
mov dword [ecx + eax - 4], edx
sub ecx, esi
sub ebx, ecx
add ecx, eax
and ecx, 0xfffffffc
cmp ecx, 4
jb 0x10006103
mov dword [ebp - 0x74], eax
and ecx, 0xfffffffc
xor edx, edx
mov eax, dword [ebx + edx]
mov dword [esi + edx], eax
add edx, 4
cmp edx, ecx
jb 0x100063fd
mov eax, dword [ebp - 0x74]
jmp 0x10006103
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x70], 8
mov dword [eax + 0x190], 0
xor eax, eax
jmp 0x100060d3
mov dword [eax], 0
lea edx, [eax + 4]
mov esi, dword [ebp - 0x70]
and edx, 0xfffffffc
mov dword [eax + esi - 4], 0
sub eax, edx
add eax, esi
and eax, 0xfffffffc
cmp eax, 4
jb 0x10006122
and eax, 0xfffffffc
xor ecx, ecx
mov dword [edx + ecx], 0
add ecx, 4
cmp ecx, eax
jb 0x1000645f
jmp 0x10006122
xor ebx, ebx
jmp 0x10005ca9
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x70]
mov dword [ebp - 0x28], 0xffffffff
lea eax, [edi + 0x22c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
add eax, 4
mov dword [esp], eax
call esi
lea eax, [edi + 0x23c]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call esi
mov dword [edi + 0x24c], 0
sub esp, 8
cmp dword [ebp - 0x88], 1
jbe 0x1000639b
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x70]
mov dword [edi + 0x250], 0
lea eax, [edi + 0x254]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x6c]
add eax, 0x20
mov dword [esp], eax
call esi
lea eax, [edi + 0x264]
sub esp, 8
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x78]
mov dword [esp], eax
call esi
mov dword [edi + 0x274], 0
sub esp, 8
jmp 0x1000639b
mov edi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x60]
mov dword [eax - 0x280], 0
jmp 0x10005df0
mov ebx, 1
jmp 0x10005f4d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x78], eax
mov eax, dword [sym.imp.ntdll.dll_RtlIpv4AddressToStringA]
mov dword [ebp - 0x70], eax
mov edi, dword [ebp - 0x60]
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x28], 0
mov ebx, dword [ebp - 0x70]
mov dword [edi + 0x1ac], 0
lea eax, [edi + 0x1b0]
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
lea eax, [edi + 0x1c0]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call ebx
mov dword [edi + 0x1d0], 0
sub esp, 8
jmp 0x10006278
lea eax, [ebp + esi*4 - 0x30]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlIpv4StringToAddressA]
sub esp, 0x10
test eax, eax
jne 0x10005f94
mov eax, dword [ebp + esi*4 - 0x30]
sub eax, 1
cmp eax, 0xfffffffe
adc esi, 0
jmp 0x10005f94
imul edx, esi, 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 - 0x6c], eax
sub esp, 0xc
mov edx, eax
test eax, eax
je 0x10005fbd
mov eax, 2
mov word [edx], ax
mov eax, dword [ebp - 0x30]
mov dword [edx + 4], eax
cmp esi, 1
jbe 0x10005fce
mov eax, 2
mov dword [ebp - 0x88], esi
mov word [edx + 0x1c], ax
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x20], eax
jmp 0x10005fce
movzx edx, word [ebx + eax - 2]
mov esi, dword [ebp - 0x64]
mov word [esi + eax - 2], dx
jmp 0x10006103
mov esi, dword [ebp - 0x70]
xor edx, edx
mov word [eax + esi - 2], dx
jmp 0x10006122