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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
test byte [0x415058], 8
jne 0x405bd0
test ebx, ebx
js 0x405cc4
mov dword [0x418034], esi
mov dword [0x418080], 0
je 0x405bb8
mov esi, dword [0x41802c]
test esi, esi
jne 0x405bb8
mov eax, dword [0x418094]
mov ecx, dword [0x418048]
mov dword [0x418058], eax
mov eax, dword [0x418008]
mov edx, dword [eax + 0x1c]
mov dword [0x418074], edx
mov eax, dword [eax + 0x20]
mov dword [0x41803c], 0x103
mov dword [0x418078], eax
mov eax, dword [0x418044]
test edi, edi
jne 0x405ae8
mov edx, dword [0x418040]
lea ecx, [eax + 1]
cmp ecx, dword [0x418048]
jae 0x405c58
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x1c]
mov dword [0x418038], ebx
mov dword [0x41807c], eax
add esp, 0x2c
mov eax, section..bss
pop ebx
pop esi
pop edi
pop ebp
jmp sym._process_console_input
lea eax, [edi + eax + 1]
cmp eax, ecx
jae 0x405c00
mov eax, dword [ebp - 0x20]
lea ecx, [edi + edi]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
add ecx, eax
lea esi, [esi]
cmp word [eax], 0x1f
ja 0x405c40
add eax, 2
add esi, 2
cmp ecx, eax
jne 0x405b08
mov eax, edx
sub eax, esi
cmp edx, esi
jae 0x405b70
sub esi, edx
mov ecx, dword [0x418008]
xor edx, edx
lea eax, [esi - 1]
mov dword [ebp - 0x28], eax
div dword [ecx + 0xc]
mov edx, dword [0x418078]
add eax, 1
cmp edx, eax
jae 0x405c88
mov dword [0x418078], 0
test byte [0x415058], 1
jne 0x405c95
mov esi, dword [ecx + 0xc]
mov eax, dword [ebp - 0x28]
xor edx, edx
div esi
lea ecx, [esi - 1]
mov eax, ecx
sub eax, edx
mov dword [0x418074], eax
mov eax, dword [ebp - 0x24]
mov dword [0x41804c], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [0x418040]
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 0x405ac5
mov eax, section..bss
mov edx, ebx
call sym._read_from_buffer
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x4161de
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x415058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x405a46
lea edx, [eax + 0x20]
and edx, 0xffffffe0
lea eax, [edx + edx]
mov dword [ebp - 0x24], edx
mov dword [esp + 4], eax
mov eax, dword [0x418040]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x24]
test eax, eax
je 0x405cfe
mov dword [0x418048], edx
mov edx, dword [0x418074]
mov dword [0x418040], eax
jmp 0x405af4
add eax, 2
add esi, 1
cmp eax, ecx
jne 0x405b08
jmp 0x405b1c
lea esi, [eax + 0x21]
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 0x405cef
mov dword [0x418040], eax
mov dword [0x418048], esi
jmp 0x405ac0
sub edx, eax
mov dword [0x418078], edx
jmp 0x405b5f
mov dword [esp + 0xc], str.Support_for_negative_ordinates_is_missing_n
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x415058
mov dword [esp], 0
call sym._wine_dbg_log.constprop.1
mov ecx, dword [0x418008]
jmp 0x405b5f
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.isra.0
mov eax, 0xc0000017
jmp 0x405bc6
mov dword [0x41803c], 0xc0000017
jmp 0x405ac5
mov dword [0x41803c], 0xc0000017
mov eax, dword [0x418044]
jmp 0x405aab