Function at 0x10016ab0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfb4
mov eax, dword [0x100416e4]
xor eax, esp
mov dword [esp + 0xfb0], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x10], ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x10], edi
cmp eax, 0x19
ja 0x10016bf4
je 0x10016af3
sub eax, 2
je 0x10016b0c
sub eax, 0xa
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10016af3
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x10017121
lea edi, [ebx + 0x910]
mov ecx, edi
call fcn.1001fb90
mov esi, eax
test esi, esi
je 0x10016bc0
nop
lea ecx, [esi + 0x1c]
call fcn.10011860
lea ecx, [esi + 0x14]
call fcn.10011860
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10016b61
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10016b72
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp dword [edi], 0
je 0x10016bc0
push 0x10043500
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi]
push 0x10043500
cmp esi, dword [edi + 4]
jne 0x10016b9d
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x10016bb5
mov eax, dword [esi + 4]
mov dword [edi], eax
mov dword [eax], 0
mov dword [esi + 4], 0
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x10016b40
nop
mov esi, dword [ebx + 4]
push ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10016bc0
mov eax, dword [esp + 0x10]
mov dword [eax + 0x30], esi
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
sub eax, 0x86
je 0x10016af3
sub eax, 0x8a
je 0x1001713d
sub eax, 1
jne 0x10016af3
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
test ebx, ebx
je 0x10016af3
mov edx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x30]
movzx ecx, dx
cmp ecx, 0xa7
ja 0x10016ff0
je 0x10016f8d
sub ecx, 1
je 0x10016d6e
sub ecx, 1
je 0x10016f68
sub ecx, 0xa4
jne 0x10016af3
shr edx, 0x10
cmp edx, 1
jne 0x10017121
push 0x7f02
push ecx
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
movzx ecx, word [esi + 0x1520]
mov edx, esi
push ecx
mov ecx, edi
mov ebx, eax
call fcn.100180c0
test eax, eax
je 0x10016ce5
push 0
push 0
push 0x188
push 0xa6
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
movzx edx, ax
mov ecx, edi
mov word [esi + 0x1520], dx
call fcn.10018400
push ebx
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.100338a0
push 0x104
lea eax, [esp + 0x4a4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea eax, [esp + 0x4a4]
push eax
lea eax, [esp + 0x6b0]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push 0
push 0x188
push 0xa6
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
mov word [esi + 0x1520], ax
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x10016f68
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
movzx ecx, word [esi + 0x1520]
mov edx, esi
push ecx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.100180c0
test eax, eax
jne 0x10016de6
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.100338a0
push 0x104
lea eax, [esp + 0x4a4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea eax, [esp + 0x4a4]
push eax
lea eax, [esp + 0x6b0]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebx + 4]
movzx ecx, byte [eax + 0xa9]
mov eax, dword [eax + 0xac]
push dword [eax + ecx*4 + 0x1c]
lea eax, [esp + 0x4a4]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x4a0]
push 0x100027ac
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 8
test eax, eax
je 0x10016e2f
xor ecx, ecx
mov word [eax], cx
mov esi, dword [esi + 0x910]
test esi, esi
je 0x10016f5e
mov eax, 1
test eax, eax
je 0x10016ed2
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x10016e87
cmp word [edx], 0
je 0x10016e87
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016e63
sub ecx, dword [esp + 0x10]
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x10016e87
push dword [esi + 0xc]
push edx
push 0x10041e60
jmp 0x10016e90
push dword [esi + 0xc]
push edx
push str._s_s.inf
lea eax, [esp + 0x2a4]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x14
lea eax, [esp + 0x298]
mov edx, esi
mov ecx, ebx
push eax
lea eax, [esp + 0x4a4]
push eax
call fcn.10017cd0
mov esi, dword [esi + 4]
test esi, esi
jne 0x10016e42
test eax, eax
jne 0x10016f5e
push 0x102
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x908]
push 0x103
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
lea edx, [esp + 0xb08]
mov ecx, 0xae07
push 0x12c
call fcn.100338a0
lea eax, [esp + 0x900]
push eax
lea eax, [esp + 0xb0c]
push eax
lea eax, [esp + 0xd68]
push 0x12c
push eax
call dword [sym.imp.msvcrt.dll_swprintf_s]
add esp, 0x10
lea eax, [esp + 0x6a8]
push 0x104
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x40
lea eax, [esp + 0x6ac]
push eax
lea eax, [esp + 0xd68]
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetCursor]
push 0
push edi
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
shr edx, 0x10
cmp edx, 1
jne 0x10017121
movzx eax, word [esi + 0x1520]
push 0
push eax
push 0x199
push 0xa6
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x10017121
cmp dword [eax + 8], 0
jne 0x10017121
mov dword [eax + 8], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, 0xa8
je 0x1001703f
cmp ecx, 0x3f3
je 0x1001700c
cmp ecx, 0x7f8b
jne 0x10016af3
inc word [ebx + 0x24]
mov edx, 0x10002380
push 0x258
push 0xf
mov ecx, edi
call fcn.1003b9a1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
shr edx, 0x10
cmp edx, 1
jne 0x10017121
test esi, esi
je 0x10017121
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0xa8
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x147
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push eax
push 0x150
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x12c
lea edx, [esp + 0x44]
mov ecx, eax
call fcn.100338a0
push 0xa7
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xb
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebx + 4]
lea eax, [esp + 0x40]
push 1
push eax
mov edx, 0xa7
push dword [ecx + 0x2c]
mov ecx, edi
call fcn.100325b0
test eax, eax
jne 0x100170f9
push eax
push 0xffffffffffffffff
push 0x14e
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 1
push 0xb
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dx, word [esi + 0x1520]
mov ecx, edi
call fcn.10018400
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetCursor]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebx + 4]
mov dword [esp + 0x20], 0xadfd
mov dword [esp + 0x24], 0xadfe
mov dword [esp + 0x28], 0xadff
cmp byte [eax + 0xa8], 0x18
mov dword [esp + 0x2c], 0xae00
mov dword [esp + 0x30], 0xae01
mov dword [esp + 0x34], 0xae02
mov dword [esp + 0x38], 0xae03
mov dword [esp + 0x3c], 0xae04
jne 0x100171a1
mov dword [esp + 0x24], 0xae15
mov dword [esp + 0x2c], 0xae14
mov dword [esp + 0x34], 0xae16
mov ecx, edi
call fcn.10016420
push ebx
push 8
push edi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [ebx + 4]
mov esi, dword [0x1004332c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x40]
push 0x12c
mov ecx, dword [ecx + 0xac]
push eax
push dword [ecx + 0x10]
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ax, word [esp + 0x40]
lea ecx, [esp + 0x40]
test ax, ax
je 0x1001721c
movzx edx, ax
cmp dx, 0x7c
je 0x1001721c
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10017208
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
je 0x1001724b
mov edx, eax
lea ebx, [ebx]
cmp dx, 0x7c
je 0x10017246
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10017230
jmp 0x1001724b
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebx + 4]
mov edx, 0xa6
push 0
push 0x100027a0
mov ecx, edi
push dword [eax + 0x2c]
call fcn.100325b0
push 0xa8
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
mov edi, eax
push 0x14b
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [esp + 0x20]
mov dword [esp + 0x14], 4
mov edi, edi
mov esi, dword [ebx]
xor eax, eax
push 0x104
mov word [esp + 0x29c], ax
lea eax, [esp + 0x29c]
push eax
push esi
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x298], 0
jne 0x100172e6
push 0x104
lea eax, [esp + 0x29c]
push eax
push esi
mov esi, dword [0x1004332c]
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x298]
push eax
push 0
push 0x143
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebx + 4]
push eax
push 0x151
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
add ebx, 8
sub dword [esp + 0x14], 1
jne 0x10017290
xor eax, eax
push 0x12c
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae01
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
mov edi, dword [esp + 0x10]
jne 0x1001736e
mov esi, dword [0x1004332c]
lea eax, [esp + 0x40]
push 0x12c
push eax
push 0xae01
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x40]
push eax
push 0xffffffffffffffff
push 0x14d
push 0xa8
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, dword [esp + 0x18]
push 0x12c
mov eax, dword [ebx + 4]
cmp byte [eax + 0xa8], 0x15
jne 0x100173d8
xor eax, eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae02
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
jne 0x10017423
push 0x12c
lea eax, [esp + 0x44]
push eax
push 0xae02
jmp 0x1001740c
xor eax, eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae16
push dword [0x10043518]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
jne 0x10017423
push 0x12c
lea eax, [esp + 0x44]
push eax
push 0xae16
mov esi, dword [0x1004332c]
mov ecx, esi
call dword [0x10044350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
push 1
lea eax, [esp + 0x44]
mov edx, 0xa7
push eax
mov eax, dword [ebx + 4]
mov ecx, edi
push dword [eax + 0x2c]
call fcn.100325b0
push 0xa6
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0x18b
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001753d
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x100174b0
mov ecx, edi
call fcn.100169b0
mov ecx, eax
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x100174b0
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, edi
call fcn.10032980
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
test eax, eax
je 0x10017515
jmp 0x100174c0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x6a8]
push 0x104
push eax
mov edx, esi
mov dword [esp + 0x20], 0
call fcn.10019c50
lea eax, [esp + 0x18]
mov edx, ebx
push eax
lea eax, [esp + 0x6ac]
mov ecx, edi
push eax
call fcn.100176a0
test eax, eax
je 0x1001753d
push dword [esp + 0x18]
push esi
push 0x19a
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, dword [esp + 0x10]
jb 0x100174c0
push 0
push 0
push 0x186
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
mov ecx, edi
call fcn.10018400
mov eax, dword [ebx + 0x30]
xor ecx, ecx
mov word [eax + 0x1520], cx
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, dword [esp + 0xfbc]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1003c3b0
mov esp, ebp
pop ebp
ret 0x10