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

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
mov edi, 0x4ad260
push esi
push ebx
mov ebx, 0x4ad310
push ecx
sub esp, 0x58
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x2c], eax
call dbg.__main
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
sub esp, 4
mov dword [0x4ad310], eax
mov dword [esp], dbg.top_filter
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x24], 4
sub esp, 4
mov dword [ebp - 0x1c], 4
mov dword [0x4ad260], 0
mov dword [0x4ad264], 0x441c47
mov dword [0x4ad268], 0
mov dword [0x4ad26c], 0xffffff09
mov dword [0x4ad270], 0
mov dword [0x4ad274], 0x441c5e
mov dword [0x4ad278], 0
mov dword [0x4ad27c], 0xffffff09
mov dword [0x4ad280], 0
mov dword [0x4ad284], 0x441c75
mov dword [0x4ad288], 0
mov dword [0x4ad28c], 0xffffff09
mov dword [0x4ad290], 0
mov dword [0x4ad294], 0x441c83
mov dword [0x4ad298], 0
mov dword [0x4ad29c], 0xffffff09
mov dword [0x4ad2a0], 0
mov dword [0x4ad2a4], 0x441c96
mov dword [0x4ad2a8], 0
mov dword [0x4ad2ac], 0xffffff09
mov dword [0x4ad2b0], 0
mov dword [0x4ad2b4], 0x441ca5
mov dword [0x4ad2b8], 0
mov dword [0x4ad2bc], 0xffffff09
mov dword [0x4ad2c0], 0
mov dword [0x4ad2c4], 0x441cb8
mov dword [0x4ad2c8], 0x4ad5f0
mov dword [0x4ad2cc], 0xffffff09
mov dword [0x4ad2d0], 0
mov dword [0x4ad2d4], 0x441cc1
mov dword [0x4ad2d8], 0x4ad5ec
mov dword [0x4ad2dc], 0xffffff09
mov dword [0x4ad2e0], 0
mov dword [0x4ad2e4], 0x441ccb
mov dword [0x4ad2e8], 0
mov dword [0x4ad2ec], 0xffffff09
mov dword [0x4ad2f0], 0
mov dword [0x4ad2f4], 0x441cdc
mov dword [0x4ad2f8], 0
mov dword [0x4ad2fc], 0xffffff09
mov dword [0x4ad300], 1
mov dword [0x4ad304], 0x441cef
mov dword [0x4ad308], 0
mov dword [0x4ad30c], 0xffffff09
mov dword [esp + 8], eax
mov dword [esp + 4], str.SoftwareWineWineDbg
mov dword [esp], 0x80000001
call dword [sym.imp.advapi32.dll_RegCreateKeyA]
mov dword [ebp - 0x38], eax
sub esp, 0xc
test eax, eax
je 0x439aef
jmp 0x439d9e
add edi, 0x10
cmp ebx, edi
je 0x439b40
mov eax, dword [edi + 8]
test eax, eax
jne 0x439ae8
lea eax, [ebp - 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x439b32
mov eax, dword [ebp - 0x20]
mov dword [edi], eax
mov dword [edi + 8], edi
add edi, 0x10
cmp ebx, edi
jne 0x439aef
lea esi, [esi]
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 4]
sub esp, 4
mov dword [ebp - 0x30], eax
sub ecx, 1
mov dword [ebp - 0x34], ecx
je 0x439c95
mov ebx, dword [esi + 4]
mov eax, dword [sym.imp.ucrtbase.dll_strcmp]
mov dword [esp + 4], str.__help
mov dword [esp], ebx
mov dword [ebp - 0x2c], eax
call eax
mov ecx, dword [ebp - 0x34]
test eax, eax
je 0x439e95
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.__gdb
mov dword [esp], ebx
call eax
mov ecx, dword [ebp - 0x34]
test eax, eax
je 0x439e08
mov dword [ebp - 0x34], ecx
call dbg.dbg_init_console
call sym._SymGetOptions_0
and eax, 0xfffedfe9
or eax, 0x12014
mov dword [esp], eax
call sym._SymSetOptions_4
push eax
mov dword [esp + 4], 1
mov dword [esp], 0x3ea
call sym._SymSetExtendedOption_8
push edx
push edx
mov dword [esp + 4], str.__auto
mov eax, dword [esi + 4]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov ecx, dword [ebp - 0x34]
test eax, eax
je 0x439ddc
mov dword [esp + 4], str.__minidump
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov ecx, dword [ebp - 0x34]
test eax, eax
je 0x439e68
test ecx, ecx
jle 0x439f2d
mov dword [ebp - 0x3c], 0
mov ebx, ecx
add esi, 0xc
mov dword [ebp - 0x34], 0xffffffff
mov edi, dword [esi - 8]
lea eax, [esi - 8]
mov ecx, ebx
mov dword [ebp - 0x30], eax
cmp byte [edi], 0x2d
jne 0x439ed4
mov dword [esp + 4], str.__command
mov eax, dword [ebp - 0x2c]
mov dword [esp], edi
call eax
test eax, eax
jne 0x439d00
cmp ebx, 1
je 0x439d00
mov dword [esp + 4], 0
mov eax, dword [esi - 4]
mov dword [esp], eax
call dbg.parser_generate_command_file
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x439db7
sub ebx, 2
add esi, 8
test ebx, ebx
jne 0x439c35
jmp 0x439cd6
call dbg.dbg_init_console
call sym._SymGetOptions_0
and eax, 0xfffedfe9
or eax, 0x12014
mov dword [esp], eax
call sym._SymSetOptions_4
push ecx
mov dword [esp + 4], 1
mov dword [esp], 0x3ea
call sym._SymSetExtendedOption_8
mov dword [ebp - 0x3c], 0
push ebx
mov dword [ebp - 0x34], 0xffffffff
push ebx
call sym._restart_if_wow64
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dbg.dbg_start_interactive
mov eax, dword [ebp - 0x38]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 4], str.__file
mov eax, dword [ebp - 0x2c]
mov dword [esp], edi
call eax
test eax, eax
jne 0x439ead
cmp ebx, 1
je 0x439ead
mov eax, dword [esi - 4]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [ebp - 0x3c], eax
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80010000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
sub esp, 0x1c
cmp eax, 0xffffffff
jne 0x439c89
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 4]
mov dword [esp], str.Couldnt_open_file__s___lu__n
mov dword [esp + 4], eax
call dbg.dbg_printf
mov dword [ebp - 0x38], 1
jmp 0x439ced
test byte [0x43a85c], 2
jne 0x439e3f
mov dword [ebp - 0x38], 0xffffffff
jmp 0x439ced
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp], str.Couldnt_open_temp_file___lu__n
mov dword [esp + 4], eax
call dbg.dbg_printf
mov dword [ebp - 0x38], 1
jmp 0x439ced
mov eax, dword [ebp - 0x30]
mov dword [esp], ecx
mov dword [ebp - 0x34], ecx
mov dword [esp + 4], eax
call dbg.dbg_active_auto
cmp eax, 1
je 0x439e2e
cmp eax, 2
je 0x439dab
test eax, eax
mov ecx, dword [ebp - 0x34]
jne 0x439bf9
jmp 0x439ced
mov dword [ebp - 0x2c], ecx
call sym._restart_if_wow64
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ecx
call dbg.gdb_main
mov dword [ebp - 0x38], eax
add eax, 1
jne 0x439ced
mov dword [esp], str.Usage:_n_twinedbg_______gdb______prog_name_____prog_args______num____file.mdmp_____help___n
call dbg.dbg_printf
jmp 0x439ced
mov dword [esp + 0xc], str.Cannot_create_WineDbg_key_in_registry_n
mov dword [esp + 8], str.dbg_load_internal_vars
mov dword [esp + 4], 0x43a85c
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_10
jmp 0x439dab
mov eax, dword [ebp - 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.dbg_active_minidump
cmp eax, 1
je 0x439e2e
cmp eax, 2
je 0x439dab
test eax, eax
mov ecx, dword [ebp - 0x34]
jne 0x439c1a
jmp 0x439ced
mov dword [esp], str.Usage:_n___winedbg__cmdline________launch_process__cmdline___as_if_you_were_starting_n___________________________it_with_wine__and_run_WineDbg_on_it_n___winedbg__num____________attach_to_running_process_of_wpid__num__and_run_n___________________________WineDbg_on_it_n___winedbg___gdb__cmdline__launch_process__cmdline___as_if_you_were_starting_n___________________________wine__and_run_gdb__proxied__on_it_n___winedbg___gdb__num______attach_to_running_process_of_wpid__num__and_run_n___________________________gdb__proxied__on_it_n___winedbg__file.mdmp______reload_the_minidump__file.mdmp__into_memory_and_run_n___________________________WineDbg_on_it_n___winedbg___help__________prints_advanced_options_n
call dbg.dbg_printf
mov dword [ebp - 0x38], 0
jmp 0x439ced
mov dword [esp + 4], 0x44207f
mov eax, dword [ebp - 0x2c]
mov dword [esp], edi
call eax
test eax, eax
jne 0x439e2e
mov ecx, ebx
add dword [ebp - 0x30], 4
sub ecx, 1
je 0x439cd6
mov eax, dword [ebp - 0x30]
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
mov dword [esp + 4], eax
call dbg.dbg_active_attach
mov ecx, dword [ebp - 0x2c]
cmp eax, 1
je 0x439efc
cmp eax, 2
je 0x439dab
jmp 0x439cd6
mov eax, dword [ebp - 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.minidump_reload
mov ecx, dword [ebp - 0x2c]
cmp eax, 1
jne 0x439eee
mov eax, dword [ebp - 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dbg.dbg_active_launch
cmp eax, 1
je 0x439e2e
jmp 0x439eee
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x34], 0xffffffff
jmp 0x439ed4