Function at 0x100513a4
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c8
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x3c0], eax
push edi
push edi
mov ebx, edx
mov dword [ebp - 0x3c4], edi
push 0x147
push ebx
mov dword [ebp - 0x3b8], ebx
mov esi, ecx
mov dword [ebp - 0x3b0], edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x3b4], eax
xor eax, eax
mov word [ebp - 0x194], ax
lea eax, [ebp - 0x194]
push 0xc8
push eax
push ebx
mov dword [ebp - 0x3bc], edi
mov dword [ebp - 0x3c8], edi
mov dword [ebp - 0x3ac], 3
mov dword [ebp - 0x3a8], 0x3a56101f
mov dword [ebp - 0x3a4], 0x3a550003
mov dword [ebp - 0x3a0], 0x3003001f
call dword [sym.imp.USER32.dll_GetWindowTextW]
push edi
push edi
push 0x14b
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x10]
lea ecx, [ebp - 0x3b0]
mov edi, esp
push ecx
lea ecx, [ebp - 0x3c4]
mov esi, dword [eax]
push ecx
push SysReAllocStringLen
lea ecx, [ebp - 0x3ac]
push ecx
mov ecx, dword [esi + 0x14]
push eax
call dword [0x1008c6d4]
call dword [esi + 0x14]
cmp edi, esp
je 0x10051488
mov ecx, 4
int 0x29
test eax, eax
js 0x10051611
mov ecx, dword [ebp - 0x3b0]
cmp dword [ecx], 0x3a56101f
jne 0x100514f7
xor edi, edi
xor esi, esi
inc edi
cmp dword [ecx + 8], esi
jbe 0x100514fd
mov eax, dword [ecx + 0xc]
push dword [eax + esi*4]
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x3b0]
mov eax, dword [eax + 0xc]
push dword [eax + esi*4]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x100514e9
mov dword [ebp - 0x3bc], 1
mov dword [ebp - 0x3b4], esi
mov ecx, dword [ebp - 0x3b0]
inc esi
cmp esi, dword [ecx + 8]
jb 0x100514a8
jmp 0x100514fd
mov edi, dword [ebp - 0x3c8]
cmp dword [ecx + 0x10], 0x3a550003
jne 0x10051515
mov edx, dword [ebp - 0x3c0]
test edx, edx
je 0x10051515
mov eax, dword [ecx + 0x18]
mov dword [edx], eax
test edi, edi
jne 0x10051576
mov eax, 0x3003001f
cmp dword [ecx + 0x20], eax
jne 0x10051576
xor ebx, ebx
cmp dword [ecx + 0x20], eax
sete bl
xor esi, esi
dec ebx
and ebx, 0xffffffd0
push dword [ebx + ecx + 0x28]
push esi
push 0x143
push dword [ebp - 0x3b8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x3b0]
push dword [ebx + eax + 0x28]
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, dword [ebp - 0x3b8]
test eax, eax
jne 0x10051578
mov dword [ebp - 0x3bc], 1
mov eax, esi
jmp 0x1005157e
xor esi, esi
mov eax, dword [ebp - 0x3b4]
cmp dword [ebp - 0x3bc], 0
jne 0x100515ea
lea ecx, [ebp - 0x194]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x10051590
sub ecx, edx
sar ecx, 1
je 0x100515f8
push 0x104
lea eax, [ebp - 0x39c]
push eax
push 0x10d2
push dword [0x1008b1e4]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x39c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100515f8
lea eax, [ebp - 0x194]
push eax
push esi
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
push eax
push 0x14e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x194]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0x3b0]
call fcn.10033470
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 4