Function at 0x10058ac
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb0
push ebx
push esi
push edi
push 0x3f9
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 6
pop ecx
xor esi, esi
push esi
push esi
mov dword [ebp - 8], eax
push 0x1009
push dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x38], 3
mov dword [ebp - 0x34], esi
lea edi, [ebp - 0x30]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
call ebx
push 4
push 4
push 0x1036
push dword [ebp - 8]
call ebx
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x2d
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0x74]
shl eax, 1
sub ecx, eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0x1061
push dword [ebp - 8]
mov dword [ebp - 0x30], ecx
call ebx
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x1005983
mov edx, dword [esi + 8]
cmp dword [edx], ecx
je 0x100595b
push dword [esi + 0x14]
push eax
call fcn.01007761
push dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esi + 0x10]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [esi + 0x10], 0
and dword [esi + 0x14], 0
xor ecx, ecx
mov eax, dword [esi + 8]
cmp dword [eax], ecx
je 0x10059ca
push ecx
push ecx
push ecx
push dword [eax + 4]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
jne 0x10059bd
push dword [ebp - 0x14]
call fcn.01007424
push dword [ebp - 0x14]
mov edi, eax
mov dword [ebp + 8], edi
call dword [sym.imp.WINMM.dll_mixerClose]
jmp 0x10059db
mov eax, dword [esi + 8]
push dword [eax + 4]
call fcn.01007424
jmp 0x10059d6
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call fcn.0100961b
mov dword [ebp + 8], eax
mov edi, eax
test edi, edi
je 0x1005aac
push 1
push dword [ebp - 4]
lea eax, [edi + 0x14]
push edi
push eax
mov eax, dword [esi + 8]
add eax, 0x18
push eax
call fcn.01009a1a
test eax, eax
jne 0x1005a34
xor edx, edx
cmp dword [ebp - 4], edx
jbe 0x1005a1e
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
test al, 0x20
jne 0x1005a12
or eax, 4
mov dword [ecx], eax
inc edx
add ecx, 0x104
cmp edx, dword [ebp - 4]
jb 0x1005a07
push 0
push dword [ebp - 4]
lea eax, [edi + 0x14]
push edi
push eax
mov eax, dword [esi + 8]
add eax, 0x18
push eax
call fcn.01009a1a
mov eax, dword [ebp - 4]
and dword [ebp - 0x10], 0
and dword [ebp - 0xc], 0
test eax, eax
jbe 0x1005aa6
add edi, 0xc
test byte [edi], 0x10
je 0x1005a92
mov eax, dword [ebp - 0xc]
and dword [ebp - 0x64], 0
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
lea eax, [edi + 0x28]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x6c]
push eax
push 0
push 0x104d
push dword [ebp - 8]
mov dword [ebp - 0x6c], 5
call ebx
test byte [edi], 4
jne 0x1005a8f
xor eax, eax
inc eax
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
push dword [ebp - 8]
call fcn.0100533a
inc dword [ebp - 0xc]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
add edi, 0x104
cmp dword [ebp - 0x10], eax
jb 0x1005a46
mov edi, dword [ebp + 8]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
lea eax, [ebp - 0xb0]
push eax
push 0
push 0x102b
push dword [ebp - 8]
xor esi, esi
inc esi
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0xa4], esi
call ebx
push dword [ebp - 0x18]
push dword [ebp + 0xc]
call fcn.0100538e
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8