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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
and esp, 0xfffffff0
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
test byte [0x413058], 8
jne 0x4064f0
test esi, esi
js 0x40664e
mov dword [0x418034], ebx
mov dword [0x418080], 0
je 0x4064d0
mov ebx, dword [0x41802c]
test ebx, ebx
jne 0x4064d0
mov eax, dword [0x418098]
mov dword [0x418058], eax
mov eax, dword [0x418008]
mov edx, dword [eax + 0x1c]
mov dword [0x418074], edx
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [0x418044]
mov dword [0x418078], eax
mov eax, dword [0x418048]
mov dword [0x41803c], 0x103
mov dword [esp + 0x18], eax
lea eax, [edx + 1]
test edi, edi
jne 0x4063a0
mov ebx, dword [0x418040]
cmp dword [esp + 0x18], eax
jbe 0x406578
xor eax, eax
mov word [ebx], ax
mov eax, dword [esp + 0x1c]
mov dword [0x418038], esi
mov dword [0x41807c], eax
lea esp, [ebp - 0xc]
mov eax, section..bss
pop ebx
pop esi
pop edi
pop ebp
jmp sym._process_console_input
add eax, edi
cmp eax, dword [esp + 0x18]
jae 0x406528
lea eax, [edi - 1]
cmp eax, 6
jbe 0x406610
mov edx, edi
pxor xmm1, xmm1
pxor xmm2, xmm2
mov eax, ecx
movdqu xmm5, xmmword [0x414c50]
shr edx, 3
movdqu xmm4, xmmword [0x414c60]
movdqu xmm3, xmmword [0x414c70]
shl edx, 4
add edx, ecx
lea esi, [esi]
movdqu xmm0, xmmword [eax]
movdqu xmm6, xmm4
add eax, 0x10
psubusw xmm0, xmm5
pcmpeqw xmm0, xmm2
pand xmm6, xmm0
pandn xmm0, xmm3
por xmm0, xmm6
movdqu xmm6, xmm0
punpckhwd xmm0, xmm2
punpcklwd xmm6, xmm2
paddd xmm0, xmm6
paddd xmm1, xmm0
cmp edx, eax
jne 0x4063e8
movdqu xmm0, xmm1
mov ebx, edi
psrldq xmm0, 8
and ebx, 0xfffffff8
paddd xmm1, xmm0
movdqu xmm0, xmm1
psrldq xmm0, 4
paddd xmm1, xmm0
movd eax, xmm1
test edi, 7
je 0x406464
lea esi, [esi]
cmp word [ecx + ebx*2], 0x20
sbb edx, edx
add ebx, 1
not edx
lea eax, [eax + edx + 2]
cmp edi, ebx
ja 0x406450
mov ebx, dword [esp + 0x14]
cmp ebx, eax
jae 0x4065b0
not ebx
xor edx, edx
add eax, ebx
mov ebx, dword [0x418008]
mov dword [esp + 0x18], eax
div dword [ebx + 0xc]
mov edx, dword [0x418078]
add eax, 1
cmp eax, edx
jbe 0x406600
mov dword [0x418078], 0
test byte [0x413058], 1
jne 0x406617
mov ebx, dword [ebx + 0xc]
xor edx, edx
lea eax, [ebx - 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
div ebx
mov eax, dword [esp + 0x14]
sub eax, edx
mov dword [0x418074], eax
jmp 0x4065bc
mov eax, section..bss
mov edx, esi
call sym._read_from_buffer
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x414338
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x413058
mov dword [esp], 3
mov dword [esp + 0x18], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [esp + 0x18]
jmp 0x4062f7
lea edx, [eax + 0x20]
mov dword [esp + 0x14], ecx
and edx, 0xffffffe0
lea eax, [edx + edx]
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
mov eax, dword [0x418040]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test eax, eax
je 0x406688
mov dword [0x418040], eax
mov eax, dword [0x418074]
mov dword [0x418048], edx
mov dword [esp + 0x14], eax
jmp 0x4063ac
lea edi, [edx + 0x21]
mov dword [esp], ebx
and edi, 0xffffffe0
lea eax, [edi + edi]
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov ebx, eax
test eax, eax
je 0x406679
mov dword [0x418040], eax
mov dword [0x418048], edi
jmp 0x406377
mov edx, dword [esp + 0x14]
sub edx, eax
mov dword [0x418074], edx
lea eax, [edi + edi]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov eax, dword [0x418040]
mov dword [0x41804c], edi
mov dword [esp], eax
call sym._memcpy
mov eax, dword [0x418040]
xor edx, edx
mov word [eax + edi*2], dx
mov dword [0x418044], edi
mov dword [0x418070], edi
jmp 0x40637c
sub edx, eax
mov dword [0x418078], edx
jmp 0x4064ab
xor eax, eax
jmp 0x406450
mov dword [esp + 0xc], str.Support_for_negative_ordinates_is_missing_n
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x413058
mov dword [esp], 0
mov dword [esp + 0x14], ecx
call sym._wine_dbg_log.constprop.0
mov ebx, dword [0x418008]
mov ecx, dword [esp + 0x14]
jmp 0x4064ab
mov eax, dword [0x41801c]
mov dword [esp], 0
xor ecx, ecx
mov edx, 0xc0000017
mov dword [esp + 4], eax
mov eax, section..bss
call sym._read_complete
mov eax, 0xc0000017
jmp 0x4064de
mov dword [0x41803c], 0xc0000017
jmp 0x40637c
mov eax, dword [0x418048]
mov edx, dword [0x418044]
mov dword [0x41803c], 0xc0000017
mov dword [esp + 0x18], eax
lea eax, [edx + 1]
jmp 0x406367