Function at 0x4228a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x368
mov edi, dword [eax + 0x44]
mov dword [eax + 0x9c], 0x40010001
mov dword [eax + 0x2c], edi
mov dword [eax + 0x30], edi
mov eax, dword [eax + 0x3c]
cmp eax, 9
ja case.0x4223bd.0
jmp dword [eax*4 + 0x4400cc]
mov edx, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x48]
mov ebx, dword [ebx + 0x40]
mov dword [esp], 2
mov dword [ebp - 0x33c], edx
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, dword [ebp - 0x33c]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
mov dword [esp + 8], ebx
mov dword [esp + 4], str._08lx:_08lx:_rip_error_lu_type_lu_n
mov dword [esp], eax
call sym._fprintf
lea esi, [esi]
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x439138], 8
jne 0x422c40
mov edx, dword [ebx + 0x48]
cmp edx, 0x406d1388
je 0x422b88
mov eax, 1
cmp edx, 0xc0000008
je 0x422415
lea esi, [esi]
mov eax, dword [ebx + 0xa0]
mov edi, dword [sym.imp.kernel32.dll_SuspendThread]
mov esi, dword [eax + 0x1c]
add eax, 0x1c
cmp esi, eax
jne 0x42248d
jmp 0x422a90
mov dword [esi + 0xc8], 1
mov eax, dword [ebx + 0xa0]
mov esi, dword [esi]
add eax, 0x1c
cmp esi, eax
je 0x422a90
mov edx, dword [esi + 0xc8]
test edx, edx
jne 0x422470
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call edi
sub esp, 4
jmp 0x422470
mov edx, dword [ebx + 0x50]
mov esi, dword [ebx + 0x40]
mov dword [esp], 2
mov dword [ebp - 0x33c], edx
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, dword [ebp - 0x33c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
mov dword [esp + 4], str._08lx:_08lx:_create_thread_D___p_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call sym._dbg_add_thread
jmp 0x422410
mov eax, dword [ebx + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x40]
mov dword [esp], 0x4398d0
mov dword [esp + 4], eax
call sym._dbg_add_process
mov dword [ebx + 0xa0], eax
test eax, eax
je 0x422410
lea edx, [ebp - 0x338]
lea esi, [ebp - 0x20c]
mov dword [ebp - 0x338], 0x100
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_QueryFullProcessImageNameW]
sub esp, 0x10
mov dword [esp + 4], esi
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call sym._dbg_set_process_name
mov eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x68]
mov ecx, dword [ebx + 0x64]
mov edi, dword [ebx + 0x58]
mov dword [ebp - 0x33c], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x340], edx
mov edx, dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [ebp - 0x344], eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x350], ecx
mov dword [ebp - 0x34c], edx
mov dword [ebp - 0x348], eax
mov dword [esp], 2
call edx
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ebp - 0x340]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp - 0x350]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x344]
mov dword [esp + 4], str._04lx:_04lx:_create_process__ls__p___p___lu__lu___n
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x348]
mov dword [esp], eax
mov dword [esp + 8], ecx
call sym._fprintf
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._dbg_init
mov edx, dword [ebp - 0x34c]
test eax, eax
jne 0x422670
test byte [0x439138], 2
je 0x422670
mov dword [esp + 0xc], 0x43fef9
mov dword [esp + 8], str.handle_debug_event
mov dword [esp + 4], 0x439138
mov dword [esp], 1
mov dword [ebp - 0x33c], edx
call sym._wine_dbg_log.constprop.0_3
mov edx, dword [ebp - 0x33c]
nop
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x44]
mov edi, dword [ebx + 0x40]
mov dword [esp], 2
mov dword [ebp - 0x340], ecx
mov dword [ebp - 0x33c], eax
call edx
mov ecx, dword [ebp - 0x340]
mov dword [esp + 8], edi
mov dword [esp + 4], 0x43ff14
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp - 0x33c]
mov dword [esp], eax
mov dword [esp + 0xc], ecx
call sym._fprintf
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x54]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._dbg_load_module
mov eax, dword [ebx + 0x60]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x50]
jmp 0x4224ed
mov edx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x40]
mov dword [esp], 2
mov dword [ebp - 0x33c], edx
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, dword [ebp - 0x33c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
mov dword [esp + 4], str._08lx:_08lx:_exit_thread___lu__n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebx + 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call sym._dbg_get_thread
test eax, eax
je 0x422410
mov dword [esp], eax
call sym._dbg_del_thread
mov eax, 1
jmp 0x422415
mov edx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x40]
mov dword [esp], 2
mov dword [ebp - 0x33c], edx
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov edx, dword [ebp - 0x33c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 0x10], edx
mov dword [esp + 4], str._08lx:_08lx:_exit_process___lu__n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call sym._dbg_del_process
xor eax, eax
mov dword [ebx + 0xa0], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x20c]
mov dword [esp + 0xc], 0x100
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 0x34c], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x58]
mov dword [esp], eax
call sym._fetch_module_name
mov ecx, dword [ebx + 0x54]
mov edx, dword [ebx + 0x4c]
mov esi, dword [ebx + 0x44]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x348], ecx
mov dword [ebp - 0x340], edx
mov dword [ebp - 0x344], esi
mov esi, dword [ebx + 0x40]
mov dword [ebp - 0x33c], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, dword [ebp - 0x348]
mov edx, dword [ebp - 0x340]
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x33c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp - 0x344]
mov dword [esp + 4], str._04lx:_04lx:_loads_DLL__ls___p___lu__lu___n
mov dword [esp + 0xc], ecx
mov dword [esp], eax
call sym._fprintf
mov dword [esp + 0x10], 0
mov eax, dword [ebx + 0x4c]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sym._dbg_load_module
mov edx, dword [ebp - 0x34c]
test edx, edx
je 0x422410
jmp 0x422450
mov ecx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x40]
mov dword [ebp - 0x340], edx
mov dword [esp], 2
mov dword [ebp - 0x33c], ecx
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, dword [ebp - 0x33c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 4], str._08lx:_08lx:_unload_DLL___p_n
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.dbghelp.dll_SymUnloadModule]
mov edx, dword [ebp - 0x340]
sub esp, 8
test edx, edx
jne 0x422450
jmp 0x422410
lea esi, [ebp - 0x20c]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0x10], esi
movzx eax, word [ebx + 0x4c]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call sym._memory_get_string
mov eax, esi
shr eax, 0x10
je 0x422b68
mov dword [esp + 4], 0xffffffff
mov edi, 0x43f0d1
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrA]
sub esp, 8
mov ecx, eax
test eax, eax
jne 0x422a54
movzx eax, byte [ebp - 0x20c]
test al, al
je 0x422c88
lea esi, [esi]
mov edx, ecx
lea ecx, [ecx + 1]
cmp byte [esi + edx + 1], 0
jne 0x422988
mov byte [ebp - 0x338], 0x22
test ecx, ecx
jle 0x422cf8
mov dword [ebp - 0x33c], ebx
lea ecx, [ebp - 0x337]
jmp 0x4229ee
cmp al, 9
je 0x422b50
cmp al, 0xa
jne 0x422aed
mov eax, 0x6e5c
add ecx, 2
mov word [ecx - 2], ax
lea esi, [esi]
lea edi, [edx - 1]
test edx, edx
jle 0x422a20
lea eax, [ebp - 0x215]
cmp ecx, eax
ja 0x422a20
movzx eax, byte [esi]
mov edx, edi
inc esi
cmp al, 0xd
je 0x422b38
jle 0x4229b8
cmp al, 0x22
je 0x422b20
cmp al, 0x5c
jne 0x422adf
mov eax, 0x5c5c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4229d8
mov ebx, dword [ebp - 0x33c]
mov byte [ecx], 0x22
test edi, edi
jle 0x422c9a
mov esi, 0x2e2e
mov byte [ecx + 3], 0x2e
lea eax, [ecx + 4]
mov word [ecx + 1], si
mov byte [eax], 0
lea eax, [ebp - 0x338]
mov dword [esp], eax
call sym.___wine_dbg_strdup
mov edi, eax
mov esi, dword [ebx + 0x44]
mov ebx, dword [ebx + 0x40]
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str._08lx:_08lx:_output_debug_string___s__n
mov dword [esp], eax
call sym._fprintf
jmp 0x422410
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x439138], 1
je 0x422450
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xc], str._08lx:_08lx:_unknown_event___lu__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.handle_debug_event
mov dword [esp + 4], 0x439138
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0_3
jmp 0x422450
lea edi, [eax - 0x20]
mov ebx, edi
cmp bl, 0x5e
jbe 0x422c80
mov ebx, eax
mov edi, 0x785c
and eax, 0xf
add ecx, 4
shr bl, 4
mov word [ecx - 4], di
movzx eax, byte [eax + 0x49dc70]
movzx edi, bl
movzx ebx, byte [edi + 0x49dc70]
mov byte [ecx - 1], al
mov byte [ecx - 2], bl
jmp 0x4229d8
mov eax, 0x225c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4229d8
mov eax, 0x725c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4229d8
mov eax, 0x745c
add ecx, 2
mov word [ecx - 2], ax
jmp 0x4229d8
movzx esi, si
mov dword [esp], 0x43f0c4
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf.constprop.0
mov edi, eax
jmp 0x422a54
cmp dword [ebx + 0x5c], 0x1000
jne 0x422450
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x422ca2
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._dbg_get_thread
test eax, eax
je 0x422cb6
mov eax, dword [ebx + 0xa0]
lea ecx, [ebp - 0x338]
lea esi, [ebp - 0x20c]
mov edx, dword [eax + 0x10]
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 9
mov dword [esp + 8], esi
mov ecx, dword [ebx + 0x60]
mov dword [esp + 4], ecx
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [edx + 4]
test eax, eax
je 0x422410
cmp dword [ebp - 0x338], 9
jne 0x422410
mov ebx, dword [ebx + 0x64]
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Thread_ID_04lx_renamed_to___.9s__n
mov dword [esp], eax
call sym._fprintf
mov eax, 1
jmp 0x422415
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x40]
mov dword [esp + 0xc], str._08lx:_08lx:_exception_code0x_08lx_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.handle_debug_event
mov dword [esp + 4], 0x439138
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_3
jmp 0x42242d
mov byte [ecx], al
inc ecx
jmp 0x4229d8
mov eax, 0x2222
lea ecx, [ebp - 0x337]
mov word [ebp - 0x338], ax
lea eax, [ecx + 1]
jmp 0x422a41
mov eax, dword [ebx + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
call sym._dbg_get_thread
jmp 0x422bb3
test byte [0x439138], 2
je 0x422410
mov eax, dword [ebx + 0x64]
mov dword [esp + 0xc], str.Cannot_set_name_of_thread__04lx_n
mov dword [esp + 8], str.handle_exception
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x439138
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0_3
mov eax, 1
jmp 0x422415
mov edi, edx
lea ecx, [ebp - 0x337]
jmp 0x422a26