Function at 0x407700
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, 0x4c
mov eax, dword [eax + 0x34]
mov word [ebp - 0x22], dx
cmp eax, 0x504030
je 0x407b20
ja 0x407770
mov edx, eax
and edx, 0xfffffffb
cmp edx, 0x504028
je 0x407798
test eax, eax
jne 0x407777
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x407760
mov ebx, dword [edi + 0x24]
test ebx, ebx
jne 0x407760
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 0x407798
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]
lea esi, [esi]
mov eax, dword [edi + 0x44]
mov edx, dword [edi + 0x3c]
mov dword [edi + 0x6c], 0
xor esi, esi
mov dword [ebp - 0x38], 0
inc eax
mov dword [edi + 0x68], eax
mov eax, dword [edi + 0x1c]
mov ebx, eax
test eax, eax
je 0x4079a9
mov dword [ebp - 0x28], edi
mov edi, esi
jmp 0x407811
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 0x407d38
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x3c]
cmp edx, 0x103
je 0x407e90
mov ebx, dword [eax + 0x1c]
lea esi, [esi]
inc edi
cmp ebx, edi
jbe 0x4079a0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x18]
lea eax, [edi + edi*4]
lea eax, [ecx + eax*4]
cmp edx, 0x103
jne 0x407e30
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 4]
cmp word [ebp - 0x20], 1
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x10], eax
jne 0x407808
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x407808
test byte [0x413024], 8
jne 0x407b40
mov esi, dword [ebp - 0x28]
movzx ecx, word [ebp - 0x12]
mov eax, dword [esi + 4]
mov dword [ebp - 0x2c], eax
test al, 2
je 0x4077d0
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x10]
mov eax, dword [eax + 0x7c]
test eax, eax
je 0x4078b0
lea edx, [ecx - 1]
cmp dx, 0x1e
ja 0x4078b0
bt eax, ecx
movzx edx, cx
jb 0x407f26
cmp cx, 0xa
jne 0x4078b0
mov eax, dword [ebp - 0x28]
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x1c]
jmp 0x407808
mov eax, dword [ebp - 0x28]
mov edx, 0x416500
mov dword [ebp - 0x30], edi
mov eax, dword [eax + 0xa0]
test eax, eax
mov eax, 0x4162e0
cmovne edx, eax
and ebx, 0xfffffe1f
xor esi, esi
mov eax, 0x4164e0
mov dword [ebp - 0x34], ebx
movzx ebx, word [ebp - 0x16]
mov edi, dword [ebp - 0x34]
lea esi, [esi]
cmp esi, edi
jne 0x407920
cmp dword [edx + 4], 0
mov esi, dword [eax + 4]
jne 0x407938
test esi, esi
jne 0x40790a
jmp 0x407920
mov esi, dword [eax + 0xc]
add eax, 8
test esi, esi
je 0x407920
cmp word [eax], bx
jne 0x407900
mov eax, dword [eax + 4]
test eax, eax
jne 0x407956
lea esi, [esi]
lea esi, [esi]
mov eax, dword [edx + 0x14]
add edx, 0xc
test eax, eax
je 0x407b88
mov esi, dword [edx]
jmp 0x4078e8
test esi, esi
jne 0x40794a
jmp 0x407920
mov esi, dword [eax + 0xc]
add eax, 8
test esi, esi
je 0x407920
cmp word [eax], cx
jne 0x407940
mov eax, dword [eax + 4]
test eax, eax
je 0x407920
mov edx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
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 - 0x28]
test byte [eax + 4], 2
je 0x4077ef
mov ebx, dword [eax + 0x1c]
inc edi
mov edx, dword [eax + 0x3c]
cmp ebx, edi
ja 0x407811
lea esi, [esi]
nop
mov esi, edi
mov eax, ebx
mov edi, dword [ebp - 0x28]
sub eax, esi
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 4]
cmp edx, 0x103
je 0x407e68
test al, 4
jne 0x407bdc
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test edx, edx
jne 0x407ad0
mov eax, dword [edi + 4]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test al, 2
je 0x407ad0
cmp word [ebp - 0x22], 0x1f
jbe 0x407f6c
mov esi, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
test esi, esi
jne 0x408112
lea eax, [esi + 2]
cmp eax, dword [edi + 0x48]
jb 0x407a2c
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 0x40830b
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 0x407ad0
mov esi, dword [edi + 0x40]
test esi, esi
je 0x4082d3
mov eax, esi
shr eax, 0x10
je 0x408234
mov ecx, dword [edi + 0x44]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [ebp - 0x28], ecx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, 0x415068
test edx, edx
jne 0x407aa8
mov ecx, dword [ebp - 0x28]
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 0x407bc0
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 0x407760
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 - 0x12]
mov dword [esp + 0xc], str.key_code_02x_scan_02x_char_02x_state_08lx_n
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0x14]
mov dword [esp + 8], str.process_console_input
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x16]
mov dword [esp + 4], 0x413024
mov dword [esp + 0x10], eax
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x407861
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x30]
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 0x407d38
mov eax, ebx
jmp 0x407989
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 0x407af7
test edx, edx
jne 0x407bee
cmp word [ebp - 0x22], 0x20
mov dword [ebp - 0x30], 1
je 0x407bf5
mov dword [ebp - 0x30], 0
mov ebx, dword [edi + 8]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x68]
mov dword [ebp - 0x1c], edx
mov edx, dword [edi + 0x6c]
mov dword [ebp - 0x14], 0
cmp edx, eax
jb 0x407d67
test byte [0x413024], 8
jne 0x40808a
mov esi, dword [ebx]
mov ecx, dword [esi + 0x10cc]
test ecx, ecx
je 0x407c61
mov edx, dword [esi + 0xb8]
test edx, edx
je 0x407c57
mov ecx, 6
mov edx, str.e__25l
mov eax, esi
call sym._tty_write.part.0
mov dword [esi + 0x10cc], 0
mov ecx, dword [edi + 0x68]
mov eax, dword [edi + 0x40]
test ecx, ecx
je 0x408208
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 0x407c78
mov dword [ebp - 0x2c], 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 0x4082dd
lea ecx, [edi + 0x78]
mov dword [ebp - 0x28], ecx
mov ecx, eax
jmp 0x407cf8
mov edx, 0x5e
mov eax, ebx
call sym._write_char
mov edx, dword [edi + 0x40]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
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 - 0x2c], 2
inc esi
mov edx, esi
cmp dword [edi + 0x6c], esi
jb 0x407d4d
mov ecx, dword [ebx + 0x20]
mov edx, esi
cmp dword [ebx + 0x10], ecx
ja 0x407d06
mov eax, dword [edi + 0x78]
test eax, eax
je 0x407d4d
cmp dword [edi + 0x44], esi
jbe 0x407fc9
mov edx, dword [edi + 0x40]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
movzx edx, word [edx + esi*2]
mov dword [esp], eax
cmp dx, 0x1f
jbe 0x407cc0
mov eax, ebx
call sym._write_char
inc dword [ebp - 0x2c]
jmp 0x407ced
mov eax, dword [ebp - 0x28]
mov ecx, 1
lea edx, [ebp - 0x12]
call sym._edit_line_insert.part.0
jmp 0x40797c
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x44]
mov esi, dword [edi + 0x70]
mov dword [edi + 0x70], ecx
mov dword [ebp - 0x28], esi
cmp edx, eax
jae 0x407fd5
mov esi, dword [ebx + 0x10]
mov eax, dword [ebp - 0x30]
mov edx, dword [edi + 0x40]
test eax, eax
je 0x407ec7
mov eax, dword [edi + 0x44]
test eax, eax
je 0x407d96
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 0x407d88
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 0x40807b
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x18]
jg 0x407de3
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x14]
jg 0x407de3
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4081fc
mov eax, ebx
lea edx, [ebp - 0x20]
call sym._update_output
mov eax, ebx
call sym._scroll_to_cursor
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x407f4a
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 0x407760
mov ebx, dword [sym.imp.ucrtbase.dll_free]
test edx, edx
jne 0x407ad0
jmp 0x4079d1
mov esi, edi
mov edi, dword [ebp - 0x28]
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 0x4079bb
mov edx, eax
and edx, 4
test al, 2
jne 0x407eba
mov ebx, dword [edi + 0x44]
test ebx, ebx
je 0x407eba
mov dword [edi + 0x3c], 0
test edx, edx
jne 0x407be0
jmp 0x4079d4
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x34], 0x50402c
mov ecx, dword [eax + 0x44]
je 0x408020
mov ebx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x2c], eax
shr eax, 1
cmp eax, ecx
jbe 0x407f12
mov ebx, dword [ebx + 0x1c]
jmp 0x407808
test edx, edx
jne 0x407bee
jmp 0x407760
mov ecx, dword [edi + 0x4c]
test ecx, ecx
je 0x407ee6
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 0x407ed8
mov edx, dword [ebx + 0xc]
mov eax, dword [edi + 0x74]
mov dword [ebp - 0x28], edx
add eax, ecx
xor edx, edx
div dword [ebp - 0x28]
add eax, dword [edi + 0x78]
mov dword [ebx + 0x20], eax
cmp eax, esi
jae 0x407f5c
mov eax, dword [edi + 0x74]
xor edx, edx
add eax, ecx
div dword [ebp - 0x28]
mov dword [ebx + 0x1c], edx
jmp 0x407db7
mov eax, dword [ebp - 0x28]
xor edx, edx
mov dword [eax + 0x3c], 0
mov ebx, dword [eax + 0x1c]
jmp 0x407808
mov esi, dword [ebp - 0x28]
mov word [ebp - 0x22], cx
mov dword [esi + 0x3c], 0
test byte [0x413024], 8
jne 0x407f89
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x28]
xor edx, edx
jmp 0x407801
mov ecx, dword [ebx + 0x20]
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx]
call sym._set_tty_cursor_relative
jmp 0x407dee
mov eax, dword [ebp - 0x28]
dec esi
mov dword [ebx + 0x20], esi
dec eax
mov dword [ebx + 0x1c], eax
jmp 0x407db7
mov eax, edi
mov ecx, 1
lea edx, [ebp - 0x22]
call sym._edit_line_insert.part.0
mov eax, dword [ebp - 0x38]
mov dword [edi + 0x80], eax
jmp 0x407a5c
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 - 0x28]
mov dword [ebp - 0x38], ebx
mov edx, dword [eax + 0x3c]
mov ebx, dword [eax + 0x1c]
jmp 0x407808
mov eax, dword [edi + 0x70]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [edi + 0x70], eax
mov esi, dword [ebp - 0x2c]
lea eax, [edi + 0x78]
cmp dword [ebp - 0x28], esi
jle 0x407d64
mov dword [ebp - 0x34], edi
mov esi, ebx
mov edi, dword [ebp - 0x2c]
mov ebx, eax
jmp 0x40800c
mov dword [esp], ebx
lea ecx, [ebp - 0x20]
mov edx, 0x20
mov eax, esi
inc edi
call sym._write_char
cmp dword [ebp - 0x28], edi
je 0x408108
mov edx, dword [esi + 0x10]
cmp dword [esi + 0x20], edx
jb 0x407ff0
mov ebx, esi
mov edi, dword [ebp - 0x34]
mov esi, edx
jmp 0x407d67
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 + 0xa4]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub esp, 0x20
cmp eax, dword [ebx + 0x38]
jae 0x407f12
mov edx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x1c]
jmp 0x407808
lea edx, [ebp - 0x20]
mov eax, ebx
call sym._new_line
jmp 0x407db7
mov ecx, dword [edi + 0x40]
lea esi, [ecx + eax*2]
test esi, esi
je 0x4082b9
mov ecx, esi
shr ecx, 0x10
je 0x408214
inc edx
mov dword [esp], esi
sub edx, eax
mov dword [esp + 4], edx
mov dword [ebp - 0x28], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, dword [ebp - 0x28]
sub esp, 8
test eax, eax
jne 0x4082c3
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 0x407c30
mov edi, dword [ebp - 0x34]
mov ebx, esi
jmp 0x407d64
mov eax, dword [edi + 0x94]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4079fb
lea eax, [esi + esi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 0x9c]
test eax, eax
je 0x408156
mov ecx, dword [edi + 0x98]
test ecx, ecx
je 0x40824c
mov eax, dword [edi + 0x90]
mov eax, dword [eax + ecx*4 - 4]
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [eax]
je 0x4082e5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], edx
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edx, dword [ebp - 0x38]
test eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
je 0x4082ae
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x28]
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 + 0x98]
cmp dword [ebp - 0x34], ecx
ja 0x408293
mov eax, dword [edi + 0x90]
mov ebx, dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [eax]
mov dword [esp], eax
call ebx
mov ecx, dword [edi + 0x94]
mov eax, dword [edi + 0x90]
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 - 0x30]
mov ecx, dword [edi + 0x94]
mov eax, dword [edi + 0x90]
mov dword [eax + ecx*4 - 4], esi
mov esi, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
jmp 0x4079fb
mov eax, dword [ebx]
call sym._set_tty_cursor_relative
jmp 0x407dd2
mov dword [ebp - 0x2c], 0
jmp 0x407c89
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 0x4080d3
movzx esi, si
mov dword [esp], 0x415072
mov dword [esp + 4], esi
call sym._wine_dbg_sprintf
jmp 0x407aa8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4079fb
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x30], 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 - 0x30]
mov eax, dword [edi + 0x90]
mov ebx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
mov dword [edi + 0x98], 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 0x4079fb
mov ecx, str._null_
jmp 0x4080d3
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x68]
mov ecx, 0x415068
jmp 0x4080d3
mov eax, str._null_
jmp 0x407aa8
mov eax, dword [edi + 0x44]
jmp 0x407d53
add eax, 4
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [ebp - 0x2c], edx
call sym._memcmp
mov edx, dword [ebp - 0x2c]
test eax, eax
jne 0x408156
jmp 0x4079fb
mov dword [edi + 0x3c], 0xc0000017
jmp 0x407a5c