Function at 0x100167e0
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 0x10016924
je 0x10016823
sub eax, 2
je 0x1001683c
sub eax, 0xa
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003bd00
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 0x10016823
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x10016e51
lea edi, [ebx + 0x910]
mov ecx, edi
call fcn.1001f7e0
mov esi, eax
test esi, esi
je 0x100168f0
nop
lea ecx, [esi + 0x1c]
call fcn.100115a0
lea ecx, [esi + 0x14]
call fcn.100115a0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10016891
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100168a2
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp dword [edi], 0
je 0x100168f0
push 0x10043560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi]
push 0x10043560
cmp esi, dword [edi + 4]
jne 0x100168cd
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x100168e5
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 0x10016870
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 0x100168f0
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.1003bd00
mov esp, ebp
pop ebp
ret 0x10
sub eax, 0x86
je 0x10016823
sub eax, 0x8a
je 0x10016e6d
sub eax, 1
jne 0x10016823
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
test ebx, ebx
je 0x10016823
mov edx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x30]
movzx ecx, dx
cmp ecx, 0xa7
ja 0x10016d20
je 0x10016cbd
sub ecx, 1
je 0x10016a9e
sub ecx, 1
je 0x10016c98
sub ecx, 0xa4
jne 0x10016823
shr edx, 0x10
cmp edx, 1
jne 0x10016e51
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.10017de0
test eax, eax
je 0x10016a15
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.10018120
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.1003bd00
mov esp, ebp
pop ebp
ret 0x10
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.100332d0
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.1003bd00
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x10016c98
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.10017de0
test eax, eax
jne 0x10016b16
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.100332d0
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 0x10016b5f
xor ecx, ecx
mov word [eax], cx
mov esi, dword [esi + 0x910]
test esi, esi
je 0x10016c8e
mov eax, 1
test eax, eax
je 0x10016c02
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x10016bb7
cmp word [edx], 0
je 0x10016bb7
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016b93
sub ecx, dword [esp + 0x10]
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x10016bb7
push dword [esi + 0xc]
push edx
push 0x10041e90
jmp 0x10016bc0
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.100179f0
mov esi, dword [esi + 4]
test esi, esi
jne 0x10016b72
test eax, eax
jne 0x10016c8e
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.100332d0
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.1003bd00
mov esp, ebp
pop ebp
ret 0x10
shr edx, 0x10
cmp edx, 1
jne 0x10016e51
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 0x10016e51
cmp dword [eax + 8], 0
jne 0x10016e51
mov dword [eax + 8], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, 0xa8
je 0x10016d6f
cmp ecx, 0x3f3
je 0x10016d3c
cmp ecx, 0x7f8b
jne 0x10016823
inc word [ebx + 0x24]
mov edx, 0x10002398
push 0x258
push 0xf
mov ecx, edi
call fcn.1003b337
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 0x10
shr edx, 0x10
cmp edx, 1
jne 0x10016e51
test esi, esi
je 0x10016e51
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.100332d0
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.10032060
test eax, eax
jne 0x10016e29
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.10018120
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.1003bd00
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 0x10016ed1
mov dword [esp + 0x24], 0xae15
mov dword [esp + 0x2c], 0xae14
mov dword [esp + 0x34], 0xae16
mov ecx, edi
call fcn.10016150
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 [0x1004338c]
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 0x10016f4c
movzx edx, ax
cmp dx, 0x7c
je 0x10016f4c
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x10016f38
movzx eax, word [ecx + 2]
add ecx, 2
mov esi, eax
test ax, ax
je 0x10016f76
mov edx, eax
lea esp, [esp]
cmp dx, 0x7c
je 0x10016f7c
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
mov esi, eax
test ax, ax
jne 0x10016f60
cmp si, 0x7c
jne 0x10016f81
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.10032060
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 esi, dword [ebx]
xor eax, eax
push 0x104
mov word [esp + 0x29c], ax
lea eax, [esp + 0x29c]
push eax
push esi
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x298], 0
jne 0x1001701a
push 0x104
lea eax, [esp + 0x29c]
push eax
push esi
mov esi, dword [0x1004338c]
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 0x10016fc4
xor eax, eax
push 0x12c
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae01
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
mov edi, dword [esp + 0x10]
jne 0x100170a2
mov esi, dword [0x1004338c]
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 0x1001710c
xor eax, eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae02
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
jne 0x10017157
push 0x12c
lea eax, [esp + 0x44]
push eax
push 0xae02
jmp 0x10017140
xor eax, eax
mov word [esp + 0x44], ax
lea eax, [esp + 0x44]
push eax
push 0xae16
push dword [0x10043578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x40], 0
jne 0x10017157
push 0x12c
lea eax, [esp + 0x44]
push eax
push 0xae16
mov esi, dword [0x1004338c]
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.10032060
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 0x1001726d
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x100171e4
mov ecx, edi
call fcn.100166e0
mov ecx, eax
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x100171e4
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, edi
call fcn.10057f64
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003bd00
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
test eax, eax
je 0x10017245
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x6a8]
push 0x104
push eax
mov edx, esi
mov dword [esp + 0x20], 0
call fcn.10019960
lea eax, [esp + 0x18]
mov edx, ebx
push eax
lea eax, [esp + 0x6ac]
mov ecx, edi
push eax
call fcn.100173c0
test eax, eax
je 0x1001726d
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 0x100171f0
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.10018120
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.1003bd00
mov esp, ebp
pop ebp
ret 0x10