Function at 0x10008a10
Capabilities:
Get graphical window text
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005c470
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x10186004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x234], ebx
mov eax, dword [ebp + 8]
lea ecx, [ebx + 4]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x250], ebx
push eax
mov dword [ebx], vtable.SoraVoiceImpl.0
call fcn.10004800
lea ecx, [ebx + 0x1c]
mov dword [ebp - 4], 0
push esi
call fcn.10004800
mov edx, dword [edi + 8]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], ecx
mov dword [ebx + 0x3c], edx
lea edi, [ebx + 0x4c]
mov dword [ebx + 0x40], 0x10189608
mov dword [ebx + 0x44], 0x101895f4
mov dword [ebx + 0x48], 0x101895f0
mov dword [edi], 0
mov byte [ebp - 4], 3
lea esi, [ebx + 0x50]
mov dword [ebp - 0x234], esi
mov dword [esi], 0
push 0xc
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.100200b6
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
lea ecx, [esi + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 5
mov dword [esi + 0x18], 7
mov dword [esi + 0x1c], 8
mov dword [esi], 0x3f800000
push dword [esi + 4]
push 0x10
call fcn.100098c0
lea eax, [ebx + 0x70]
push 2
push eax
call fcn.10021cb1
add esp, 8
mov byte [ebp - 4], 7
mov byte [ebx + 0xa0], 0
mov eax, dword [0x10189610]
test eax, eax
je 0x10008bd9
mov eax, dword [eax]
mov dword [ebp - 0x234], eax
test eax, eax
je 0x10008bd9
push 0x201
lea eax, [ebp - 0x214]
push eax
push str._systemroot_System32dsound.dll
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10008bd9
push str.DirectSoundCreate8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10008bd2
push 0
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x230], 0
push ecx
push 0
call eax
test eax, eax
jne 0x10008bd2
mov ecx, dword [ebp - 0x230]
push 2
push dword [ebp - 0x234]
mov eax, dword [ecx]
push ecx
call dword [eax + 0x18]
test eax, eax
je 0x10008bf9
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002009a
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp - 0x230]
test edx, edx
je 0x10008bd9
lea ecx, [ebp - 0x234]
call fcn.1000cf30
cmp edi, eax
je 0x10008c29
mov edx, dword [eax]
mov dword [eax], 0
mov ecx, dword [edi]
mov dword [edi], edx
test ecx, ecx
je 0x10008c29
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x10008c3a
mov eax, dword [ecx]
push 1
call dword [eax + 0x18]
cmp dword [edi], 0
je 0x10008bd9
mov ecx, dword [ebx + 0x44]
call fcn.10002990
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx]
cmp eax, 0x64
jle 0x10008c5c
mov dword [ecx], 0x64
mov ecx, dword [ebx + 0x44]
mov eax, dword [ecx]
test eax, eax
jns 0x10008c69
mov dword [ecx], 0
mov ecx, dword [ebx + 0x44]
push dword [ebx + 0x48]
call fcn.10002e10
mov ecx, dword [edi]
add esp, 4
mov eax, dword [ecx]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x44]
push dword [eax]
call edx
mov eax, dword [ebx + 0x40]
lea ecx, [ebp - 0x114]
xorps xmm0, xmm0
push 0x100
push ecx
movq qword [eax], xmm0
mov byte [ebx + 0xa0], 1
mov eax, dword [0x10189610]
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10008ce0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x22c]
call fcn.10005c50
push ecx
push str.The_Legend_of_Heroes:_Trails_in_the_Sky_Second
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 8
call fcn.100096a0
cmp eax, 0xffffffff
je 0x10008d81
push 0x1017cf38
lea ecx, [ebp - 0x24c]
call fcn.100095d0
mov eax, dword [0x10189610]
cmp dword [ebp - 0x238], 8
mov ecx, dword [eax]
lea eax, [ebp - 0x24c]
cmovae eax, dword [ebp - 0x24c]
push eax
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x238]
cmp edx, 8
jb 0x10008dbb
mov ecx, dword [ebp - 0x24c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10008db1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008e45
jmp 0x10008db1
push ecx
push str.The_Legend_of_Heroes:_Trails_in_the_Sky_the_3rd
lea ecx, [ebp - 0x22c]
call fcn.100096a0
lea ecx, [ebp - 0x24c]
cmp eax, 0xffffffff
je 0x10008da7
push 0x1017cf88
jmp 0x10008d21
push 0x1017cfb4
jmp 0x10008d21
push edx
push ecx
call fcn.100200e6
add esp, 8
mov eax, dword [ebx + 0x48]
cmp dword [eax], 5
jne 0x10008e06
mov esi, dword [edi]
push 0x3e8
sub esp, 0x28
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov eax, esp
mov dword [eax + 0x24], 0
call fcn.10008700
mov edx, eax
sub esp, 8
mov ecx, esp
lea eax, [edx + 1]
mov dword [ecx], edx
mov dword [ebp - 0x234], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x10008df2
sub edx, dword [ebp - 0x234]
mov dword [ecx + 4], edx
mov ecx, esi
call edi
mov edx, dword [ebp - 0x218]
cmp edx, 0x10
jb 0x10008bd9
mov ecx, dword [ebp - 0x22c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10008e36
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10008e45
push edx
push ecx
call fcn.100200e6
add esp, 8
jmp 0x10008bd9
call fcn.100403fd
int3