Function at 0x100056ae
Capabilities:
Check if process is running under wine
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
lea ecx, [ebp - 0x50]
call fcn.1000629b
lea ecx, [ebp - 0x50]
call fcn.10006b3c
mov eax, dword [0x1003997c]
mov ebx, 0x100387a8
push ebx
push eax
call fcn.100124b4
pop ecx
test eax, eax
pop ecx
je 0x100057dd
lea eax, [ebp - 0x18]
push eax
call fcn.1001d3e8
mov eax, dword [0x10034f94]
push dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 0x1003354c
push eax
call fcn.1001d2f1
push 1
mov esi, str.SOFTWAREWinExpand_s2uzg
push dword [0x1003997c]
mov edi, SysReAllocString
push 0x1003360c
push esi
push edi
call fcn.1000e95e
add esp, 0x20
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x10039980
call fcn.1001daff
lea eax, [ebp - 0x14]
push eax
call section..text
pop ecx
pop ecx
mov ecx, eax
call fcn.100059e4
push eax
push str.pmid
push esi
push edi
call fcn.1000e95e
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.1001dd8a
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push 0x10038934
call fcn.1001daff
lea eax, [ebp - 0x14]
push eax
call section..text
pop ecx
pop ecx
mov ecx, eax
call fcn.100059e4
push eax
push str.cmid
push esi
push edi
call fcn.1000e95e
add esp, 0x14
lea ecx, [ebp - 0x14]
call fcn.1001dd8a
push 1
push ebx
push str.installpath
push esi
push edi
call fcn.1000e95e
push 1
push dword [ebp - 0x10]
push str.installtime
push esi
push edi
call fcn.1000e95e
push 4
push 0x100335e0
push str.MAINCNT
push esi
push edi
call fcn.1000e95e
add esp, 0x3c
lea ecx, [ebp - 0x10]
call fcn.1001dd8a
jmp 0x100057fd
push 4
push 0x100335e0
mov esi, str.SOFTWAREWinExpand_s2uzg
push str.MAINCNT
mov edi, SysReAllocString
push esi
push edi
call fcn.1000e95e
add esp, 0x14
lea ecx, [ebp - 0x34]
call fcn.1001d4c8
and dword [ebp - 0xc], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
lea ecx, [ebp - 0x50]
call fcn.10006974
test eax, eax
mov dword [ebp - 0xc], eax
jl 0x100059a4
mov ecx, dword [ebp - 0x4c]
lea eax, [eax + eax*2]
shl eax, 3
mov dword [ebp - 0x18], eax
push esi
mov eax, dword [eax + ecx]
push eax
call fcn.100124b4
pop ecx
test eax, eax
pop ecx
je 0x100059a4
and dword [ebp - 4], 0
push 0xf003f
push esi
push edi
lea ecx, [ebp - 4]
call fcn.10006118
test eax, eax
jne 0x10005981
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], eax
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
push str.MAINCNT
mov dword [ebp - 0x20], eax
push dword [ebp - 4]
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 1
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push 4
push eax
push 4
push 0
push str.MAINCNT
push dword [ebp - 4]
call ebx
mov eax, dword [0x10034f94]
push dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push str.MAIN_R_d
push eax
call fcn.1001d2f1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov eax, dword [ecx + eax]
mov ecx, dword [ebp - 8]
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x20]
push 1
push 0
push dword [ebp - 0x1c]
push dword [ebp - 4]
call ebx
push dword [ebp - 0x10]
lea eax, [ebp - 8]
push 0x100335c0
push eax
call fcn.1001d2f1
mov eax, dword [0x10034f94]
push 0x100387a8
mov dword [ebp - 0x14], eax
mov eax, dword [0x1003997c]
push eax
call fcn.100124b4
add esp, 0x14
test eax, eax
je 0x1000593a
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
add eax, ecx
push dword [eax + 0x14]
push dword [eax + 8]
lea eax, [ebp - 0x14]
push 0x10033540
push eax
call fcn.1001d2f1
add esp, 0x10
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x20]
push 1
push 0
push dword [ebp - 0x1c]
push dword [ebp - 4]
call ebx
cmp dword [ebp - 4], 0
je 0x10005971
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.1001dd8a
lea ecx, [ebp - 8]
call fcn.1001dd8a
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x18]
add ecx, eax
push ecx
lea ecx, [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.1001d6d0
cmp dword [ebp - 4], 0
je 0x100059a4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 0xffffffff
je 0x100059b2
inc dword [ebp - 0xc]
jmp 0x1000580f
lea eax, [ebp - 0x34]
push eax
call fcn.10002c0b
pop ecx
push 0
push 1
push 0x100388b0
call dword [sym.imp.ATL.DLL_AtlModuleRegisterServer]
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.1001d4fb
lea ecx, [ebp - 0x50]
call fcn.10006845
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret