Function at 0x4078c0
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 0x407ce0
ja 0x407930
mov edx, eax
and edx, 0xfffffffb
cmp edx, 0x504028
je 0x407960
test eax, eax
jne 0x407937
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x407920
mov ebx, dword [edi + 0x24]
test ebx, ebx
jne 0x407920
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 0x407960
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 0x407920
jmp 0x4078fc
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 0x407b69
mov dword [ebp - 0x3c], edi
mov edi, esi
jmp 0x4079d1
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 0x407ef8
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x3c]
cmp edx, 0x103
je 0x408050
mov ebx, dword [eax + 0x1c]
lea esi, [esi]
inc edi
cmp ebx, edi
jbe 0x407b60
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + 0x18]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
cmp edx, 0x103
jne 0x407ff0
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 0x4079c8
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x4079c8
test byte [0x413024], 8
jne 0x407d00
mov esi, dword [ebp - 0x3c]
movzx ecx, word [ebp - 0x1e]
mov eax, dword [esi + 4]
mov dword [ebp - 0x40], eax
test al, 2
je 0x407990
mov eax, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x407a70
lea edx, [ecx - 1]
cmp dx, 0x1e
ja 0x407a70
bt eax, ecx
movzx edx, cx
jb 0x4080e6
cmp cx, 0xa
jne 0x407a70
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x1c]
jmp 0x4079c8
mov eax, dword [ebp - 0x3c]
mov edx, 0x4164a0
mov dword [ebp - 0x44], edi
mov eax, dword [eax + 0x9c]
test eax, eax
mov eax, 0x416280
cmovne edx, eax
and ebx, 0xfffffe1f
xor esi, esi
mov eax, 0x416480
mov dword [ebp - 0x48], ebx
movzx ebx, word [ebp - 0x22]
mov edi, dword [ebp - 0x48]
lea esi, [esi]
cmp esi, edi
jne 0x407ae0
cmp dword [edx + 4], 0
mov esi, dword [eax + 4]
jne 0x407af8
test esi, esi
jne 0x407aca
jmp 0x407ae0
mov esi, dword [eax + 0xc]
add eax, 8
test esi, esi
je 0x407ae0
cmp word [eax], bx
jne 0x407ac0
mov eax, dword [eax + 4]
test eax, eax
jne 0x407b16
lea esi, [esi]
lea esi, [esi]
mov eax, dword [edx + 0x14]
add edx, 0xc
test eax, eax
je 0x407d48
mov esi, dword [edx]
jmp 0x407aa8
test esi, esi
jne 0x407b0a
jmp 0x407ae0
mov esi, dword [eax + 0xc]
add eax, 8
test esi, esi
je 0x407ae0
cmp word [eax], cx
jne 0x407b00
mov eax, dword [eax + 4]
test eax, eax
je 0x407ae0
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 0x4079af
mov ebx, dword [eax + 0x1c]
inc edi
mov edx, dword [eax + 0x3c]
cmp ebx, edi
ja 0x4079d1
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 0x408028
test al, 4
jne 0x407d9c
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test edx, edx
jne 0x407c90
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test al, 2
je 0x407c90
cmp word [ebp - 0x2e], 0x1f
jbe 0x40812c
mov esi, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
test esi, esi
jne 0x4082d2
lea eax, [esi + 2]
cmp eax, dword [edi + 0x48]
jb 0x407bec
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 0x4084cb
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 [0x413024], 8
je 0x407c90
mov esi, dword [edi + 0x40]
test esi, esi
je 0x408493
mov eax, esi
shr eax, 0x10
je 0x4083f4
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, 0x415068
test edx, edx
jne 0x407c68
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], 0x413024
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 0x407d80
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 0x407920
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], 0x413024
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x407a21
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 0x407ef8
mov eax, ebx
jmp 0x407b49
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 0x407cb7
test edx, edx
jne 0x407dae
cmp word [ebp - 0x2e], 0x20
mov dword [ebp - 0x44], 1
je 0x407db5
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 0x407f27
test byte [0x413024], 8
jne 0x40824a
mov esi, dword [ebx]
mov ecx, dword [esi + 0x10c8]
test ecx, ecx
je 0x407e21
mov edx, dword [esi + 0xb4]
test edx, edx
je 0x407e17
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 0x4083c8
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 0x407e38
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 0x40849d
lea ecx, [edi + 0x78]
mov dword [ebp - 0x3c], ecx
mov ecx, eax
jmp 0x407eb8
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 0x407f0d
mov ecx, dword [ebx + 0x20]
mov edx, esi
cmp dword [ebx + 0x10], ecx
ja 0x407ec6
mov eax, dword [edi + 0x78]
test eax, eax
je 0x407f0d
cmp dword [edi + 0x44], esi
jbe 0x408189
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 0x407e80
mov eax, ebx
call sym._write_char
inc dword [ebp - 0x40]
jmp 0x407ead
mov eax, dword [ebp - 0x3c]
mov ecx, 1
lea edx, [ebp - 0x1e]
call sym._edit_line_insert.part.0
jmp 0x407b3c
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 0x408195
mov esi, dword [ebx + 0x10]
mov eax, dword [ebp - 0x44]
mov edx, dword [edi + 0x40]
test eax, eax
je 0x408087
mov eax, dword [edi + 0x44]
test eax, eax
je 0x407f56
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 0x407f48
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 0x40823b
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x24]
jg 0x407fa3
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x20]
jg 0x407fa3
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4083bc
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 0x40810a
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 0x407920
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test edx, edx
jne 0x407c90
jmp 0x407b91
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 0x407b7b
mov edx, eax
and edx, 4
test al, 2
jne 0x40807a
mov ebx, dword [edi + 0x44]
test ebx, ebx
je 0x40807a
mov dword [edi + 0x3c], 0
test edx, edx
jne 0x407da0
jmp 0x407b94
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 0x34], 0x50402c
mov ecx, dword [eax + 0x44]
je 0x4081e0
mov ebx, dword [ebp - 0x3c]
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x40], eax
shr eax, 1
cmp eax, ecx
jbe 0x4080d2
mov ebx, dword [ebx + 0x1c]
jmp 0x4079c8
test edx, edx
jne 0x407dae
jmp 0x407920
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x4080a6
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 0x408098
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 0x40811c
mov eax, dword [edi + 0x74]
xor edx, edx
add eax, ecx
div dword [ebp - 0x3c]
mov dword [ebx + 0x1c], edx
jmp 0x407f77
mov eax, dword [ebp - 0x3c]
xor edx, edx
mov dword [eax + 0x3c], 0
mov ebx, dword [eax + 0x1c]
jmp 0x4079c8
mov esi, dword [ebp - 0x3c]
mov word [ebp - 0x2e], cx
mov dword [esi + 0x3c], 0
test byte [0x413024], 8
jne 0x408149
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x3c]
xor edx, edx
jmp 0x4079c1
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx]
call sym._set_tty_cursor_relative
jmp 0x407fae
mov eax, dword [ebp - 0x3c]
dec esi
mov dword [ebx + 0x20], esi
dec eax
mov dword [ebx + 0x1c], eax
jmp 0x407f77
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 0x407c1c
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], 0x413024
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 0x4079c8
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 0x407f24
mov dword [ebp - 0x48], edi
mov esi, ebx
mov edi, dword [ebp - 0x40]
mov ebx, eax
jmp 0x4081cc
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 0x4082c8
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x20], edx
jb 0x4081b0
mov ebx, esi
mov edi, dword [ebp - 0x48]
mov esi, edx
jmp 0x407f27
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 0x4080d2
mov edx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x1c]
jmp 0x4079c8
lea edx, [ebp - 0x2c]
mov eax, ebx
call sym._new_line
jmp 0x407f77
mov ecx, dword [edi + 0x40]
lea esi, [ecx + eax*2]
test esi, esi
je 0x408479
mov ecx, esi
shr ecx, 0x10
je 0x4083d4
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 0x408483
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], 0x413024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x407df0
mov edi, dword [ebp - 0x48]
mov ebx, esi
jmp 0x407f24
mov eax, dword [edi + 0x90]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x407bbb
lea eax, [esi + esi]
mov dword [ebp - 0x3c], eax
mov eax, dword [edi + 0x98]
test eax, eax
je 0x408316
mov ecx, dword [edi + 0x94]
test ecx, ecx
je 0x40840c
mov eax, dword [edi + 0x8c]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax]
je 0x4084a5
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 0x40846e
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 0x408453
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 0x407bbb
mov eax, dword [ebx]
call sym._set_tty_cursor_relative
jmp 0x407f92
mov dword [ebp - 0x40], 0
jmp 0x407e49
movzx esi, si
mov dword [esp], 0x415072
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf
mov edx, dword [edi + 0x6c]
mov ecx, eax
mov eax, dword [edi + 0x68]
jmp 0x408293
movzx esi, si
mov dword [esp], 0x415072
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf
jmp 0x407c68
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 0x407bbb
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 0x407bbb
mov ecx, str._null_
jmp 0x408293
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
mov ecx, 0x415068
jmp 0x408293
mov eax, str._null_
jmp 0x407c68
mov eax, dword [edi + 0x44]
jmp 0x407f13
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 0x408316
jmp 0x407bbb
mov dword [edi + 0x3c], 0xc0000017
jmp 0x407c1c