Function at 0x10016460
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfb4
mov eax, dword [0x1003f6e4]
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 0x100165ad
je 0x100164a8
sub eax, 2
je 0x100164c1
sub eax, 0xa
je 0x100164a8
sub eax, 9
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a750
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 0x100164a8
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x10016591
lea edi, [ebx + 0x910]
mov ecx, edi
call fcn.1001ee90
mov esi, eax
test esi, esi
je 0x1001656f
lea ecx, [esi + 0x1c]
call fcn.10011170
lea ecx, [esi + 0x14]
call fcn.10011170
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10016511
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10016522
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp dword [edi], 0
je 0x1001656f
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi]
push 0x10041560
cmp esi, dword [edi + 4]
jne 0x1001654d
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x10016565
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 0x100164f0
test ebx, ebx
je 0x10016586
mov esi, dword [ebx + 4]
push ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10016573
mov eax, dword [esp + 0x10]
mov dword [eax + 0x30], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 0x10
sub eax, 0x86
je 0x100164a8
sub eax, 0x8a
je 0x10016ae1
sub eax, 1
jne 0x100164a8
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
test ebx, ebx
je 0x100164a8
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x30]
movzx eax, cx
cmp eax, 0xa7
ja 0x10016997
je 0x1001694b
sub eax, 1
je 0x10016725
sub eax, 1
je 0x10016926
sub eax, 0xa4
jne 0x100164a8
shr ecx, 0x10
cmp ecx, 1
jne 0x10016591
push 0x7f02
push eax
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.10017ad0
test eax, eax
je 0x1001669c
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.10017d70
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.1003a750
mov esp, ebp
pop ebp
ret 0x10
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.10032910
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.1003a750
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x10016926
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.10017ad0
test eax, eax
jne 0x1001679d
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.10032910
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 0x100027c4
push eax
call dword [sym.imp.msvcrt.dll_wcsstr]
add esp, 8
test eax, eax
je 0x100167e6
xor ecx, ecx
mov word [eax], cx
mov esi, dword [esi + 0x910]
test esi, esi
je 0x1001691c
mov eax, 1
lea esp, [esp]
test eax, eax
je 0x10016890
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x10016845
cmp word [edx], 0
je 0x10016845
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016821
sub ecx, dword [esp + 0x10]
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x10016845
push dword [esi + 0xc]
push edx
push 0x1003fe90
jmp 0x1001684e
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.100176e0
mov esi, dword [esi + 4]
test esi, esi
jne 0x10016800
test eax, eax
jne 0x1001691c
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.10032910
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.1003a750
mov esp, ebp
pop ebp
ret 0x10
shr ecx, 0x10
cmp ecx, 1
jne 0x10016591
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 0x10016591
cmp dword [eax + 8], 0
jne 0x10016591
mov dword [eax + 8], 1
jmp 0x10016591
cmp eax, 0xa8
je 0x100169e3
cmp eax, 0x3f3
je 0x100169b0
cmp eax, 0x7f8b
jne 0x100164a8
inc word [ebx + 0x24]
mov edx, 0x10002398
push 0x258
push 0xf
mov ecx, edi
call fcn.10039d21
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 0x10
shr ecx, 0x10
cmp ecx, 1
jne 0x10016591
test esi, esi
je 0x10016591
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.10032910
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.10031630
test eax, eax
jne 0x10016a9d
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.10017d70
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.1003a750
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 0x10016b45
mov dword [esp + 0x24], 0xae15
mov dword [esp + 0x2c], 0xae14
mov dword [esp + 0x34], 0xae16
mov ecx, edi
call fcn.10015dc0
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 [0x1004138c]
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 [0x10042350]
call esi
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
mov ax, word [esp + 0x40]
lea ecx, [esp + 0x40]
test ax, ax
je 0x10016bc4
movzx edx, ax
lea esp, [esp]
cmp dx, 0x7c
je 0x10016bc4
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10016bb0
movzx eax, word [ecx + 2]
add ecx, 2
mov esi, eax
test ax, ax
je 0x10016bea
mov edx, eax
cmp dx, 0x7c
je 0x10016bf0
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
mov esi, eax
test ax, ax
jne 0x10016bd4
cmp si, 0x7c
jne 0x10016bf5
xor eax, eax
mov word [ecx], ax
mov eax, dword [ebx + 4]
mov edx, 0xa6
push 0
push 0x100027b8
mov ecx, edi
push dword [eax + 0x2c]
call fcn.10031630
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
jmp 0x10016c40
mov esi, dword [ebx]
xor eax, eax
push 0x104
mov word [esp + 0x29c], ax
lea eax, [esp + 0x29c]
push eax
push esi
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x298], 0
jne 0x10016c96
push 0x104
lea eax, [esp + 0x29c]
push eax
push esi
mov esi, dword [0x1004138c]
mov ecx, esi
call dword [0x10042350]
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 0x10016c40
xor eax, eax
push 0x12c
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae01
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
mov edi, dword [esp + 0x10]
jne 0x10016d1e
mov esi, dword [0x1004138c]
lea eax, [esp + 0x40]
push 0x12c
push eax
push 0xae01
mov ecx, esi
call dword [0x10042350]
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 0x10016d88
xor eax, eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae02
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
jne 0x10016dd3
push 0x12c
lea eax, [esp + 0x44]
push eax
push 0xae02
jmp 0x10016dbc
xor eax, eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae16
push dword [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
jne 0x10016dd3
push 0x12c
lea eax, [esp + 0x44]
push eax
push 0xae16
mov esi, dword [0x1004138c]
mov ecx, esi
call dword [0x10042350]
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.10031630
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 0x10016eed
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x10016e60
mov ecx, edi
call fcn.10016360
mov ecx, eax
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x10016e60
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, edi
call fcn.10031a50
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a750
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
test eax, eax
je 0x10016ec5
jmp 0x10016e70
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x6a8]
push 0x104
push eax
mov edx, esi
mov dword [esp + 0x20], 0
call fcn.100194c0
lea eax, [esp + 0x18]
mov edx, ebx
push eax
lea eax, [esp + 0x6ac]
mov ecx, edi
push eax
call fcn.100170a0
test eax, eax
je 0x10016eed
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 0x10016e70
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.10017d70
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.1003a750
mov esp, ebp
pop ebp
ret 0x10