Function at 0x408860
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, 0x20
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
test byte [0x413024], 8
jne 0x4089d0
test ebx, ebx
js 0x408af4
mov dword [0x4130b4], esi
mov dword [0x413100], 0
je 0x4089b0
mov esi, dword [0x4130ac]
test esi, esi
jne 0x4089b0
mov eax, dword [0x413118]
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 0x408920
mov eax, dword [0x4130c4]
mov edx, dword [0x4130c0]
lea ecx, [eax + 1]
cmp ecx, dword [0x4130c8]
jae 0x408a40
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x10]
mov dword [0x4130b8], ebx
mov dword [0x4130fc], eax
add esp, 0x20
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 0x408a00
mov eax, dword [ebp - 0x14]
lea ecx, [edi + edi]
mov dword [ebp - 0x18], ecx
add ecx, eax
cmp word [eax], 0x20
adc esi, 1
add eax, 2
cmp ecx, eax
jne 0x408940
cmp esi, edx
jbe 0x408a70
not edx
mov ecx, dword [0x413088]
lea eax, [edx + esi]
xor edx, edx
mov dword [ebp - 0x1c], eax
div dword [ecx + 0xc]
mov edx, dword [0x4130f8]
inc eax
cmp eax, edx
jbe 0x408ab8
mov dword [0x4130f8], 0
test byte [0x413024], 1
jne 0x408ac5
mov esi, dword [ecx + 0xc]
mov eax, dword [ebp - 0x1c]
xor edx, edx
div esi
lea ecx, [esi - 1]
sub ecx, edx
mov dword [0x4130f4], ecx
jmp 0x408a78
mov eax, 0x413080
mov edx, ebx
call sym._read_from_buffer
xor eax, eax
add esp, 0x20
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x415344
mov dword [esp + 8], str.read_console
mov dword [esp + 4], 0x413024
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x408886
lea edx, [eax + 0x20]
and edx, 0xffffffe0
lea eax, [edx + edx]
mov dword [ebp - 0x18], 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 - 0x18]
test eax, eax
je 0x408b2e
mov dword [0x4130c8], edx
mov edx, dword [0x4130f4]
mov dword [0x4130c0], eax
jmp 0x408935
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 0x408b1f
mov dword [0x4130c0], eax
mov dword [0x4130c8], esi
jmp 0x4088fa
sub edx, esi
mov dword [0x4130f4], edx
mov eax, dword [ebp - 0x18]
mov dword [0x4130cc], edi
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x14]
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 0x4088ff
sub edx, eax
mov dword [0x4130f8], edx
jmp 0x40898f
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 0x40898f
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 0x4089be
mov dword [0x4130bc], 0xc0000017
jmp 0x4088ff
mov dword [0x4130bc], 0xc0000017
jmp 0x4088e0