Function at 0x40fe00
Capabilities:
Get common file path
Get process heap flags
Query environment variable

Disassembly:
push ebp
mov ecx, str.xterm
mov ebp, esp
push edi
movd xmm1, ecx
mov ecx, 0xffffffff
push esi
push ebx
mov ebx, 0xffffffff
sub esp, 0x7fc
mov dword [ebp - 0x7c8], eax
mov eax, 0x435cbf
mov dword [ebp - 0x5c8], ebx
mov ebx, 0xffffffff
movd xmm2, eax
mov dword [ebp - 0x540], ebx
lea eax, [ebp - 0x5c0]
punpckldq xmm1, xmm2
mov dword [ebp - 0x5cc], ecx
xor ecx, ecx
movd xmm0, eax
xor eax, eax
lea ebx, [ebp - 0x53c]
mov dword [ebp - 0x544], ecx
mov ecx, 0x41
punpckldq xmm0, xmm0
mov edi, ebx
movq qword [ebp - 0x7d8], xmm1
rep stosd dword es:[edi], eax
mov eax, edx
mov dword [ebp - 0x5f0], 0xffffffff
rol ax, 8
mov dword [ebp - 0x5ec], 0
mov dword [ebp - 0x5e8], 0
lea edi, [ebp - 0x5b8]
mov dword [ebp - 0x5e4], 0
mov dword [ebp - 0x5d8], 0
mov dword [ebp - 0x5d4], 0
mov dword [ebp - 0x5d0], 0
mov dword [ebp - 0x5c4], 0xffffffff
movq qword [ebp - 0x5c0], xmm0
mov dword [ebp - 0x554], 0
mov dword [ebp - 0x550], 0
mov dword [ebp - 0x54c], 0
mov dword [ebp - 0x548], 0
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov word [ebp - 0x7bc], ax
lea esi, [esi]
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_WaitForDebugEvent]
sub esp, 8
test eax, eax
je 0x410230
cmp dword [ebp - 0x5b8], 3
jne 0x410188
mov esi, dword [ebp - 0x554]
test esi, esi
je 0x4101d0
mov dword [esp + 8], 0x9c1
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_gdbproxy.c
mov dword [esp], str.gdbctx__process__NULL__gdbctx__de.dwProcessId__dbg_curr_pid
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [ebp - 0x7b0], 1
lea eax, [ebp - 0x780]
mov dword [ebp - 0x7a8], 0
mov dword [ebp - 0x7a4], 0
mov dword [ebp - 0x7a0], 0
mov dword [ebp - 0x79c], 0
mov dword [ebp - 0x7ac], 0x10
mov dword [esp + 4], eax
mov dword [esp], 0x202
call fcn.00429de4
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 2
call fcn.00429d34
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4101f0
lea eax, [ebp - 0x7b0]
mov dword [esp], esi
mov ebx, 2
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 4
mov dword [esp + 4], 0xffff
call fcn.00429d44
movzx eax, word [ebp - 0x7bc]
mov word [ebp - 0x7a8], bx
lea ebx, [ebp - 0x7a8]
mov dword [ebp - 0x7a4], 0
sub esp, 0x14
mov word [ebp - 0x7a6], ax
mov dword [esp + 8], 0x10
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00429db4
sub esp, 0xc
cmp eax, 0xffffffff
je 0x410170
mov dword [esp + 4], 1
mov dword [esp], esi
call fcn.00429d84
sub esp, 8
cmp eax, 0xffffffff
je 0x410170
lea eax, [ebp - 0x7ac]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00429d94
sub esp, 0xc
cmp eax, 0xffffffff
je 0x410170
lea eax, [ebp - 0x5f0]
xor edx, edx
call fcn.0040eb60
movzx eax, word [ebp - 0x7a6]
test byte [ebp - 0x7c8], 1
je 0x410b5e
rol ax, 8
movzx edx, ax
mov dword [ebp - 0x7c0], edx
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, dword [ebp - 0x7c0]
mov dword [esp + 4], str.target_remote_localhost:_d_n
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0040b7a0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x7c0], eax
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x7c0]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00429d64
sub esp, 0x14
test eax, eax
jg 0x410d33
test byte [0x42c7b0], 2
jne 0x410e02
nop
mov dword [esp], esi
call fcn.00429da4
sub esp, 4
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x5f0]
xor edx, edx
call fcn.0040eb60
test eax, eax
je 0x410230
mov dword [esp + 8], 0x10002
mov eax, dword [ebp - 0x5b0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ContinueDebugEvent]
sub esp, 0xc
jmp 0x40ff30
mov eax, dword [0x4425ac]
cmp dword [ebp - 0x5b4], eax
jne 0x40ff67
jmp 0x40ff84
test byte [0x42c7b0], 2
je 0x41017b
call fcn.00429df4
mov dword [esp + 0xc], str.Failed_to_create_socket:__u_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.gdb_startup
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 1
call fcn.0040baa0
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_SetConsoleCtrlHandler]
lea eax, [ebp - 0x220]
mov dword [ebp - 0x7d0], eax
lea eax, [ebp - 0x428]
sub esp, 8
mov dword [ebp - 0x7c8], eax
mov dword [ebp - 0x428], 1
mov eax, dword [ebp - 0x5f0]
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x21c], eax
mov dword [esp + 0x10], 0
mov esi, dword [ebp - 0x7d0]
mov dword [esp + 8], 0
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x7c8]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.00429d64
sub esp, 0x14
cmp eax, 0xffffffff
je 0x41017b
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x5f0]
mov dword [esp], eax
call fcn.00429dd4
sub esp, 8
test eax, eax
jne 0x410f33
mov eax, dword [ebp - 0x7c8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5f0]
mov dword [esp], eax
call fcn.00429dd4
sub esp, 8
test eax, eax
je 0x410260
mov edi, dword [ebp - 0x5e4]
mov ecx, dword [ebp - 0x5e8]
mov eax, edi
cmp edi, ecx
jg 0x410b30
mov esi, dword [sym.imp.ucrtbase.dll_realloc]
jmp 0x410372
sub ecx, eax
add eax, edx
mov dword [esp + 0xc], 0
sub ecx, 1
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov eax, dword [ebp - 0x5f0]
mov dword [esp], eax
call fcn.00429d74
sub esp, 0x10
test eax, eax
mov ebx, eax
jle 0x410a98
mov eax, dword [ebp - 0x5e4]
mov ecx, dword [ebp - 0x5e8]
add eax, ebx
cmp eax, ecx
mov dword [ebp - 0x5e4], eax
jg 0x4103b0
mov edx, ecx
sub edx, eax
cmp ebx, edx
jl 0x4103e8
lea ebx, [eax + 0x7f]
mov edx, dword [ebp - 0x5ec]
cmp ebx, ecx
jl 0x410320
sub ecx, 0xffffff80
mov dword [ebp - 0x5e8], ecx
mov dword [esp + 4], ecx
mov dword [esp], edx
call esi
mov ecx, dword [ebp - 0x5e8]
mov edx, eax
mov dword [ebp - 0x5ec], eax
mov eax, dword [ebp - 0x5e4]
jmp 0x410320
mov dword [esp + 8], 0x92d
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_gdbproxy.c
mov dword [esp], str.gdbctx__in_len___gdbctx__in_buf_alloc
call dword [sym.imp.ucrtbase.dll__assert]
mov ecx, dword [ebp - 0x5e8]
mov eax, dword [ebp - 0x5e4]
mov edx, ecx
sub edx, eax
cmp ebx, edx
jge 0x410372
lea esi, [esi]
mov edx, dword [ebp - 0x5ec]
mov byte [edx + eax], 0
mov eax, dword [ebp - 0x5e4]
cmp eax, edi
jle 0x410260
mov esi, dword [ebp - 0x5ec]
mov edx, dword [ebp - 0x544]
lea ebx, [esi + eax]
test edx, edx
jne 0x41054d
mov dword [ebp - 0x7c0], ebx
mov dword [ebp - 0x7bc], esi
lea esi, [esi]
nop
mov esi, dword [ebp - 0x7c0]
mov edi, dword [ebp - 0x7bc]
mov dword [esp + 4], 0x24
mov eax, esi
sub eax, edi
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memchr]
mov edi, eax
test eax, eax
je 0x41053b
mov eax, esi
mov dword [esp + 4], 0x23
sub eax, edi
mov dword [esp], edi
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memchr]
mov ebx, eax
test eax, eax
je 0x41105d
mov eax, dword [ebp - 0x7c0]
sub eax, ebx
cmp eax, 2
jle 0x41053b
lea eax, [ebp - 0x780]
mov dword [esp + 4], str._02x
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0040b870
cmp eax, 1
jne 0x41053b
lea esi, [ebx + 3]
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x7bc], esi
lea esi, [edi + 1]
sub eax, 1
test eax, eax
mov dword [ebp - 0x7c4], eax
jle 0x410b10
mov eax, esi
xor edx, edx
lea esi, [esi]
nop
movzx ecx, byte [eax]
add eax, 1
add edx, ecx
cmp ebx, eax
jne 0x4104d8
movzx edx, dl
mov ecx, dword [ebp - 0x780]
movzx eax, byte [0x42c7b0]
cmp ecx, edx
je 0x4106b0
test al, 2
jne 0x410820
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x435e3e
mov eax, dword [ebp - 0x5f0]
mov dword [esp], eax
call fcn.00429d54
sub esp, 0x10
mov edx, dword [ebp - 0x544]
test edx, edx
je 0x410428
mov ebx, dword [ebp - 0x7c0]
mov eax, dword [ebp - 0x5e4]
mov esi, dword [ebp - 0x5ec]
mov dword [ebp - 0x7dc], 0
mov dword [ebp - 0x7bc], ebx
lea esi, [esi]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x24
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_memchr]
mov edi, eax
test eax, eax
je 0x410260
mov esi, dword [ebp - 0x7bc]
mov dword [esp + 4], 0x23
mov dword [esp], edi
mov eax, esi
sub eax, edi
mov dword [esp + 8], eax
call dword [sym.imp.ucrtbase.dll_memchr]
mov ebx, eax
test eax, eax
je 0x410260
mov eax, esi
sub eax, ebx
cmp eax, 2
jle 0x410260
lea eax, [ebp - 0x780]
mov dword [esp + 4], str._02x
mov dword [esp + 8], eax
mov dword [esp], ebx
call fcn.0040b870
cmp eax, 1
jne 0x410260
movzx eax, byte [0x42c7b0]
mov esi, dword [ebp - 0x5ec]
mov byte [ebp - 0x7c0], al
cmp esi, edi
je 0x4105f7
test al, 4
jne 0x4106f0
lea esi, [ebx + 3]
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x7c4], esi
mov dword [ebp - 0x7d8], eax
lea esi, [edi + 1]
sub eax, 1
test eax, eax
mov dword [ebp - 0x7cc], eax
jle 0x410b20
mov eax, esi
xor edx, edx
lea esi, [esi]
movzx ecx, byte [eax]
add eax, 1
add edx, ecx
cmp ebx, eax
jne 0x410628
movzx edx, dl
mov ecx, dword [ebp - 0x780]
cmp ecx, edx
je 0x4108c0
test byte [ebp - 0x7c0], 4
jne 0x410778
mov ebx, dword [ebp - 0x7dc]
and ebx, 0x80
mov edi, dword [ebp - 0x7c4]
mov eax, dword [ebp - 0x7bc]
sub eax, edi
mov dword [ebp - 0x5e4], eax
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5ec]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_memmove]
mov esi, dword [ebp - 0x5ec]
mov eax, dword [ebp - 0x5e4]
lea edi, [esi + eax]
mov dword [ebp - 0x7bc], edi
test ebx, ebx
je 0x410560
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test al, 8
jne 0x410aa8
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x435e17
mov eax, dword [ebp - 0x5f0]
mov dword [esp], eax
call fcn.00429d54
sub esp, 0x10
jmp 0x41052d
test esi, esi
je 0x410f29
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x410e44
mov ecx, edi
sub ecx, esi
mov dword [esp + 4], ecx
mov dword [ebp - 0x7c0], ecx
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x410737
mov edx, dword [ebp - 0x7c0]
mov eax, esi
call fcn.0040b8c0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Ignoring:__s_n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 2
call fcn.0040baa0
movzx eax, byte [0x42c7b0]
mov byte [ebp - 0x7c0], al
jmp 0x4105f7
mov eax, dword [ebp - 0x7cc]
test eax, eax
jle 0x411056
xor eax, eax
lea esi, [esi]
nop
movzx edx, byte [esi]
add esi, 1
add eax, edx
cmp ebx, esi
jne 0x410790
movzx ebx, al
mov eax, edi
mov dword [ebp - 0x7c0], ecx
shr eax, 0x10
test eax, eax
je 0x410e5c
mov esi, dword [ebp - 0x7c4]
mov dword [esp], edi
sub esi, edi
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov ecx, dword [ebp - 0x7c0]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x4107ea
mov edx, esi
mov eax, edi
call fcn.0040b8c0
mov ecx, dword [ebp - 0x7c0]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Ignoring:__s__checksum:__d____d__n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 2
call fcn.0040baa0
jmp 0x410652
mov eax, dword [ebp - 0x7c4]
test eax, eax
jle 0x411064
xor eax, eax
movzx edx, byte [esi]
add esi, 1
add eax, edx
cmp ebx, esi
jne 0x410830
movzx ebx, al
mov eax, edi
mov dword [ebp - 0x7c4], ecx
shr eax, 0x10
test eax, eax
je 0x410f0b
mov esi, dword [ebp - 0x7bc]
mov dword [esp], edi
sub esi, edi
mov dword [esp + 4], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov ecx, dword [ebp - 0x7c4]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x41088a
mov edx, esi
mov eax, edi
call fcn.0040b8c0
mov ecx, dword [ebp - 0x7c4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Nacking:__s__checksum:__d____d__n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 1
call fcn.0040baa0
jmp 0x410504
test byte [ebp - 0x7c0], 8
jne 0x410ea5
mov eax, dword [ebp - 0x7d8]
lea edx, [edi + 2]
mov dword [ebp - 0x5e0], edx
sub eax, 2
mov dword [ebp - 0x5dc], eax
mov byte [edi + eax + 2], 0
xor eax, eax
movzx edx, byte [edi + 1]
jmp 0x410904
add eax, 1
cmp eax, 0x13
je 0x410e7a
cmp byte [eax*8 + 0x436620], dl
jne 0x4108f8
lea edi, [ebp - 0x5f0]
mov dword [esp], edi
call dword [eax*8 + 0x436624]
mov dword [ebp - 0x7dc], eax
and eax, 0xffffff7f
jne 0x410a0e
test byte [0x42c7b0], 4
jne 0x41109e
mov ebx, dword [ebp - 0x7dc]
and ebx, 0x80
cmp dword [ebp - 0x5cc], 0xffffffff
jne 0x410fa8
lea eax, [ebp - 0x5d8]
mov ecx, 1
mov edx, 0x435000
call fcn.0040c820
mov eax, dword [ebp - 0x5d4]
xor ecx, ecx
mov edx, 0x435004
mov dword [ebp - 0x5cc], eax
lea eax, [ebp - 0x5f0]
call fcn.0040c880
lea eax, [ebp - 0x5f0]
call fcn.0040ca20
test byte [0x42c7b0], 8
je 0x410a30
mov esi, dword [ebp - 0x5d8]
test esi, esi
je 0x41117a
mov eax, esi
mov edi, dword [ebp - 0x5d4]
shr eax, 0x10
test eax, eax
je 0x410fec
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x4109e4
mov edx, edi
mov eax, esi
call fcn.0040b8c0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Reply:__s_n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 3
call fcn.0040baa0
jmp 0x410a30
cmp eax, 1
je 0x410daf
mov ebx, dword [ebp - 0x7dc]
and ebx, 0x80
test byte [0x42c7b0], 8
jne 0x41099f
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x5d4]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x5d8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5f0]
mov dword [esp], eax
call fcn.00429d54
sub esp, 0x10
cmp dword [ebp - 0x5d4], eax
je 0x410a82
mov dword [esp + 8], 0x910
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_gdbproxy.c
mov dword [esp], str.i__gdbctx__out_buf.len
call dword [sym.imp.ucrtbase.dll__assert]
mov dword [ebp - 0x5d4], 0
jmp 0x41065e
mov eax, dword [ebp - 0x5e4]
jmp 0x4103e8
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x410f7a
mov ebx, dword [ebp - 0x7bc]
mov dword [esp], edi
sub ebx, edi
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x410ae1
mov edx, ebx
mov eax, edi
call fcn.0040b8c0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Acking:__s_n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 3
call fcn.0040baa0
jmp 0x4106b8
xor edx, edx
jmp 0x4104e7
xor edx, edx
jmp 0x410637
mov dword [esp + 8], 0x923
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_gdbproxy.c
mov dword [esp], str.gdbctx__in_len___gdbctx__in_buf_alloc
call dword [sym.imp.ucrtbase.dll__assert]
mov eax, dword [ebp - 0x5e4]
mov ecx, dword [ebp - 0x5e8]
jmp 0x410318
mov word [ebp - 0x7d0], ax
mov dword [esp], str.WINE_GDB
call dword [sym.imp.ucrtbase.dll_getenv]
test eax, eax
mov edx, eax
mov eax, 0x435cb5
cmove edx, eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x7dc], edx
mov dword [ebp - 0x7c0], eax
mov dword [esp + 4], eax
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
lea edx, [ebp - 0x428]
sub esp, 8
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x435d48
mov eax, dword [ebp - 0x7c0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
lea edx, [ebp - 0x428]
sub esp, 0x10
mov dword [esp + 4], 0x435d50
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll__wfopen]
mov dword [ebp - 0x7c4], eax
test eax, eax
je 0x410119
lea ecx, [ebp - 0x428]
mov dword [esp], ecx
call sub.kernel32.dll_wine_get_unix_file_name
movzx ecx, word [ebp - 0x7d0]
mov dword [ebp - 0x7cc], eax
mov dword [esp + 4], str.target_remote_localhost:_d_n
rol cx, 8
movzx eax, cx
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x7c4]
mov dword [esp], edx
call fcn.0040b7a0
mov dword [esp + 4], str.set_prompt_Wine_gdb___n
mov edx, dword [ebp - 0x7c4]
mov dword [esp], edx
call fcn.0040b7a0
mov dword [esp + 4], str.sharedlibrary_n
mov edx, dword [ebp - 0x7c4]
mov dword [esp], edx
call fcn.0040b7a0
mov dword [esp + 4], str.set_step_mode_on_n
mov edx, dword [ebp - 0x7c4]
mov dword [esp], edx
call fcn.0040b7a0
mov ecx, dword [ebp - 0x7cc]
mov dword [esp + 4], str.shell_rm__f___s__n
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x7c4]
mov dword [esp], edx
call fcn.0040b7a0
mov edx, dword [ebp - 0x7c4]
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_fclose]
mov edx, dword [ebp - 0x7dc]
mov dword [ebp - 0x78c], 0x435da1
mov dword [ebp - 0x784], 0
mov ecx, dword [ebp - 0x7cc]
test byte [ebp - 0x7c8], 2
movq xmm3, qword [ebp - 0x7d8]
mov dword [ebp - 0x790], edx
movq qword [ebp - 0x798], xmm3
mov dword [ebp - 0x788], ecx
mov dword [esp + 4], 0
je 0x410f92
lea eax, [ebp - 0x798]
mov dword [esp], eax
call sub.ntdll.dll___wine_unix_spawnvp
sub esp, 8
mov edx, dword [ebp - 0x7cc]
mov dword [esp + 4], 0
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_HeapFree]
sub esp, 0xc
jmp 0x410119
mov dword [ebp - 0x428], 1
lea eax, [ebp - 0x7ac]
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00429dc4
sub esp, 0xc
mov dword [ebp - 0x5f0], eax
cmp eax, 0xffffffff
je 0x410170
test byte [0x42c7b0], 8
jne 0x41106b
mov dword [esp + 0x10], 4
lea edx, [ebp - 0x428]
mov dword [esp + 8], 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], 6
mov dword [esp], eax
call fcn.00429d44
sub esp, 0x14
mov dword [esp], esi
call fcn.00429da4
sub esp, 4
jmp 0x41019d
cmp dword [ebp - 0x5cc], 0xffffffff
jne 0x410fca
lea eax, [ebp - 0x5d8]
mov ecx, 1
mov edx, 0x435000
call fcn.0040c820
mov eax, dword [ebp - 0x5d4]
mov ecx, 2
mov edx, 0x4358f5
mov dword [ebp - 0x5cc], eax
lea eax, [ebp - 0x5f0]
call fcn.0040c880
lea eax, [ebp - 0x5f0]
call fcn.0040ca20
jmp 0x410a17
call fcn.00429df4
mov dword [esp + 0xc], str.Failed_to_connect_to_gdb:__u_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.gdb_startup
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 1
call fcn.0040baa0
mov dword [esp], esi
call fcn.00429da4
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
movzx esi, si
mov dword [esp], 0x434e2a
mov dword [esp + 4], esi
call fcn.0040c7c0
jmp 0x410737
movzx eax, di
mov dword [esp], 0x434e2a
mov dword [esp + 4], eax
call fcn.0040c7c0
mov ecx, dword [ebp - 0x7c0]
jmp 0x4107ea
test byte [0x42c7b0], 4
jne 0x411102
mov dword [ebp - 0x7dc], 0
xor ebx, ebx
cmp dword [ebp - 0x5cc], 0xffffffff
je 0x410954
jmp 0x410fa8
mov eax, edi
shr eax, 0x10
test eax, eax
je 0x411162
mov ebx, dword [ebp - 0x7c4]
mov dword [esp], edi
sub ebx, edi
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x410ede
mov edx, ebx
mov eax, edi
call fcn.0040b8c0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Handling:__s_n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 3
call fcn.0040baa0
jmp 0x4108cd
movzx eax, di
mov dword [esp], 0x434e2a
mov dword [esp + 4], eax
call fcn.0040c7c0
mov ecx, dword [ebp - 0x7c4]
jmp 0x41088a
mov eax, 0x435c3f
jmp 0x410737
test byte [0x42c7b0], 2
jne 0x41102d
xor ecx, ecx
mov dword [esp], 0xffffffff
mov edx, 0xffffffff
lea eax, [ebp - 0x5f0]
call fcn.0040c2a0
mov ecx, dword [ebp - 0x5b8]
test ecx, ecx
jne 0x411004
mov eax, dword [ebp - 0x554]
mov dword [esp], eax
call fcn.00424c00
jmp 0x41017b
movzx eax, di
mov dword [esp], 0x434e2a
mov dword [esp + 4], eax
call fcn.0040c7c0
jmp 0x410ae1
lea eax, [ebp - 0x790]
mov dword [esp], eax
call sub.ntdll.dll___wine_unix_spawnvp
sub esp, 8
jmp 0x410d04
mov dword [esp + 8], 0x37d
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_gdbproxy.c
mov dword [esp], str.gdbctx__out_curr_packet___1
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x410954
mov dword [esp + 8], 0x37d
mov dword [esp + 4], str._Users_gcenx_Documents_GitHub_wineskincx_programs_winedbg_gdbproxy.c
mov dword [esp], str.gdbctx__out_curr_packet___1
call dword [sym.imp.ucrtbase.dll__assert]
jmp 0x410dbc
movzx esi, si
mov dword [esp], 0x434e2a
mov dword [esp + 4], esi
call fcn.0040c7c0
jmp 0x4109e4
mov dword [esp + 8], 0x10002
mov eax, dword [ebp - 0x5b0]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x5b4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ContinueDebugEvent]
sub esp, 0xc
jmp 0x410f67
mov dword [esp + 0xc], str.gdb_hung_up_n
mov dword [esp + 8], str.gdb_remote
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 1
call fcn.0040baa0
jmp 0x410f40
xor ebx, ebx
jmp 0x41079f
mov ebx, esi
jmp 0x410541
xor ebx, ebx
jmp 0x41083f
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.connected_on__Iu_n
mov dword [esp + 8], str.gdb_startup
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 3
call fcn.0040baa0
mov eax, dword [ebp - 0x5f0]
jmp 0x410d72
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x411199
mov edi, dword [ebp - 0x7cc]
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x4110d5
mov edx, edi
mov eax, esi
call fcn.0040b8c0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Failed:__s_n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 2
call fcn.0040baa0
jmp 0x41093b
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x411184
mov edi, dword [ebp - 0x7cc]
mov dword [esp], esi
mov dword [esp + 4], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
mov edx, eax
sub esp, 8
mov eax, 0x4359e3
test edx, edx
jne 0x411135
mov edx, edi
mov eax, esi
call fcn.0040b8c0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Unhandled:__s_n
mov dword [esp + 8], str.extract_packets
mov dword [esp + 4], 0x42c7b0
mov dword [esp], 2
call fcn.0040baa0
jmp 0x410e87
movzx eax, di
mov dword [esp], 0x434e2a
mov dword [esp + 4], eax
call fcn.0040c7c0
jmp 0x410ede
mov eax, 0x435c3f
jmp 0x4109e4
movzx esi, si
mov dword [esp], 0x434e2a
mov dword [esp + 4], esi
call fcn.0040c7c0
jmp 0x411135
movzx esi, si
mov dword [esp], 0x434e2a
mov dword [esp + 4], esi
call fcn.0040c7c0
jmp 0x4110d5