Function at 0x7d719bb0
Capabilities:
Create process on windows
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1cc
mov dword [ebp - 0x34], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0
push 0x100
lea eax, [ebp - 0x1cc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.7d7196f0
add esp, 0xc
call sym.kernelbase.dll_GetCurrentThreadId
push eax
lea edx, [ebp - 0x1cc]
push edx
push str.wine:__s__thread__04x___starting_debugger..._n
call fcn.7d71f960
add esp, 0xc
mov dword [ebp - 0x78], 0x18
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
push str.RegistryMachineSoftwareMicrosoftWindows_NTCurrentVersionAeDebug
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
lea edx, [ebp - 0x78]
push edx
push 0x20019
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntext.dll_NtOpenKey]
test eax, eax
jne 0x7d719e18
mov dword [ebp - 4], 0
push 0x7d734d34
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
lea edx, [ebp - 4]
push edx
push 0
push 0
push 2
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntext.dll_NtQueryValueKey]
cmp eax, 0xc0000023
jne 0x7d719d80
mov edx, dword [ebp - 4]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 2
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ntext.dll_NtQueryValueKey]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 8]
add edx, 0xc
push edx
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntext.dll_RtlUnicodeToMultiByteSize]
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0xc
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ntext.dll_RtlUnicodeToMultiByteN]
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 2
jne 0x7d719d6f
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sym.kernelbase.dll_ExpandEnvironmentStringsA
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call sym.kernelbase.dll_ExpandEnvironmentStringsA
mov edx, dword [ebp - 0xc]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
push str.Auto
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.ntext.dll_RtlInitUnicodeString]
lea eax, [ebp - 4]
push eax
push 0xfe
lea ecx, [ebp - 0x1cc]
push ecx
push 2
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntext.dll_NtQueryValueKey]
test eax, eax
jne 0x7d719e0e
lea ecx, [ebp - 0x1cc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 4
jne 0x7d719ddc
push 4
mov eax, dword [ebp - 8]
add eax, 0xc
push eax
lea ecx, [ebp - 0x34]
push ecx
call sub.ntext.dll_memcpy
add esp, 0xc
jmp 0x7d719e0e
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 1
jne 0x7d719e0e
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
shr edx, 1
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx + edx*2], ax
mov edx, dword [ebp - 0x44]
push edx
call sub.ntext.dll__wtoi
add esp, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ntext.dll_NtClose]
cmp dword [ebp - 0xc], 0
je 0x7d719e75
mov ecx, dword [ebp - 0xc]
push ecx
call sub.ntext.dll_strlen
add esp, 4
add eax, 0x28
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push eax
call sym.kernelbase.dll_GetCurrentProcessId
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.ntext.dll__snprintf
add esp, 0x14
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
jmp 0x7d719ea4
push 0x50
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapAlloc
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0xc]
push edx
call sym.kernelbase.dll_GetCurrentProcessId
push eax
push str.winedbg___auto__ld__ld
push 0x50
mov eax, dword [ebp - 0x14]
push eax
call sub.ntext.dll__snprintf
add esp, 0x14
cmp dword [ebp - 0x34], 0
jne 0x7d719f99
push str.user32.dll
call sym.kernelbase.dll_GetModuleHandleA
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x40], 0
je 0x7d719ed9
push str.MessageBoxA
mov ecx, dword [ebp - 0x40]
push ecx
call sym.kernelbase.dll_GetProcAddress
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x7d719f99
push 0xe5
lea edx, [ebp - 0x1cc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.7d7196f0
add esp, 0xc
push str.._nDo_you_wish_to_debug_it_
lea ecx, [ebp - 0x1cc]
push ecx
call sub.ntext.dll_strcat
add esp, 8
push 0x14
push str.Exception_raised
lea edx, [ebp - 0x1cc]
push edx
push 0
call dword [ebp - 0x2c]
cmp eax, 7
jne 0x7d719f99
mov eax, dword [0x7d734d30]
movzx ecx, byte [eax]
and ecx, 8
je 0x7d719f94
mov edx, 1
imul edx, edx, 0
movsx eax, byte [edx + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_thread.c]
cmp eax, 0x2e
jne 0x7d719f51
mov dword [ebp - 0x54], 0x12
jmp 0x7d719f58
mov dword [ebp - 0x54], 0x21
push 0x7d7242c0
push 0xe3
push str.start_debugger
mov ecx, dword [ebp - 0x54]
add ecx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_thread.c
push ecx
mov edx, dword [0x7d734d30]
push edx
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d719f94
push str.Killing_process_n
call fcn.7d71f960
add esp, 4
jmp 0x7d71a219
call sym.kernelbase.dll_GetEnvironmentStrings
mov dword [ebp - 0x28], eax
movzx eax, byte [0x7d7561fc]
and eax, 8
je 0x7d719fc6
push 0x7d7561fc
call fcn.7d71f130
add esp, 4
movzx ecx, al
and ecx, 8
jne 0x7d71a066
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
jmp 0x7d719fe4
mov eax, dword [ebp - 0x10]
push eax
call sub.ntext.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
movsx ecx, byte [eax]
test ecx, ecx
je 0x7d71a066
push 0xa
push str.WINEDEBUG
mov edx, dword [ebp - 0x10]
push edx
call sub.ntext.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x7d71a061
mov eax, dword [ebp - 0x10]
push eax
call sub.ntext.dll_strlen
add esp, 4
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx]
test eax, eax
je 0x7d71a042
mov ecx, dword [ebp - 0x18]
push ecx
call sub.ntext.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x18], eax
jmp 0x7d71a020
mov ecx, dword [ebp - 0x18]
add ecx, 1
sub ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x10]
add eax, 0xa
push eax
call sub.ntext.dll_memmove
add esp, 0xc
jmp 0x7d71a066
jmp 0x7d719fce
mov ecx, dword [0x7d734d30]
movzx edx, byte [ecx]
and edx, 8
je 0x7d71a0e0
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_thread.c]
cmp ecx, 0x2e
jne 0x7d71a091
mov dword [ebp - 0x4c], 0x12
jmp 0x7d71a098
mov dword [ebp - 0x4c], 0x21
push 0x7d7242c0
push 0xfa
push str.start_debugger
mov edx, dword [ebp - 0x4c]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_thread.c
push edx
mov eax, dword [0x7d734d30]
push eax
push 3
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d71a0e0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.7d707900
add esp, 4
push eax
push str.Starting_debugger__s_n
call fcn.7d71f960
add esp, 8
push 0x44
push 0
lea edx, [ebp - 0xcc]
push edx
call sub.ntext.dll_memset
add esp, 0xc
mov dword [ebp - 0xcc], 0x44
mov dword [ebp - 0xa0], 1
mov eax, 1
mov word [ebp - 0x9c], ax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0xcc]
push edx
push 0
mov eax, dword [ebp - 0x28]
push eax
push 0
push 1
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
push 0
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x28]
push edx
call sym.kernelbase.dll_FreeEnvironmentStringsA
cmp dword [ebp - 0x20], 0
je 0x7d71a199
mov eax, dword [ebp - 0x84]
push eax
call sym.kernelbase.dll_CloseHandle
mov ecx, 4
imul ecx, ecx, 0
mov edx, dword [ebp + 0xc]
mov dword [ebp + ecx - 0x60], edx
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 0x88]
mov dword [ebp + eax - 0x60], ecx
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x60]
push edx
push 2
call sym.kernelbase.dll_WaitForMultipleObjects
mov eax, dword [ebp - 0x88]
push eax
call sym.kernelbase.dll_CloseHandle
jmp 0x7d71a219
mov ecx, dword [0x7d734d30]
movzx edx, byte [ecx]
and edx, 2
je 0x7d71a219
mov eax, 1
imul eax, eax, 0
movsx ecx, byte [eax + str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_thread.c]
cmp ecx, 0x2e
jne 0x7d71a1c4
mov dword [ebp - 0x50], 0x12
jmp 0x7d71a1cb
mov dword [ebp - 0x50], 0x21
push 0x7d7242c0
push 0x10c
push str.start_debugger
mov edx, dword [ebp - 0x50]
add edx, str.D:DevelopOne_CoreOne_Core_Apiwrappers_basekernelbase_wrapper_thread.c
push edx
mov eax, dword [0x7d734d30]
push eax
push 1
call fcn.7d71f8f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x7d71a219
call sub.kernel32.dll_GetLastError
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.7d707900
add esp, 4
push eax
push str.Couldnt_start_debugger___s____d__nRead_the_Wine_Developers_Guide_on_how_to_set_up_winedbg_or_another_debugger_n
call fcn.7d71f960
add esp, 0xc
mov edx, dword [ebp - 0x14]
push edx
push 0
call sym.kernelbase.dll_GetProcessHeap
push eax
call sub.kernel32.dll_HeapFree
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret