Function at 0x4108c0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x908
movups xmmword [rsp + 0x8f0], xmm6
mov rbx, qword [sym.imp.kernel32.dll_WaitForDebugEvent]
lea rax, [rsp + 0x6e0]
lea r8, [rsp + 0x7d0]
mov r15d, edx
mov dword [rsp + 0x950], ecx
movq xmm0, rax
mov ecx, 0x20
mov rax, qword [0x0043bac0]
mov rdi, r8
punpcklqdq xmm0, xmm0
lea rdx, [0x0043b020]
rol r15w, 8
lea rbp, [rsp + 0x690]
mov qword [rsp + 0x6d0], rax
mov rax, qword [0x0043bac8]
movq xmm4, rdx
lea rsi, [rsp + 0x6f0]
movups xmmword [rsp + 0x6e0], xmm0
pxor xmm0, xmm0
mov edx, 0xffffffff
mov qword [rsp + 0x7c8], rax
xor eax, eax
rep stosq qword [rdi], rax
mov rcx, rsi
lea rax, str.xterm
mov qword [rsp + 0x690], 0xffffffffffffffff
movq xmm6, rax
mov qword [rsp + 0x698], 0
mov qword [rsp + 0x6a0], 0
punpcklqdq xmm6, xmm4
mov qword [rsp + 0x6b8], 0
mov qword [rsp + 0x6c0], 0
mov qword [rsp + 0x6c8], 0
mov dword [rdi], 0
mov dword [rsp + 0x6d8], 0xffffffff
mov qword [rsp + 0x7a8], 0
mov qword [rsp + 0x7c0], 0
mov qword [rsp + 0x8d8], 0
mov qword [rsp + 0x8e0], 0
mov qword [rsp + 0x8e8], 0
mov qword [rsp + 0x68], rbp
mov word [rsp + 0x48], r15w
movups xmmword [rsp + 0x7b0], xmm0
call rbx
test eax, eax
je 0x410c6a
nop word [rax + rax]
cmp dword [rsp + 0x6f0], 3
jne 0x410c30
cmp qword [rsp + 0x7a8], 0
je 0x410e30
mov r8d, 0x9e8
lea rdx, str..._programs_winedbg_gdbproxy.c
lea rcx, str.gdbctx__process__NULL__gdbctx__de.dwProcessId__dbg_curr_pid
call qword [sym.imp.ucrtbase.dll__assert]
lea rdx, [rsp + 0xd0]
mov ecx, 0x202
mov dword [rsp + 0x88], 1
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x98], 0
mov dword [rsp + 0x8c], 0x10
call qword [0x00452100]
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [0x004520f0]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x410e50
mov r8d, 4
mov edx, 0xffff
mov rcx, rax
mov dword [rsp + 0x20], 4
mov rdi, qword [0x004520e8]
lea r9, [rsp + 0x88]
lea r13, [rsp + 0x90]
call rdi
movzx eax, word [rsp + 0x48]
mov r8d, 2
mov rdx, r13
mov word [rsp + 0x90], r8w
mov rcx, r15
mov r8d, 0x10
mov dword [rsp + 0x94], 0
mov word [rsp + 0x92], ax
call qword [0x004520b0]
cmp eax, 0xffffffff
je 0x410e28
mov edx, 1
mov rcx, r15
call qword [0x004520c8]
cmp eax, 0xffffffff
je 0x410e28
lea r14, [rsp + 0x8c]
mov rdx, r13
mov rcx, r15
mov r8, r14
call qword [0x004520c0]
cmp eax, 0xffffffff
je 0x410e28
xor edx, edx
mov rcx, rbp
call sym.handle_debug_event
test byte [rsp + 0x950], 1
je 0x411777
movzx r12d, word [rsp + 0x92]
mov ecx, 2
call qword [sym.imp.ucrtbase.dll___acrt_iob_func]
lea rdx, str.target_remote_localhost:_d_n
rol r12w, 8
mov rcx, rax
movzx r12d, r12w
mov r8d, r12d
call sym.fprintf
lea r11, [rsp + 0x480]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x488], r15
mov dword [rsp + 0x480], 1
mov rdx, r11
mov qword [rsp + 0x20], 0
call qword [0x004520d8]
test eax, eax
jg 0x410df2
mov r12, r15
test byte [0x0042e220], 2
jne 0x411968
nop dword [rax]
mov rcx, r12
call qword [0x004520b8]
nop
movups xmm6, xmmword [rsp + 0x8f0]
xor eax, eax
add rsp, 0x908
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
mov rcx, rbp
call sym.handle_debug_event
test eax, eax
je 0x410c6a
mov edx, dword [rsp + 0x6f8]
mov ecx, dword [rsp + 0x6f4]
mov r8d, 0x10002
call qword [sym.imp.kernel32.dll_ContinueDebugEvent]
mov edx, 0xffffffff
mov rcx, rsi
call rbx
test eax, eax
jne 0x410a30
mov edx, 1
xor ecx, ecx
call qword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
lea rax, [rsp + 0x480]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x270]
mov qword [rsp + 0x48], rax
nop dword [rax]
mov rdi, qword [rsp + 0x58]
xor r8d, r8d
xor ecx, ecx
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x690]
mov dword [rsp + 0x270], 1
mov dword [rsp + 0x480], 1
mov r9, rdi
mov qword [rsp + 0x278], rax
mov qword [rsp + 0x488], rax
mov qword [rsp + 0x20], 0
call qword [0x004520d8]
cmp eax, 0xffffffff
je 0x410c12
mov rcx, qword [rsp + 0x690]
mov rdx, rdi
call qword [0x00452108]
test eax, eax
jne 0x411a74
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x690]
call qword [0x00452108]
test eax, eax
je 0x410c98
mov edi, dword [rsp + 0x6a4]
mov edx, dword [rsp + 0x6a0]
mov eax, edi
cmp edi, edx
jg 0x411730
mov rbx, qword [0x004520d0]
mov rsi, qword [sym.imp.ucrtbase.dll_realloc]
lea r12, str..._programs_winedbg_gdbproxy.c
mov rbp, qword [sym.imp.ucrtbase.dll__assert]
jmp 0x410db4
sub edx, eax
cdqe
xor r9d, r9d
lea r10, [rcx + rax]
lea r8d, [rdx - 1]
mov rcx, qword [rsp + 0x690]
mov rdx, r10
call rbx
mov r13d, eax
test eax, eax
jle 0x4116c0
mov eax, dword [rsp + 0x6a4]
mov edx, dword [rsp + 0x6a0]
add eax, r13d
mov dword [rsp + 0x6a4], eax
cmp eax, edx
jg 0x410e90
mov ecx, edx
sub ecx, eax
cmp r13d, ecx
jl 0x410ec0
lea r8d, [rax + 0x7f]
mov rcx, qword [rsp + 0x698]
cmp r8d, edx
jl 0x410d60
sub edx, 0xffffff80
mov dword [rsp + 0x6a0], edx
movsxd rdx, edx
call rsi
mov edx, dword [rsp + 0x6a0]
mov qword [rsp + 0x698], rax
mov rcx, rax
mov eax, dword [rsp + 0x6a4]
jmp 0x410d60
mov rcx, r15
mov r8, r14
mov rdx, r13
mov dword [rsp + 0x270], 1
call qword [0x004520a8]
mov qword [rsp + 0x690], rax
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x411930
nop dword [rax]
mov r12, r15
jmp 0x410c08
mov rax, qword [0x004471a0]
mov eax, dword [rax]
cmp dword [rsp + 0x6f4], eax
jne 0x410a4d
jmp 0x410a67
test byte [0x0042e220], 2
je 0x410c12
call qword [0x004520f8]
lea r9, str.Failed_to_create_socket:__u_n
mov ecx, 1
lea r8, str.gdb_startup
mov dword [rsp + 0x20], eax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
jmp 0x410c12
mov rdx, r12
lea rcx, str.gdbctx__in_len___gdbctx__in_buf_alloc
mov r8d, 0x954
call rbp
mov edx, dword [rsp + 0x6a0]
mov eax, dword [rsp + 0x6a4]
mov ecx, edx
sub ecx, eax
cmp r13d, ecx
jge 0x410db4
nop dword [rax]
mov rdx, qword [rsp + 0x698]
cdqe
mov byte [rdx + rax], 0
movsxd r8, dword [rsp + 0x6a4]
mov eax, r8d
sub eax, edi
test eax, eax
jle 0x410c98
mov r12, qword [rsp + 0x698]
mov edx, dword [rsp + 0x7c8]
lea rsi, [rsp + 0xd0]
mov rdi, qword [sym.imp.ucrtbase.dll_memchr]
lea rbx, [r12 + r8]
test edx, edx
jne 0x4110c0
nop dword [rax]
mov r8, rbx
mov edx, 0x24
mov rcx, r12
sub r8, r12
call rdi
mov r13, rax
test rax, rax
je 0x4110b0
mov r8, rbx
mov edx, 0x23
mov rcx, rax
sub r8, rax
call rdi
mov r12, rax
test rax, rax
je 0x4110b0
mov rax, rbx
sub rax, r12
cmp rax, 2
jle 0x4110b0
mov r8, rsi
lea rdx, str._02x
mov rcx, r12
call sym.sscanf
cmp eax, 1
jne 0x4110b0
mov r11, r12
lea r14, [r13 + 1]
add r12, 3
sub r11, r13
lea ebp, [r11 - 1]
sub r11d, 2
mov r15d, r11d
test ebp, ebp
jle 0x411720
cmp r11d, 0xe
jbe 0x41175d
mov edx, ebp
pxor xmm3, xmm3
pxor xmm4, xmm4
mov rax, r13
shr edx, 4
pxor xmm2, xmm2
shl rdx, 4
add rdx, r13
nop dword [rax]
movdqu xmm0, xmmword [rax + 1]
add rax, 0x10
movdqu xmm1, xmm0
punpckhbw xmm0, xmm4
punpcklbw xmm1, xmm4
movdqu xmm5, xmm1
punpckhwd xmm1, xmm2
punpcklwd xmm5, xmm2
paddd xmm1, xmm5
movdqu xmm5, xmm0
punpckhwd xmm0, xmm2
punpcklwd xmm5, xmm2
paddd xmm0, xmm5
paddd xmm0, xmm1
paddd xmm3, xmm0
cmp rax, rdx
jne 0x410fc0
movdqu xmm0, xmm3
mov eax, ebp
mov r9d, r11d
psrldq xmm0, 8
and eax, 0xfffffff0
paddd xmm3, xmm0
mov r8d, eax
sub r9d, eax
movdqu xmm0, xmm3
add r8, r14
psrldq xmm0, 4
paddd xmm3, xmm0
movd ecx, xmm3
cmp ebp, eax
je 0x411058
mov rdx, r8
mov r10d, 1
nop
movzx eax, byte [rdx]
add rdx, 1
add ecx, eax
mov eax, r10d
sub eax, edx
add eax, r8d
add eax, r9d
test eax, eax
jg 0x411040
movzx ecx, cl
mov r8d, dword [rsp + 0xd0]
movzx eax, byte [0x0042e220]
cmp r8d, ecx
je 0x4112b0
test al, 2
jne 0x411438
xor r9d, r9d
mov rcx, qword [rsp + 0x690]
mov r8d, 1
lea rdx, [0x0043b10a]
call qword [0x004520e0]
mov eax, dword [rsp + 0x7c8]
test eax, eax
je 0x410f10
nop dword [rax + rax]
mov r12, qword [rsp + 0x698]
movsxd r8, dword [rsp + 0x6a4]
mov dword [rsp + 0x50], 0
mov rcx, r12
nop dword [rax + rax]
mov edx, 0x24
call rdi
mov r12, rax
test rax, rax
je 0x4112a0
mov r8, rbx
mov edx, 0x23
mov rcx, rax
sub r8, rax
call rdi
mov r13, rax
test rax, rax
je 0x4112a0
mov rax, rbx
sub rax, r13
cmp rax, 2
jle 0x4112a0
lea r8, [rsp + 0xd0]
lea rdx, str._02x
mov rcx, r13
call sym.sscanf
cmp eax, 1
jne 0x4112a0
mov rcx, qword [rsp + 0x698]
movzx r10d, byte [0x0042e220]
cmp rcx, r12
je 0x41114e
test r10b, 4
jne 0x4112e0
mov rsi, r13
lea r15, [r12 + 1]
add r13, 3
sub rsi, r12
lea r14d, [rsi - 1]
sub esi, 2
mov r11d, esi
test r14d, r14d
jle 0x411710
cmp esi, 0xe
jbe 0x41176a
mov edx, r14d
pxor xmm3, xmm3
pxor xmm4, xmm4
mov rax, r12
shr edx, 4
pxor xmm2, xmm2
shl rdx, 4
add rdx, r12
nop dword [rax]
movdqu xmm0, xmmword [rax + 1]
add rax, 0x10
movdqu xmm1, xmm0
punpckhbw xmm0, xmm4
punpcklbw xmm1, xmm4
movdqu xmm5, xmm1
punpcklwd xmm1, xmm2
punpckhwd xmm5, xmm2
paddd xmm1, xmm5
movdqu xmm5, xmm0
punpcklwd xmm0, xmm2
punpckhwd xmm5, xmm2
paddd xmm0, xmm5
paddd xmm0, xmm1
paddd xmm3, xmm0
cmp rdx, rax
jne 0x411198
movdqu xmm0, xmm3
mov eax, r14d
mov r9d, esi
psrldq xmm0, 8
and eax, 0xfffffff0
paddd xmm3, xmm0
mov r8d, eax
sub r9d, eax
movdqu xmm0, xmm3
add r8, r15
psrldq xmm0, 4
paddd xmm3, xmm0
movd ecx, xmm3
cmp r14d, eax
je 0x411237
mov rdx, r8
mov ebp, 1
nop word [rax + rax]
movzx eax, byte [rdx]
add rdx, 1
add ecx, eax
mov eax, ebp
sub eax, edx
add eax, r8d
add eax, r9d
test eax, eax
jg 0x411220
movzx ecx, cl
mov r8d, dword [rsp + 0xd0]
cmp r8d, ecx
je 0x411550
mov ebp, dword [rsp + 0x50]
and ebp, 0x80
and r10d, 4
jne 0x411320
sub rbx, r13
mov rcx, qword [rsp + 0x698]
mov rdx, r13
mov r8, rbx
mov dword [rsp + 0x6a4], ebx
call qword [sym.imp.ucrtbase.dll_memmove]
mov rcx, qword [rsp + 0x698]
movsxd r8, dword [rsp + 0x6a4]
lea rbx, [rcx + r8]
test ebp, ebp
je 0x4110d0
nop dword [rax]
test byte [rsp + 0x50], 0x80
je 0x410c98
jmp 0x410c12
test al, 8
jne 0x4116d0
xor r9d, r9d
mov rcx, qword [rsp + 0x690]
mov r8d, 1
lea rdx, [0x0043b0e3]
call qword [0x004520e0]
jmp 0x411099
mov rdx, r12
sub rdx, rcx
call sym.wine_dbgstr_an
lea r9, str.Ignoring:__s_n
mov ecx, 2
lea r8, str.extract_packets
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
movzx r10d, byte [0x0042e220]
jmp 0x41114e
test r14d, r14d
jle 0x411b50
cmp esi, 0xe
jbe 0x411b5e
mov edx, r14d
pxor xmm3, xmm3
pxor xmm4, xmm4
mov rax, r12
shr edx, 4
pxor xmm2, xmm2
shl rdx, 4
add rdx, r12
nop
movdqu xmm0, xmmword [rax + 1]
add rax, 0x10
movdqu xmm1, xmm0
punpckhbw xmm0, xmm4
punpcklbw xmm1, xmm4
movdqu xmm5, xmm1
punpcklwd xmm1, xmm2
punpckhwd xmm5, xmm2
paddd xmm1, xmm5
movdqu xmm5, xmm0
punpcklwd xmm0, xmm2
punpckhwd xmm5, xmm2
paddd xmm0, xmm5
paddd xmm0, xmm1
paddd xmm3, xmm0
cmp rdx, rax
jne 0x411350
movdqu xmm0, xmm3
mov eax, r14d
psrldq xmm0, 8
and eax, 0xfffffff0
paddd xmm3, xmm0
mov ecx, eax
sub esi, eax
movdqu xmm0, xmm3
add r15, rcx
mov r11d, esi
psrldq xmm0, 4
paddd xmm3, xmm0
movd edx, xmm3
cmp r14d, eax
je 0x4113e8
mov rcx, r15
mov r9d, 1
nop
movzx eax, byte [rcx]
add rcx, 1
add edx, eax
mov eax, r9d
sub eax, ecx
add eax, r15d
add eax, r11d
test eax, eax
jg 0x4113d0
movzx esi, dl
mov rdx, r13
mov rcx, r12
mov dword [rsp + 0x60], r8d
sub rdx, r12
call sym.wine_dbgstr_an
mov r8d, dword [rsp + 0x60]
mov dword [rsp + 0x30], esi
lea r9, str.Ignoring:__s__checksum:__d____d__n
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
mov ecx, 2
mov dword [rsp + 0x28], r8d
lea r8, str.extract_packets
call sym.wine_dbg_log.constprop.0_4
jmp 0x41125f
test ebp, ebp
jle 0x411b57
cmp r11d, 0xe
jbe 0x411c08
mov edx, ebp
pxor xmm3, xmm3
pxor xmm4, xmm4
mov rax, r13
shr edx, 4
pxor xmm2, xmm2
shl rdx, 4
add rdx, r13
nop dword [rax]
movdqu xmm0, xmmword [rax + 1]
add rax, 0x10
movdqu xmm1, xmm0
punpckhbw xmm0, xmm4
punpcklbw xmm1, xmm4
movdqu xmm5, xmm1
punpckhwd xmm1, xmm2
punpcklwd xmm5, xmm2
paddd xmm1, xmm5
movdqu xmm5, xmm0
punpckhwd xmm0, xmm2
punpcklwd xmm5, xmm2
paddd xmm0, xmm5
paddd xmm0, xmm1
paddd xmm3, xmm0
cmp rax, rdx
jne 0x411468
movdqu xmm0, xmm3
mov eax, ebp
mov r15d, r11d
psrldq xmm0, 8
and eax, 0xfffffff0
paddd xmm3, xmm0
mov edx, eax
sub r15d, eax
movdqu xmm0, xmm3
add r14, rdx
psrldq xmm0, 4
paddd xmm3, xmm0
movd ecx, xmm3
cmp eax, ebp
je 0x411500
mov rdx, r14
mov r9d, 1
nop dword [rax]
movzx eax, byte [rdx]
add rdx, 1
add ecx, eax
mov eax, r9d
sub eax, edx
add eax, r14d
add eax, r15d
test eax, eax
jg 0x4114e8
movzx ebp, cl
mov rdx, r12
mov rcx, r13
mov dword [rsp + 0x50], r8d
sub rdx, r13
call sym.wine_dbgstr_an
mov r8d, dword [rsp + 0x50]
mov dword [rsp + 0x30], ebp
lea r9, str.Nacking:__s__checksum:__d____d__n
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
mov ecx, 1
mov dword [rsp + 0x28], r8d
lea r8, str.extract_packets
call sym.wine_dbg_log.constprop.0_4
jmp 0x41107b
and r10d, 8
jne 0x411a3d
mov dword [rsp + 0x6b0], esi
lea rax, [r12 + 2]
movsxd rsi, esi
lea rdx, [0x0043b940]
mov qword [rsp + 0x6a8], rax
xor eax, eax
mov byte [rsi + r12 + 2], 0
movzx ecx, byte [r12 + 1]
jmp 0x4115a0
add eax, 1
add rdx, 0x10
cmp eax, 0x13
je 0x41199f
cmp byte [rdx], cl
jne 0x411590
cdqe
lea rsi, [0x0043b940]
mov rcx, qword [rsp + 0x68]
shl rax, 4
call qword [rsi + rax + 8]
mov dword [rsp + 0x50], eax
and eax, 0xffffff7f
jne 0x4115e8
test byte [0x0042e220], 4
jne 0x411ba3
mov ebp, dword [rsp + 0x50]
and ebp, 0x80
jmp 0x4119b6
mov ebp, dword [rsp + 0x50]
and ebp, 0x80
cmp eax, 1
jne 0x411650
cmp dword [rsp + 0x6d0], 0xffffffff
jne 0x411aee
mov r8d, 1
lea rdx, [0x0043a327]
lea rcx, [rsp + 0x6b8]
call sym.reply_buffer_append
mov rax, qword [rsp + 0x6c0]
mov r8d, 2
lea rdx, [0x0043ac2f]
mov dword [rsp + 0x6d0], eax
mov rsi, qword [rsp + 0x68]
mov rcx, rsi
call sym.packet_reply_add_data
mov rcx, rsi
call sym.packet_reply_close
mov rdx, qword [rsp + 0x6c0]
mov r10, qword [rsp + 0x6b8]
mov r8d, edx
test byte [0x0042e220], 8
jne 0x4119fc
mov rcx, qword [rsp + 0x690]
xor r9d, r9d
mov rdx, r10
call qword [0x004520e0]
cdqe
cmp rax, qword [rsp + 0x6c0]
je 0x4116aa
mov r8d, 0x937
lea rdx, str..._programs_winedbg_gdbproxy.c
lea rcx, str.i__gdbctx__out_buf.len
call qword [sym.imp.ucrtbase.dll__assert]
mov qword [rsp + 0x6c0], 0
jmp 0x41125f
mov eax, dword [rsp + 0x6a4]
jmp 0x410ec0
mov rdx, r12
mov rcx, r13
sub rdx, r13
call sym.wine_dbgstr_an
lea r9, str.Acking:__s_n
mov ecx, 3
lea r8, str.extract_packets
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
jmp 0x4112b8
xor ecx, ecx
jmp 0x41123a
xor ecx, ecx
jmp 0x41105b
lea rdx, str..._programs_winedbg_gdbproxy.c
mov r8d, 0x94a
lea rcx, str.gdbctx__in_len___gdbctx__in_buf_alloc
call qword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [rsp + 0x6a4]
mov edx, dword [rsp + 0x6a0]
jmp 0x410d3c
mov r9d, r11d
mov r8, r14
xor ecx, ecx
jmp 0x411035
mov r9d, esi
mov r8, r15
xor ecx, ecx
jmp 0x41120f
movzx eax, word [rsp + 0x92]
lea rcx, str.WINE_GDB
lea r12, [rsp + 0x270]
mov word [rsp + 0x58], ax
call qword [sym.imp.ucrtbase.dll_getenv]
lea r11, [rsp + 0x480]
mov ecx, 0x104
test rax, rax
mov r10, rax
lea rax, [0x0043af84]
mov rdx, r11
cmove r10, rax
mov qword [rsp + 0x50], r11
mov qword [rsp + 0x70], r10
call qword [sym.imp.kernel32.dll_GetTempPathW]
mov r11, qword [rsp + 0x50]
xor r8d, r8d
mov r9, r12
lea rdx, [0x0043b00c]
mov rcx, r11
call qword [sym.imp.kernel32.dll_GetTempFileNameW]
lea rdx, [0x0043b014]
mov rcx, r12
call qword [sym.imp.ucrtbase.dll__wfopen]
mov r11, qword [rsp + 0x50]
test rax, rax
mov qword [rsp + 0x60], rax
je 0x410bbf
mov rcx, r12
mov qword [rsp + 0x78], r11
call sym.wine_get_unix_file_name
movzx r8d, word [rsp + 0x58]
mov r9, qword [rsp + 0x60]
lea rdx, str.target_remote_localhost:_d_n
mov r12, rax
rol r8w, 8
mov rcx, r9
mov qword [rsp + 0x50], r9
movzx r8d, r8w
call sym.fprintf
mov r9, qword [rsp + 0x50]
lea rdx, str.set_prompt_Wine_gdb___n
mov rcx, r9
call sym.fprintf
mov r9, qword [rsp + 0x50]
lea rdx, str.sharedlibrary_n
mov rcx, r9
call sym.fprintf
mov r9, qword [rsp + 0x50]
lea rdx, str.set_step_mode_on_n
mov rcx, r9
call sym.fprintf
mov r9, qword [rsp + 0x50]
mov r8, r12
lea rdx, str.shell_rm__f___s__n
mov rcx, r9
call sym.fprintf
mov r9, qword [rsp + 0x50]
mov rcx, r9
call qword [sym.imp.ucrtbase.dll_fclose]
mov r10, qword [rsp + 0x70]
mov r11, qword [rsp + 0x78]
lea rax, [0x0043b06e]
test byte [rsp + 0x950], 2
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xb0], r10
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], 0
mov qword [rsp + 0x50], r11
movups xmmword [rsp + 0xa0], xmm6
je 0x411ab6
lea rcx, [rsp + 0xa0]
xor edx, edx
call sym.__wine_unix_spawnvp
mov r11, qword [rsp + 0x50]
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov qword [rsp + 0x50], r11
mov r8, r12
xor edx, edx
mov rcx, qword [rax + 0x30]
call qword [sym.imp.kernel32.dll_HeapFree]
mov r11, qword [rsp + 0x50]
jmp 0x410bbf
test byte [0x0042e220], 8
jne 0x411bd7
mov dword [rsp + 0x20], 4
mov r8d, 1
mov edx, 6
lea r9, [rsp + 0x270]
call rdi
mov rcx, r15
call qword [0x004520b8]
jmp 0x410c3e
call qword [0x004520f8]
lea r9, str.Failed_to_connect_to_gdb:__u_n
mov ecx, 1
lea r8, str.gdb_startup
mov dword [rsp + 0x20], eax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
mov rcx, r15
call qword [0x004520b8]
jmp 0x410c12
test byte [0x0042e220], 4
jne 0x411b65
mov dword [rsp + 0x50], 0
xor ebp, ebp
cmp dword [rsp + 0x6d0], 0xffffffff
jne 0x411acf
mov r8d, 1
lea rdx, [0x0043a327]
lea rcx, [rsp + 0x6b8]
call sym.reply_buffer_append
mov rax, qword [rsp + 0x6c0]
xor r8d, r8d
lea rdx, [0x0043a357]
mov dword [rsp + 0x6d0], eax
jmp 0x41163b
mov rcx, r10
call sym.wine_dbgstr_an
lea r8, str.extract_packets
mov ecx, 3
lea r9, str.Reply:__s_n
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
mov r8d, dword [rsp + 0x6c0]
mov r10, qword [rsp + 0x6b8]
jmp 0x411670
mov rdx, r13
mov rcx, r12
sub rdx, r12
call sym.wine_dbgstr_an
lea r9, str.Handling:__s_n
mov ecx, 3
lea r8, str.extract_packets
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
jmp 0x41155a
test byte [0x0042e220], 2
jne 0x411b2c
mov rcx, qword [rsp + 0x68]
mov r9d, 0xffffffff
xor r8d, r8d
mov edx, 0xffffffff
call sym.handle_step_or_continue
mov ecx, dword [rsp + 0x6f0]
test ecx, ecx
jne 0x411b0d
mov rcx, qword [rsp + 0x7a8]
call sym.dbg_del_process
jmp 0x410c12
lea rcx, [rsp + 0xb0]
xor edx, edx
call sym.__wine_unix_spawnvp
mov r11, qword [rsp + 0x50]
jmp 0x411905
mov r8d, 0x389
lea rdx, str..._programs_winedbg_gdbproxy.c
lea rcx, str.gdbctx__out_curr_packet___1
call qword [sym.imp.ucrtbase.dll__assert]
jmp 0x4119c4
mov r8d, 0x389
lea rdx, str..._programs_winedbg_gdbproxy.c
lea rcx, str.gdbctx__out_curr_packet___1
call qword [sym.imp.ucrtbase.dll__assert]
jmp 0x411605
mov edx, dword [rsp + 0x6f8]
mov ecx, dword [rsp + 0x6f4]
mov r8d, 0x10002
call qword [sym.imp.kernel32.dll_ContinueDebugEvent]
jmp 0x411aa4
lea r9, str.gdb_hung_up_n
lea r8, str.gdb_remote
mov ecx, 1
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
jmp 0x411a81
xor esi, esi
jmp 0x4113eb
xor ebp, ebp
jmp 0x411503
xor edx, edx
jmp 0x4113c5
mov edx, r14d
mov rcx, r15
xor ebp, ebp
call sym.wine_dbgstr_an
lea r9, str.Unhandled:__s_n
mov ecx, 2
lea r8, str.extract_packets
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
mov dword [rsp + 0x50], 0
jmp 0x4119b6
mov edx, r14d
mov rcx, r15
call sym.wine_dbgstr_an
lea r9, str.Failed:__s_n
mov ecx, 2
lea r8, str.extract_packets
mov qword [rsp + 0x20], rax
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
jmp 0x4115d2
mov qword [rsp + 0x20], rax
mov ecx, 3
lea r9, str.connected_on__Iu_n
lea r8, str.gdb_startup
lea rdx, [0x0042e220]
call sym.wine_dbg_log.constprop.0_4
mov rcx, qword [rsp + 0x690]
jmp 0x41193d
xor ecx, ecx
jmp 0x4114dc