Function at 0x405f90
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 [0x413058], 8
jne 0x406100
test ebx, ebx
js 0x406224
mov dword [0x418034], esi
mov dword [0x418080], 0
je 0x4060e0
mov esi, dword [0x41802c]
test esi, esi
jne 0x4060e0
mov eax, dword [0x418094]
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
test edi, edi
jne 0x406050
mov eax, dword [0x418044]
mov edx, dword [0x418040]
lea ecx, [eax + 1]
cmp ecx, dword [0x418048]
jae 0x406170
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
mov eax, dword [0x418044]
lea eax, [edi + eax + 1]
cmp eax, dword [0x418048]
jae 0x406130
mov eax, dword [ebp - 0x20]
lea ecx, [edi + edi]
mov dword [ebp - 0x24], ecx
add ecx, eax
cmp word [eax], 0x20
adc esi, 1
add eax, 2
cmp ecx, eax
jne 0x406070
cmp esi, edx
jbe 0x4061a0
not edx
mov ecx, dword [0x418008]
lea eax, [edx + esi]
xor edx, edx
mov dword [ebp - 0x28], eax
div dword [ecx + 0xc]
mov edx, dword [0x418078]
inc eax
cmp eax, edx
jbe 0x4061e8
mov dword [0x418078], 0
test byte [0x413058], 1
jne 0x4061f5
mov esi, dword [ecx + 0xc]
mov eax, dword [ebp - 0x28]
xor edx, edx
div esi
lea ecx, [esi - 1]
sub ecx, edx
mov dword [0x418074], ecx
jmp 0x4061a8
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], 0x4142da
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x413058
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x405fb6
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 0x40625e
mov dword [0x418048], edx
mov edx, dword [0x418074]
mov dword [0x418040], eax
jmp 0x406065
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 0x40624f
mov dword [0x418040], eax
mov dword [0x418048], esi
jmp 0x40602a
sub edx, esi
mov dword [0x418074], edx
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 0x40602f
sub edx, eax
mov dword [0x418078], edx
jmp 0x4060bf
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
call sym._wine_dbg_log.constprop.0
mov ecx, dword [0x418008]
jmp 0x4060bf
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 0x4060ee
mov dword [0x41803c], 0xc0000017
jmp 0x40602f
mov dword [0x41803c], 0xc0000017
jmp 0x406010