Function at 0x10015b60
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x1003f6e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x40f
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 8
mov ebx, eax
push edi
mov dword [ebp - 0x268], ebx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov esi, eax
mov dword [ebp - 0x264], esi
test esi, esi
jne 0x10015bb7
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003a750
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x18b
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esi + 4]
mov ebx, eax
push 0x12c
lea eax, [ebp - 0x25c]
push eax
push 0x3f1
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 8]
test eax, eax
je 0x10015c03
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [esi + 8], 0
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015c10
sub ecx, edx
lea eax, [esi + 0x6c]
sar ecx, 1
lea edx, [ebp - 0x25c]
push eax
push ecx
mov ecx, dword [esi + 0x7c]
call fcn.10032020
push 0x12c
mov dword [esi + 8], eax
lea eax, [ebp - 0x25c]
push eax
push 0x3f2
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10015c6c
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov dword [esi + 0xc], 0
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10015c75
sub ecx, edx
lea eax, [esi + 0x6c]
sar ecx, 1
lea edx, [ebp - 0x25c]
push eax
push ecx
mov ecx, dword [esi + 0x7c]
call fcn.10032020
mov dword [esi + 0xc], eax
test ebx, ebx
je 0x10015da3
mov esi, dword [ebp - 0x268]
push 0
dec ebx
push ebx
push 0x199
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x10015d9b
xor eax, eax
mov edx, ebx
mov word [ebp - 0x25c], ax
mov ecx, esi
push 0x12c
lea eax, [ebp - 0x25c]
push eax
call fcn.100194c0
lea eax, [ebp - 0x25c]
push 9
push eax
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
push 9
lea ecx, [esi + 2]
push ecx
call dword [sym.imp.msvcrt.dll_wcschr]
add eax, 2
push 0x10007e20
mov dword [ebp - 0x260], eax
xor eax, eax
push 0x20
push 0x1d
mov word [esi], ax
lea eax, [ebp - 0x25c]
push section..data
push eax
call dword [sym.imp.msvcrt.dll_bsearch]
mov edi, eax
add esp, 0x24
mov eax, dword [ebp - 0x260]
mov esi, eax
lea edx, [esi + 2]
mov cx, word [esi]
add esi, 2
test cx, cx
jne 0x10015d34
sub esi, edx
push edi
push eax
sar esi, 1
call dword [sym.imp.msvcrt.dll__wtol]
add esp, 4
push eax
mov eax, dword [ebp - 0x264]
push esi
push dword [ebp - 0x260]
mov esi, dword [edi + 0xc]
mov ecx, esi
push dword [eax + 4]
call dword [0x10042350]
call esi
movzx eax, ax
test ax, ax
je 0x10015d7a
cmp ax, 1
jne 0x10015da5
xor ecx, ecx
call fcn.10007e00
mov esi, dword [ebp - 0x264]
sub edi, eax
sar edi, 5
mov eax, dword [esi + 8]
bts eax, edi
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x268]
test ebx, ebx
jne 0x10015ca8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003a750
mov esp, ebp
pop ebp
ret