Function at 0x1008346
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x92c
mov eax, dword [0x1013020]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10000
xor ebx, ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 4], eax
push dword [esi + 0x10]
xor eax, eax
mov ecx, 0x80
lea edi, [ebp - 0x204]
rep stosd dword es:[edi], eax
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
je 0x1008391
xor eax, eax
jmp 0x1008729
push dword [esi + 0x10]
push dword [esi + 4]
call fcn.01002892
push ebx
lea edi, [esi + 0x14]
push edi
push 0x802
push dword [esi + 0x10]
call dword [sym.imp.WINMM.dll_mixerMessage]
test eax, eax
je 0x10083b5
mov dword [edi], ebx
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov ebx, 0x100
push ebx
lea eax, [ebp - 0x204]
push eax
push 0xc9
push dword [esi]
call edi
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x918], eax
push 0
lea eax, [ebp - 0x91c]
push eax
push dword [esi + 0x10]
mov dword [ebp - 0x91c], 0x118
call dword [sym.imp.WINMM.dll_mixerGetLineInfoW]
and word [ebp - 0x404], 0
test eax, eax
jne 0x100842c
lea eax, [ebp - 0x8d4]
push eax
push ebx
lea eax, [ebp - 0x404]
push eax
call fcn.0100f74c
test eax, eax
je 0x1008422
and word [ebp - 0x404], 0
cmp word [ebp - 0x404], 0
jne 0x100843d
push ebx
lea eax, [ebp - 0x404]
push eax
push 0xcb
push dword [esi]
call edi
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [ebp - 0x404]
push eax
push dword [esi + 4]
call ebx
xor eax, eax
cmp dword [esi + 0x8c], eax
mov dword [ebp - 0x924], eax
jbe 0x1008726
mov dword [ebp - 0x92c], eax
mov edi, dword [esi + 0x88]
add edi, dword [ebp - 0x92c]
push 0x3ec
push dword [ebp - 0x924]
push dword [esi + 4]
call fcn.01002688
test eax, eax
je 0x10084a1
test byte [esi + 0x1c], 0x20
mov ecx, dword [edi + 0x34]
je 0x100849a
add ecx, 0x14
jmp 0x100849d
add ecx, 0x34
push ecx
push eax
call ebx
mov dword [ebp - 0x928], 0x40c
push dword [ebp - 0x928]
push dword [ebp - 0x924]
push dword [esi + 4]
call fcn.01002688
test eax, eax
mov dword [ebp - 0x920], eax
je 0x1008518
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test byte [esi + 0x1c], 0x20
mov eax, dword [edi + 0x34]
je 0x10084ea
add eax, 0x14
jmp 0x10084ed
add eax, 0x34
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x604]
push 0x100
push eax
call fcn.0100f76e
add esp, 0x10
lea eax, [ebp - 0x604]
push eax
push dword [ebp - 0x920]
call ebx
inc dword [ebp - 0x928]
cmp dword [ebp - 0x928], 0x40d
jle 0x10084ab
cmp dword [ebp - 0x900], 2
jbe 0x1008613
test byte [edi + 0x30], 1
je 0x1008613
mov eax, dword [edi + 0x34]
test byte [eax + 0xe], 0x10
je 0x1008613
mov dword [ebp - 0x920], 0x403
push dword [ebp - 0x920]
push dword [ebp - 0x924]
push dword [esi + 4]
call fcn.01002688
test eax, eax
je 0x1008586
xor ecx, ecx
cmp dword [ebp - 0x920], 0x400
sete cl
push ecx
push eax
call fcn.01008321
dec dword [ebp - 0x920]
cmp dword [ebp - 0x920], 0x400
jge 0x1008558
push 0x3ea
push dword [ebp - 0x924]
push dword [esi + 4]
call fcn.01002688
test eax, eax
mov dword [ebp - 0x920], eax
je 0x10085bd
push 0
push eax
call fcn.01008321
cmp dword [ebp - 0x904], 4
je 0x1008613
cmp dword [ebp - 0x904], 6
jbe 0x10085eb
cmp dword [ebp - 0x904], 8
ja 0x10085eb
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xed
jmp 0x10085fc
push 0x100
lea eax, [ebp - 0x204]
push eax
push 0xee
push dword [esi]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x920]
call ebx
test byte [esi + 8], 8
jne 0x1008673
mov eax, dword [esi + 0x1c]
test ah, 8
je 0x1008673
test al, 0x20
jne 0x1008673
push 0x3fe
push dword [ebp - 0x924]
push dword [esi + 4]
call fcn.01002688
test eax, eax
mov dword [ebp - 0x928], eax
je 0x1008673
mov ecx, dword [edi + 0x34]
mov ecx, dword [ecx + 0xc]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x34]
mov eax, dword [eax + 0xc]
shr eax, 0x1f
push eax
push dword [ebp - 0x928]
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [edi + 0x34]
mov ecx, dword [eax + 0xc]
test cl, 2
jne 0x1008707
test ecx, 0x100000
je 0x100869f
xor ecx, ecx
inc ecx
mov dword [edi + 8], ecx
mov dl, byte [eax + 0xc]
not dl
movzx edx, dl
and edx, ecx
mov dword [edi + 0x14], edx
jmp 0x10086a2
xor ecx, ecx
inc ecx
test byte [eax + 0xe], 2
je 0x10086ab
mov dword [edi + 0x2c], ecx
test byte [eax + 0xe], 1
je 0x10086b4
mov dword [edi + 0x20], ecx
test byte [eax + 0xe], 0xc
je 0x1008707
test byte [eax + 0x10], 0xc
je 0x1008707
and dword [eax + 0x10], 0xfffffffe
push 0x3e8
push dword [ebp - 0x924]
mov dword [edi + 0x20], ecx
push dword [esi + 4]
call fcn.01002688
mov edi, eax
test edi, edi
je 0x1008707
push 0x100
lea eax, [ebp - 0x804]
push eax
push 0xe7
push dword [esi]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1008707
lea eax, [ebp - 0x804]
push eax
push edi
call ebx
inc dword [ebp - 0x924]
mov eax, dword [ebp - 0x924]
add dword [ebp - 0x92c], 0x38
cmp eax, dword [esi + 0x8c]
jb 0x1008469
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01009d93
leave
ret 4