Function at 0x100161c0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x100416e4]
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 0x10016217
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003c3b0
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 0x10016263
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 0x10016270
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.10057dab
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 0x100162cc
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 0x100162d5
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.10032f70
mov dword [esi + 0xc], eax
test ebx, ebx
je 0x10016403
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 0x100163fb
xor eax, eax
mov edx, ebx
mov word [ebp - 0x25c], ax
mov ecx, esi
push 0x12c
lea eax, [ebp - 0x25c]
push eax
call fcn.10019c50
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 0x10007b70
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 0x10016394
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 [0x10044350]
call esi
movzx eax, ax
test ax, ax
je 0x100163da
cmp ax, 1
jne 0x10016405
xor ecx, ecx
call fcn.10007b50
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 0x10016308
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret