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

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x60]
push ebp
mov dword [esp + 0x10], eax
push esi
xor eax, eax
push edi
push eax
lea ecx, [esp + 0x20]
lea esi, [ebx + 4]
push 0x2e
push ecx
mov dword [esp + 0x88], esi
lea ebp, [esp + 0x38]
lea edi, [esp + 0x38]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
call dword [sym.alleg40.dll_usetc]
add esp, 8
lea edx, [esp + eax + 0x20]
push edx
call dword [sym.alleg40.dll_usetc]
add esp, 8
lea eax, [esp + 0x2c]
push 0
push 0x20
push eax
call dword [sym.alleg40.dll_usetc]
add esp, 8
lea ecx, [esp + eax + 0x30]
push ecx
call dword [sym.alleg40.dll_usetc]
add esp, 8
lea edx, [esp + 0x3c]
push 0
push 0x20
push edx
call dword [sym.alleg40.dll_usetc]
add esp, 8
lea eax, [esp + eax + 0x40]
push eax
call dword [sym.alleg40.dll_usetc]
mov eax, dword [esp + 0x58]
add esp, 8
test eax, eax
je 0x100259aa
mov ebp, eax
mov edi, eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x100259e0
mov ecx, dword [esp + 0x80]
mov eax, dword [sym.alleg40.dll_screen]
dec esi
push ecx
mov ecx, dword [esp + 0x6c]
mov edx, dword [eax + 0x1c]
push esi
mov esi, dword [esp + 0x78]
add ebx, 2
lea esi, [ecx + esi - 3]
add ecx, 2
push esi
push ebx
push ecx
push eax
call dword [edx + 0x38]
add esp, 0x18
mov eax, dword [esp + 0x78]
test eax, eax
je 0x100259f3
mov edx, dword [esp + 0x84]
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x80]
push eax
call sym.alleg40.dll_text_mode
add esp, 4
mov dword [esp + 0x78], eax
push edi
xor ebx, ebx
call dword [sym.alleg40.dll_ugetc]
add esp, 4
test eax, eax
je 0x10025b6c
push edi
call dword [sym.alleg40.dll_ugetc]
add esp, 4
cmp eax, 0xa
je 0x10025b60
push 0
push edi
call dword [sym.alleg40.dll_ugetc]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.alleg40.dll_usetc]
add esp, 0xc
lea edx, [esp + eax + 0x20]
push edx
call dword [sym.alleg40.dll_usetc]
mov ecx, dword [sym.alleg40.dll_font]
lea eax, [esp + 0x24]
push eax
push ecx
call sym.alleg40.dll_text_length
lea edx, [esp + 0x2c]
mov esi, eax
push edx
call dword [sym.alleg40.dll_ugetc]
add esp, 0x14
cmp eax, 9
jne 0x10025a92
mov ecx, dword [sym.alleg40.dll_font]
lea eax, [esp + 0x3c]
push eax
push ecx
call sym.alleg40.dll_text_length
mov esi, eax
add esp, 8
imul esi, dword [esp + 0x64]
mov edx, dword [esp + 0x70]
add esi, ebx
lea eax, [edx - 6]
cmp esi, eax
jge 0x10025ac1
push edi
call dword [sym.alleg40.dll_uwidth]
add edi, eax
mov ebx, esi
push edi
call dword [sym.alleg40.dll_ugetc]
add esp, 8
test eax, eax
jne 0x10025a1b
jmp 0x10025b6c
mov eax, dword [esp + 0x60]
test eax, eax
je 0x10025b6c
mov ebx, edi
push edi
mov dword [esp + 0x54], ebx
call dword [sym.alleg40.dll_ugetc]
push eax
call sym.alleg40.dll_uisspace
add esp, 8
test eax, eax
jne 0x10025b1f
jmp 0x10025aed
mov ebx, dword [esp + 0x50]
cmp ebp, edi
je 0x10025b31
mov ebx, ebp
mov esi, ebp
jae 0x10025b09
push esi
mov ebx, esi
call dword [sym.alleg40.dll_uwidth]
add esi, eax
add esp, 4
cmp esi, edi
jb 0x10025af7
push ebx
mov edi, ebx
call dword [sym.alleg40.dll_ugetc]
push eax
call sym.alleg40.dll_uisspace
add esp, 8
test eax, eax
je 0x10025ae9
push edi
mov dword [esp + 0x18], edi
call dword [sym.alleg40.dll_uwidth]
add esp, 4
add edi, eax
jmp 0x10025b51
cmp edi, ebx
mov esi, edi
je 0x10025b49
push esi
mov edi, esi
call dword [sym.alleg40.dll_uwidth]
add esp, 4
add esi, eax
cmp edi, ebx
jne 0x10025b37
mov dword [esp + 0x14], 0
push edi
call dword [sym.alleg40.dll_ugetc]
add esp, 4
cmp eax, 0xa
jne 0x10025b6c
push edi
call dword [sym.alleg40.dll_uwidth]
add esp, 4
add edi, eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10025d61
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
cmp eax, ecx
jl 0x10025d61
mov ecx, dword [sym.alleg40.dll_font]
push ecx
call sym.alleg40.dll_text_height
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x70]
add eax, edx
mov edx, dword [esp + 0x78]
add esp, 4
lea edx, [ecx + edx - 3]
cmp eax, edx
jge 0x10025d61
mov eax, dword [esp + 0x68]
mov ecx, dword [sym.alleg40.dll_font]
push ecx
lea esi, [eax + 4]
call sym.alleg40.dll_text_height
mov ecx, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
add eax, ecx
mov ecx, dword [sym.alleg40.dll_screen]
push ebx
mov ebx, dword [esp + 0x84]
mov edx, dword [ecx + 0x1c]
push eax
lea eax, [esi - 1]
push eax
mov eax, dword [esp + 0x78]
add eax, 2
push ebx
push eax
push ecx
call dword [edx + 0x38]
add esp, 0x1c
cmp ebp, edi
je 0x10025d04
push ebp
call dword [sym.alleg40.dll_ugetc]
add esp, 4
sub eax, 9
je 0x10025c87
dec eax
je 0x10025cf0
sub eax, 3
je 0x10025cf0
cmp ebp, dword [esp + 0x14]
je 0x10025cf0
push 0
push ebp
call dword [sym.alleg40.dll_ugetc]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.alleg40.dll_usetc]
add esp, 0xc
lea edx, [esp + eax + 0x20]
push edx
call dword [sym.alleg40.dll_usetc]
mov eax, dword [esp + 0x20]
mov edx, dword [sym.alleg40.dll_font]
push eax
mov eax, dword [sym.alleg40.dll_screen]
push ebx
lea ecx, [esp + 0x2c]
push esi
push ecx
push edx
push eax
call sym.alleg40.dll_textout
mov edx, dword [sym.alleg40.dll_font]
lea ecx, [esp + 0x3c]
push ecx
push edx
call sym.alleg40.dll_text_length
add esp, 0x28
add esi, eax
jmp 0x10025cf0
mov eax, dword [esp + 0x64]
test eax, eax
jle 0x10025cf0
mov ebx, eax
push 0
lea eax, [esp + 0x20]
push 0x20
push eax
call dword [sym.alleg40.dll_usetc]
add esp, 8
lea ecx, [esp + eax + 0x20]
push ecx
call dword [sym.alleg40.dll_usetc]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x84]
push edx
mov edx, dword [sym.alleg40.dll_font]
push eax
mov eax, dword [sym.alleg40.dll_screen]
lea ecx, [esp + 0x2c]
push esi
push ecx
push edx
push eax
call sym.alleg40.dll_textout
mov edx, dword [sym.alleg40.dll_font]
lea ecx, [esp + 0x3c]
push ecx
push edx
call sym.alleg40.dll_text_length
add esp, 0x28
add esi, eax
dec ebx
jne 0x10025c91
mov ebx, dword [esp + 0x7c]
push ebp
call dword [sym.alleg40.dll_uwidth]
add ebp, eax
add esp, 4
cmp ebp, edi
jne 0x10025c05
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
lea ebp, [ecx + eax - 3]
cmp esi, ebp
jg 0x10025d4d
mov edx, dword [sym.alleg40.dll_font]
push edx
call sym.alleg40.dll_text_height
mov edx, dword [esp + 0x84]
lea eax, [eax + ebx - 1]
mov dword [esp + 0x80], eax
mov eax, dword [sym.alleg40.dll_screen]
push edx
mov edx, dword [esp + 0x84]
mov ecx, dword [eax + 0x1c]
push edx
push ebp
push ebx
push esi
push eax
call dword [ecx + 0x38]
add esp, 0x1c
mov eax, dword [sym.alleg40.dll_font]
push eax
call sym.alleg40.dll_text_height
add esp, 4
add ebx, eax
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 0x10]
push edi
inc ebx
mov ebp, edi
mov dword [esp + 0x14], ebx
call dword [sym.alleg40.dll_ugetc]
add esp, 4
test eax, eax
jne 0x10025a07
mov eax, dword [esp + 0x58]
test eax, eax
je 0x10025dc1
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x78]
mov eax, dword [sym.alleg40.dll_screen]
lea ecx, [esi + ecx - 1]
mov esi, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x70]
mov edx, dword [eax + 0x1c]
lea esi, [ecx + esi - 3]
inc ecx
push esi
mov esi, dword [esp + 0x88]
push esi
push ecx
push eax
call dword [edx + 0x38]
add esp, 0x18
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x10]
push ecx
mov dword [edx], eax
call sym.alleg40.dll_text_mode
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret