Function at 0x404370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov edx, 0x20
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x6c
mov eax, dword [eax + 0x34]
mov word [ebp - 0x2e], dx
cmp eax, 0x504030
je 0x404790
ja 0x4043e0
mov edx, eax
and edx, 0xfffffffb
cmp edx, 0x504028
je 0x404410
test eax, eax
jne 0x4043e7
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4043d0
mov ebx, dword [edi + 0x24]
test ebx, ebx
jne 0x4043d0
mov dword [esp], 0
xor ecx, ecx
mov edx, 0x103
mov eax, edi
mov dword [esp + 4], 1
call sym._read_complete
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x504060
je 0x404410
mov dword [esp + 8], 0x4fe
mov dword [esp + 4], str..._src_wine_programs_conhost_conhost.c
mov dword [esp], str._console__read_ioctl
call dword [sym.imp.ucrtbase.dll__assert]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x4043d0
jmp 0x4043ac
mov eax, dword [edi + 0x44]
mov edx, dword [edi + 0x3c]
mov dword [edi + 0x6c], 0
xor esi, esi
mov dword [ebp - 0x4c], 0
inc eax
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x1c]
mov ebx, eax
test eax, eax
je 0x404619
mov dword [ebp - 0x3c], edi
mov edi, esi
jmp 0x404481
and eax, 0xa0
cmp eax, 0xa0
sete al
movzx eax, al
xor eax, dword [esi + 0x60]
mov dword [esi + 0x64], eax
test cx, cx
jne 0x4049a8
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x3c]
cmp edx, 0x103
je 0x404b00
mov ebx, dword [eax + 0x1c]
lea esi, [esi]
inc edi
cmp ebx, edi
jbe 0x404610
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x18]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
cmp edx, 0x103
jne 0x404aa0
mov ecx, dword [eax]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [eax + 4]
cmp word [ebp - 0x2c], 1
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x1c], eax
jne 0x404478
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x404478
test byte [0x413058], 8
jne 0x4047b0
mov esi, dword [ebp - 0x3c]
movzx ecx, word [ebp - 0x1e]
mov eax, dword [esi + 4]
mov dword [ebp - 0x40], eax
test al, 2
je 0x404440
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x404520
lea edx, [ecx - 1]
cmp dx, 0x1e
ja 0x404520
bt eax, ecx
movzx edx, cx
jb 0x404b96
cmp cx, 0xa
jne 0x404520
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x1c]
jmp 0x404478
mov eax, dword [ebp - 0x3c]
mov edx, 0x414900
mov dword [ebp - 0x44], edi
mov eax, dword [eax + 0x9c]
test eax, eax
mov eax, 0x414a00
cmovne edx, eax
and ebx, 0xfffffe1f
xor esi, esi
mov eax, 0x414ba0
mov dword [ebp - 0x48], ebx
movzx ebx, word [ebp - 0x22]
mov edi, dword [ebp - 0x48]
lea esi, [esi]
cmp esi, edi
jne 0x404590
cmp dword [edx + 4], 0
mov esi, dword [eax + 4]
jne 0x4045a8
test esi, esi
jne 0x40457a
jmp 0x404590
mov esi, dword [eax + 0xc]
add eax, 8
test esi, esi
je 0x404590
cmp word [eax], bx
jne 0x404570
mov eax, dword [eax + 4]
test eax, eax
jne 0x4045c6
lea esi, [esi]
lea esi, [esi]
mov eax, dword [edx + 0x14]
add edx, 0xc
test eax, eax
je 0x4047f8
mov esi, dword [edx]
jmp 0x404558
test esi, esi
jne 0x4045ba
jmp 0x404590
mov esi, dword [eax + 0xc]
add eax, 8
test esi, esi
je 0x404590
cmp word [eax], cx
jne 0x4045b0
mov eax, dword [eax + 4]
test eax, eax
je 0x404590
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
and edx, 0xa0
cmp edx, 0xa0
sete dl
movzx edx, dl
xor edx, dword [esi + 0x60]
mov dword [esi + 0x64], edx
mov dword [esp], esi
call eax
mov eax, dword [ebp - 0x3c]
test byte [eax + 4], 2
je 0x40445f
mov ebx, dword [eax + 0x1c]
inc edi
mov edx, dword [eax + 0x3c]
cmp ebx, edi
ja 0x404481
lea esi, [esi]
nop
mov esi, edi
mov eax, ebx
mov edi, dword [ebp - 0x3c]
sub eax, esi
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 4]
cmp edx, 0x103
je 0x404ad8
test al, 4
jne 0x40484c
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test edx, edx
jne 0x404740
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test al, 2
je 0x404740
cmp word [ebp - 0x2e], 0x1f
jbe 0x404bdc
mov esi, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
test esi, esi
jne 0x404d82
lea eax, [esi + 2]
cmp eax, dword [edi + 0x48]
jb 0x40469c
add esi, 0x22
mov dword [esp], edx
and esi, 0xffffffe0
lea eax, [esi + esi]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, eax
test eax, eax
je 0x404f7b
mov dword [edi + 0x40], eax
mov dword [edi + 0x48], esi
mov esi, dword [edi + 0x44]
lea eax, [esi + 1]
mov dword [edi + 0x44], eax
mov eax, 0xd
mov word [edx + esi*2], ax
mov eax, dword [edi + 0x44]
xor esi, esi
mov edx, dword [edi + 0x40]
lea ecx, [eax + 1]
mov dword [edi + 0x44], ecx
mov ecx, 0xa
mov word [edx + eax*2], cx
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x40]
mov word [eax + edx*2], si
test byte [0x413058], 8
je 0x404740
mov esi, dword [edi + 0x40]
test esi, esi
je 0x404f43
mov eax, esi
shr eax, 0x10
je 0x404ea4
mov ecx, dword [edi + 0x44]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x414068
test edx, edx
jne 0x404718
mov ecx, dword [ebp - 0x3c]
mov eax, esi
mov edx, ecx
call sym._wine_dbgstr_wn.part.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.return__s_n
mov dword [esp + 8], str.process_console_input
mov dword [esp + 4], 0x413058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [edi + 0x40]
mov edx, dword [edi + 0x3c]
mov dword [edi + 0x28], eax
mov eax, dword [edi + 0x44]
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x48]
mov dword [edi + 0x30], eax
test edx, edx
jne 0x404830
mov edx, dword [edi + 0x38]
mov eax, edi
call sym._read_from_buffer
mov eax, dword [edi + 0x50]
mov dword [esp], eax
call ebx
mov eax, dword [edi + 0x5c]
mov dword [esp], eax
call ebx
lea edx, [edi + 0x3c]
xor eax, eax
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4043d0
mov edx, dword [edi + 0x38]
mov eax, edi
call sym._read_console_input
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], eax
movzx eax, word [ebp - 0x1e]
mov dword [esp + 0xc], str.key_code_02x_scan_02x_char_02x_state_08lx_n
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0x20]
mov dword [esp + 8], str.process_console_input
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x22]
mov dword [esp + 4], 0x413058
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4044d1
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x44]
and eax, 0xa0
cmp eax, 0xa0
sete al
movzx eax, al
xor eax, dword [ebx + 0x60]
mov dword [ebx + 0x64], eax
test cx, cx
jne 0x4049a8
mov eax, ebx
jmp 0x4045f9
mov eax, dword [edi + 0x1c]
mov dword [esp], 0
xor ecx, ecx
mov dword [esp + 4], eax
mov eax, edi
call sym._read_complete
jmp 0x404767
test edx, edx
jne 0x40485e
cmp word [ebp - 0x2e], 0x20
mov dword [ebp - 0x44], 1
je 0x404865
mov dword [ebp - 0x44], 0
mov ebx, dword [edi + 8]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x28], edx
mov edx, dword [edi + 0x6c]
mov dword [ebp - 0x20], 0
cmp edx, eax
jb 0x4049d7
test byte [0x413058], 8
jne 0x404cfa
mov esi, dword [ebx]
mov ecx, dword [esi + 0x10c8]
test ecx, ecx
je 0x4048d1
mov edx, dword [esi + 0xb4]
test edx, edx
je 0x4048c7
mov ecx, 6
mov edx, str.e__25l
mov eax, esi
call sym._tty_write.part.0
mov dword [esi + 0x10c8], 0
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x40]
test ecx, ecx
je 0x404e78
lea edx, [eax + ecx*2]
xor ecx, ecx
lea esi, [esi]
cmp word [eax], 0x20
adc ecx, 1
add eax, 2
cmp edx, eax
jne 0x4048e8
mov dword [ebp - 0x40], ecx
mov eax, dword [edi + 0x74]
mov esi, dword [ebx + 0xc]
xor edx, edx
add eax, ecx
div esi
mov dword [ebx + 0x1c], edx
mov eax, dword [edi + 0x74]
xor edx, edx
add eax, ecx
div esi
add eax, dword [edi + 0x78]
mov dword [ebx + 0x20], eax
mov esi, dword [edi + 0x68]
mov edx, esi
cmp esi, dword [edi + 0x6c]
ja 0x404f4d
lea ecx, [edi + 0x78]
mov dword [ebp - 0x3c], ecx
mov ecx, eax
jmp 0x404968
mov edx, 0x5e
mov eax, ebx
call sym._write_char
mov edx, dword [edi + 0x40]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
movzx edx, word [edx + esi*2]
mov dword [esp], eax
mov eax, ebx
add edx, 0x40
movzx edx, dx
call sym._write_char
add dword [ebp - 0x40], 2
inc esi
mov edx, esi
cmp dword [edi + 0x6c], esi
jb 0x4049bd
mov ecx, dword [ebx + 0x20]
mov edx, esi
cmp dword [ebx + 0x10], ecx
ja 0x404976
mov eax, dword [edi + 0x78]
test eax, eax
je 0x4049bd
cmp dword [edi + 0x44], esi
jbe 0x404c39
mov edx, dword [edi + 0x40]
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
movzx edx, word [edx + esi*2]
mov dword [esp], eax
cmp dx, 0x1f
jbe 0x404930
mov eax, ebx
call sym._write_char
inc dword [ebp - 0x40]
jmp 0x40495d
mov eax, dword [ebp - 0x3c]
mov ecx, 1
lea edx, [ebp - 0x1e]
call sym._edit_line_insert.part.0
jmp 0x4045ec
mov ecx, dword [ebp - 0x40]
mov eax, dword [edi + 0x44]
mov esi, dword [edi + 0x70]
mov dword [edi + 0x70], ecx
mov dword [ebp - 0x3c], esi
cmp edx, eax
jae 0x404c45
mov esi, dword [ebx + 0x10]
mov eax, dword [ebp - 0x44]
mov edx, dword [edi + 0x40]
test eax, eax
je 0x404b37
mov eax, dword [edi + 0x44]
test eax, eax
je 0x404a06
lea ecx, [edx + eax*2]
xor eax, eax
lea esi, [esi]
cmp word [edx], 0x20
adc eax, 1
add edx, 2
cmp ecx, edx
jne 0x4049f8
mov dword [ebx + 0x1c], 0
xor edx, edx
add eax, dword [edi + 0x74]
div dword [ebx + 0xc]
mov edx, dword [edi + 0x78]
lea eax, [eax + edx + 1]
mov dword [ebx + 0x20], eax
cmp eax, esi
jae 0x404ceb
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x24]
jg 0x404a53
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x20]
jg 0x404a53
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x404e6c
mov eax, ebx
lea edx, [ebp - 0x2c]
call sym._update_output
mov eax, ebx
call sym._scroll_to_cursor
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x404bba
mov eax, dword [ebx]
call sym._tty_sync
mov dword [esp + 4], 1
mov eax, dword [ebx]
mov dword [esp], eax
call sym._update_window_config
mov edx, dword [edi + 0x3c]
cmp edx, 0x103
je 0x4043d0
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test edx, edx
jne 0x404740
jmp 0x404641
mov esi, edi
mov edi, dword [ebp - 0x3c]
mov dword [esp + 4], eax
sub ebx, esi
mov dword [esp], ecx
lea edx, [ebx + ebx*4]
shl edx, 2
mov dword [esp + 8], edx
call dword [sym.imp.ucrtbase.dll_memmove]
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x3c]
sub eax, esi
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 4]
cmp edx, 0x103
jne 0x40462b
mov edx, eax
and edx, 4
test al, 2
jne 0x404b2a
mov ebx, dword [edi + 0x44]
test ebx, ebx
je 0x404b2a
mov dword [edi + 0x3c], 0
test edx, edx
jne 0x404850
jmp 0x404644
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x34], 0x50402c
mov ecx, dword [eax + 0x44]
je 0x404c90
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x40], eax
shr eax, 1
cmp eax, ecx
jbe 0x404b82
mov ebx, dword [ebx + 0x1c]
jmp 0x404478
test edx, edx
jne 0x40485e
jmp 0x4043d0
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x404b56
lea eax, [edx + ecx*2]
xor ecx, ecx
lea esi, [esi]
nop
cmp word [edx], 0x20
adc ecx, 1
add edx, 2
cmp eax, edx
jne 0x404b48
mov edx, dword [ebx + 0xc]
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x3c], edx
add eax, ecx
xor edx, edx
div dword [ebp - 0x3c]
add eax, dword [edi + 0x78]
mov dword [ebx + 0x20], eax
cmp eax, esi
jae 0x404bcc
mov eax, dword [edi + 0x74]
xor edx, edx
add eax, ecx
div dword [ebp - 0x3c]
mov dword [ebx + 0x1c], edx
jmp 0x404a27
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [eax + 0x3c], 0
mov ebx, dword [eax + 0x1c]
jmp 0x404478
mov esi, dword [ebp - 0x3c]
mov word [ebp - 0x2e], cx
mov dword [esi + 0x3c], 0
test byte [0x413058], 8
jne 0x404bf9
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x3c]
xor edx, edx
jmp 0x404471
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx]
call sym._set_tty_cursor_relative
jmp 0x404a5e
mov eax, dword [ebp - 0x3c]
dec esi
mov dword [ebx + 0x20], esi
dec eax
mov dword [ebx + 0x1c], eax
jmp 0x404a27
mov eax, edi
mov ecx, 1
lea edx, [ebp - 0x2e]
call sym._edit_line_insert.part.0
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0x80], eax
jmp 0x4046cc
add edx, 0x40
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Found_ctrl_char_in_mask:__lc__x_n
mov dword [esp + 8], str.process_console_input
mov dword [esp + 4], 0x413058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ebx
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x1c]
jmp 0x404478
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov dword [edi + 0x70], eax
mov esi, dword [ebp - 0x40]
lea eax, [edi + 0x78]
cmp dword [ebp - 0x3c], esi
jle 0x4049d4
mov dword [ebp - 0x48], edi
mov esi, ebx
mov edi, dword [ebp - 0x40]
mov ebx, eax
jmp 0x404c7c
mov dword [esp], ebx
lea ecx, [ebp - 0x2c]
mov edx, 0x20
mov eax, esi
inc edi
call sym._write_char
cmp dword [ebp - 0x3c], edi
je 0x404d78
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x20], edx
jb 0x404c60
mov ebx, esi
mov edi, dword [ebp - 0x48]
mov esi, edx
jmp 0x4049d7
mov dword [esp + 0x1c], 0
mov ebx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov eax, dword [eax + 0x40]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebx + 0xa0]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
cmp eax, dword [ebx + 0x38]
jae 0x404b82
mov edx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x1c]
jmp 0x404478
lea edx, [ebp - 0x2c]
mov eax, ebx
call sym._new_line
jmp 0x404a27
mov ecx, dword [edi + 0x40]
lea esi, [ecx + eax*2]
test esi, esi
je 0x404f29
mov ecx, esi
shr ecx, 0x10
je 0x404e84
inc edx
mov dword [esp], esi
sub edx, eax
mov dword [esp + 4], edx
mov dword [ebp - 0x3c], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x3c]
sub esp, 8
test eax, eax
jne 0x404f33
mov eax, esi
call sym._wine_dbgstr_wn.part.0
mov edx, dword [edi + 0x6c]
mov ecx, eax
mov eax, dword [edi + 0x68]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.update__d__d__s_n
mov dword [esp + 8], str.update_read_output
mov dword [esp + 4], 0x413058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4048a0
mov edi, dword [ebp - 0x48]
mov ebx, esi
jmp 0x4049d4
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40466b
lea eax, [esi + esi]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x98]
test eax, eax
je 0x404dc6
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x404ebc
mov eax, dword [edi + 0x8c]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax]
je 0x404f55
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edx
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x4c]
test eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
je 0x404f1e
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x3c]
add eax, 4
mov dword [eax - 4], ebx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [edi + 0x94]
cmp dword [ebp - 0x48], ecx
ja 0x404f03
mov eax, dword [edi + 0x8c]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [eax]
mov dword [esp], eax
call ebx
mov ecx, dword [edi + 0x90]
mov eax, dword [edi + 0x8c]
lea ecx, [ecx*4 - 4]
mov dword [esp], eax
mov dword [esp + 8], ecx
lea ecx, [eax + 4]
mov dword [esp + 4], ecx
call dword [sym.imp.ucrtbase.dll_memmove]
mov esi, dword [ebp - 0x44]
mov ecx, dword [edi + 0x90]
mov eax, dword [edi + 0x8c]
mov dword [eax + ecx*4 - 4], esi
mov esi, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
jmp 0x40466b
mov eax, dword [ebx]
call sym._set_tty_cursor_relative
jmp 0x404a42
mov dword [ebp - 0x40], 0
jmp 0x4048f9
movzx esi, si
mov dword [esp], 0x414072
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf
mov edx, dword [edi + 0x6c]
mov ecx, eax
mov eax, dword [edi + 0x68]
jmp 0x404d43
movzx esi, si
mov dword [esp], 0x414072
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf
jmp 0x404718
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], ecx
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x48]
test eax, eax
mov dword [ebp - 0x40], eax
je 0x40466b
mov eax, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], ecx
mov dword [eax], ebx
add eax, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._memcpy
mov ecx, dword [ebp - 0x44]
mov eax, dword [edi + 0x8c]
mov ebx, dword [ebp - 0x40]
lea edx, [ecx + 1]
mov dword [edi + 0x94], edx
mov dword [eax + ecx*4], ebx
mov esi, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
jmp 0x40466b
mov ecx, str._null_
jmp 0x404d43
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
mov ecx, 0x414068
jmp 0x404d43
mov eax, str._null_
jmp 0x404718
mov eax, dword [edi + 0x44]
jmp 0x4049c3
add eax, 4
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [ebp - 0x40], edx
call sym._memcmp
mov edx, dword [ebp - 0x40]
test eax, eax
jne 0x404dc6
jmp 0x40466b
mov dword [edi + 0x3c], 0xc0000017
jmp 0x4046cc