Function at 0x408a30
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 [0x413024], 8
jne 0x408ba0
test ebx, ebx
js 0x408cc4
mov dword [0x4130b4], esi
mov dword [0x413100], 0
je 0x408b80
mov esi, dword [0x4130ac]
test esi, esi
jne 0x408b80
mov eax, dword [0x413114]
mov dword [0x4130d8], eax
mov eax, dword [0x413088]
mov edx, dword [eax + 0x1c]
mov dword [0x4130f4], edx
mov eax, dword [eax + 0x20]
mov dword [0x4130bc], 0x103
mov dword [0x4130f8], eax
test edi, edi
jne 0x408af0
mov eax, dword [0x4130c4]
mov edx, dword [0x4130c0]
lea ecx, [eax + 1]
cmp ecx, dword [0x4130c8]
jae 0x408c10
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x1c]
mov dword [0x4130b8], ebx
mov dword [0x4130fc], eax
add esp, 0x2c
mov eax, 0x413080
pop ebx
pop esi
pop edi
pop ebp
jmp sym._process_console_input
mov eax, dword [0x4130c4]
lea eax, [edi + eax + 1]
cmp eax, dword [0x4130c8]
jae 0x408bd0
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 0x408b10
cmp esi, edx
jbe 0x408c40
not edx
mov ecx, dword [0x413088]
lea eax, [edx + esi]
xor edx, edx
mov dword [ebp - 0x28], eax
div dword [ecx + 0xc]
mov edx, dword [0x4130f8]
inc eax
cmp eax, edx
jbe 0x408c88
mov dword [0x4130f8], 0
test byte [0x413024], 1
jne 0x408c95
mov esi, dword [ecx + 0xc]
mov eax, dword [ebp - 0x28]
xor edx, edx
div esi
lea ecx, [esi - 1]
sub ecx, edx
mov dword [0x4130f4], ecx
jmp 0x408c48
mov eax, 0x413080
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], 0x4152da
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x413024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x408a56
lea edx, [eax + 0x20]
and edx, 0xffffffe0
lea eax, [edx + edx]
mov dword [ebp - 0x24], edx
mov dword [esp + 4], eax
mov eax, dword [0x4130c0]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov edx, dword [ebp - 0x24]
test eax, eax
je 0x408cfe
mov dword [0x4130c8], edx
mov edx, dword [0x4130f4]
mov dword [0x4130c0], eax
jmp 0x408b05
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 0x408cef
mov dword [0x4130c0], eax
mov dword [0x4130c8], esi
jmp 0x408aca
sub edx, esi
mov dword [0x4130f4], edx
mov eax, dword [ebp - 0x24]
mov dword [0x4130cc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], eax
mov eax, dword [0x4130c0]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [0x4130c0]
xor edx, edx
mov word [eax + edi*2], dx
mov dword [0x4130c4], edi
mov dword [0x4130f0], edi
jmp 0x408acf
sub edx, eax
mov dword [0x4130f8], edx
jmp 0x408b5f
mov dword [esp + 0xc], str.Support_for_negative_ordinates_is_missing_n
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x413024
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
mov ecx, dword [0x413088]
jmp 0x408b5f
mov eax, dword [0x41309c]
mov dword [esp], 0
xor ecx, ecx
mov edx, 0xc0000017
mov dword [esp + 4], eax
mov eax, 0x413080
call sym._read_complete
mov eax, 0xc0000017
jmp 0x408b8e
mov dword [0x4130bc], 0xc0000017
jmp 0x408acf
mov dword [0x4130bc], 0xc0000017
jmp 0x408ab0