Function at 0x1004f01
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xb0
push ebx
push esi
push edi
push 0x3f9
push dword [ebp + 0x7c]
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 + 0x68], eax
push 0x1009
push dword [ebp + 0x68]
xor eax, eax
mov dword [ebp + 0x38], 3
mov dword [ebp + 0x3c], esi
lea edi, [ebp + 0x40]
rep stosd dword es:[edi], eax
mov dword [ebp + 0x58], esi
mov dword [ebp + 0x6c], esi
call ebx
push 4
push 4
push 0x1036
push dword [ebp + 0x68]
call ebx
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp + 4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.USER32.dll_GetClientRect]
push 0x2d
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 4]
shl eax, 1
sub ecx, eax
lea eax, [ebp + 0x38]
push eax
push esi
push 0x1061
push dword [ebp + 0x68]
mov dword [ebp + 0x40], ecx
call ebx
mov esi, dword [ebp + 0x78]
mov eax, dword [esi + 0x10]
xor ecx, ecx
cmp eax, ecx
je 0x1004fd8
mov edx, dword [esi + 8]
cmp dword [edx], ecx
je 0x1004fb0
push dword [esi + 0x14]
push eax
call fcn.010069c9
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 0x100501f
push ecx
push ecx
push ecx
push dword [eax + 4]
lea eax, [ebp + 0x5c]
push eax
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
lea eax, [ebp + 0x6c]
push eax
push dword [esi + 0xc]
jne 0x1005012
push dword [ebp + 0x5c]
call fcn.0100672c
push dword [ebp + 0x5c]
mov edi, eax
mov dword [ebp + 0x78], edi
call dword [sym.imp.WINMM.dll_mixerClose]
jmp 0x1005030
mov eax, dword [esi + 8]
push dword [eax + 4]
call fcn.0100672c
jmp 0x100502b
lea eax, [ebp + 0x6c]
push eax
push dword [esi + 0xc]
call fcn.0100843d
mov dword [ebp + 0x78], eax
mov edi, eax
test edi, edi
je 0x1005101
push 1
push dword [ebp + 0x6c]
lea eax, [edi + 0x14]
push edi
push eax
mov eax, dword [esi + 8]
add eax, 0x18
push eax
call fcn.01008785
test eax, eax
jne 0x1005089
xor edx, edx
cmp dword [ebp + 0x6c], edx
jbe 0x1005073
lea ecx, [edi + 0xc]
mov eax, dword [ecx]
test al, 0x20
jne 0x1005067
or eax, 4
mov dword [ecx], eax
inc edx
add ecx, 0x104
cmp edx, dword [ebp + 0x6c]
jb 0x100505c
push 0
push dword [ebp + 0x6c]
lea eax, [edi + 0x14]
push edi
push eax
mov eax, dword [esi + 8]
add eax, 0x18
push eax
call fcn.01008785
mov eax, dword [ebp + 0x6c]
and dword [ebp + 0x60], 0
and dword [ebp + 0x64], 0
test eax, eax
jbe 0x10050fb
add edi, 0xc
test byte [edi], 0x10
je 0x10050e7
mov eax, dword [ebp + 0x64]
and dword [ebp + 0xc], 0
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp + 0x24], eax
lea eax, [edi + 0x28]
mov dword [ebp + 0x18], eax
lea eax, [ebp + 4]
push eax
push 0
push 0x104d
push dword [ebp + 0x68]
mov dword [ebp + 4], 5
call ebx
test byte [edi], 4
jne 0x10050e4
xor eax, eax
inc eax
push eax
push dword [ebp + 0x64]
mov dword [ebp + 0x58], eax
push dword [ebp + 0x68]
call fcn.01004a4f
inc dword [ebp + 0x64]
inc dword [ebp + 0x60]
mov eax, dword [ebp + 0x6c]
add edi, 0x104
cmp dword [ebp + 0x60], eax
jb 0x100509b
mov edi, dword [ebp + 0x78]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x40]
push eax
push 0
push 0x102b
push dword [ebp + 0x68]
xor esi, esi
inc esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
call ebx
push dword [ebp + 0x58]
push dword [ebp + 0x7c]
call fcn.01004a9c
pop edi
mov eax, esi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8