Function at 0x10015e40
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 0x10015f8d
je 0x10015e83
sub eax, 2
je 0x10015e9c
sub eax, 0xa
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a1d0
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 0x10015e83
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x100164bf
lea edi, [ebx + 0x910]
mov ecx, edi
call fcn.1001e9b0
mov esi, eax
test esi, esi
je 0x10015f4f
nop
lea ecx, [esi + 0x1c]
call fcn.10010dc0
lea ecx, [esi + 0x14]
call fcn.10010dc0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10015ef1
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [esi + 0x10]
test eax, eax
je 0x10015f02
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
cmp dword [edi], 0
je 0x10015f4f
push 0x10041560
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi]
push 0x10041560
cmp esi, dword [edi + 4]
jne 0x10015f2d
mov dword [edi + 4], 0
mov dword [edi], 0
jmp 0x10015f45
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 0x10015ed0
test ebx, ebx
je 0x10015f66
mov esi, dword [ebx + 4]
push ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10015f53
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.1003a1d0
mov esp, ebp
pop ebp
ret 0x10
sub eax, 0x86
je 0x10015e83
sub eax, 0x8a
je 0x100164db
sub eax, 1
jne 0x10015e83
push 8
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov ebx, eax
test ebx, ebx
je 0x10015e83
mov edx, dword [ebp + 0x10]
mov esi, dword [ebx + 0x30]
movzx ecx, dx
cmp ecx, 0xa7
ja 0x1001638e
je 0x1001632b
sub ecx, 1
je 0x10016107
sub ecx, 1
je 0x10016306
sub ecx, 0xa4
jne 0x10015e83
shr edx, 0x10
cmp edx, 1
jne 0x100164bf
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.100174b0
test eax, eax
je 0x1001607e
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.10017750
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.1003a1d0
mov esp, ebp
pop ebp
ret 0x10
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.10032350
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.1003a1d0
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
je 0x10016306
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.100174b0
test eax, eax
jne 0x1001617f
push 0x12c
lea edx, [esp + 0x6ac]
mov ecx, 0xae06
call fcn.10032350
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 0x100161c8
xor ecx, ecx
mov word [eax], cx
mov esi, dword [esi + 0x910]
test esi, esi
je 0x100162fc
mov eax, 1
jmp 0x100161e0
test eax, eax
je 0x10016270
mov eax, dword [ebx + 4]
mov edx, dword [eax + 0x2c]
test edx, edx
je 0x10016225
cmp word [edx], 0
je 0x10016225
mov ecx, edx
lea eax, [ecx + 2]
mov dword [esp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10016201
sub ecx, dword [esp + 0x10]
sar ecx, 1
cmp word [edx + ecx*2 - 2], 0x5c
jne 0x10016225
push dword [esi + 0xc]
push edx
push 0x1003fe90
jmp 0x1001622e
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.100170c0
mov esi, dword [esi + 4]
test esi, esi
jne 0x100161e0
test eax, eax
jne 0x100162fc
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.10032350
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.1003a1d0
mov esp, ebp
pop ebp
ret 0x10
shr edx, 0x10
cmp edx, 1
jne 0x100164bf
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 0x100164bf
cmp dword [eax + 8], 0
jne 0x100164bf
mov dword [eax + 8], 1
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 0x10
cmp ecx, 0xa8
je 0x100163dd
cmp ecx, 0x3f3
je 0x100163aa
cmp ecx, 0x7f8b
jne 0x10015e83
inc word [ebx + 0x24]
mov edx, 0x10002398
push 0x258
push 0xf
mov ecx, edi
call fcn.10039807
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 0x10
shr edx, 0x10
cmp edx, 1
jne 0x100164bf
test esi, esi
je 0x100164bf
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.10032350
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.100310e0
test eax, eax
jne 0x10016497
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.10017750
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.1003a1d0
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 0x1001653f
mov dword [esp + 0x24], 0xae15
mov dword [esp + 0x2c], 0xae14
mov dword [esp + 0x34], 0xae16
mov ecx, edi
call fcn.10015730
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 0x100165ba
movzx edx, ax
cmp dx, 0x7c
je 0x100165ba
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x100165a6
movzx eax, word [ecx + 2]
add ecx, 2
mov esi, eax
test ax, ax
je 0x100165e6
mov edx, eax
lea ebx, [ebx]
cmp dx, 0x7c
je 0x100165ec
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
mov esi, eax
test ax, ax
jne 0x100165d0
cmp si, 0x7c
jne 0x100165f1
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.100310e0
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 [0x10041578]
call dword [sym.imp.USER32.dll_LoadStringW]
cmp word [esp + 0x298], 0
jne 0x1001668a
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 0x10016634
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 0x10016712
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 0x1001677c
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 0x100167c7
push 0x12c
lea eax, [esp + 0x44]
push eax
push 0xae02
jmp 0x100167b0
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 0x100167c7
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.100310e0
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 0x100168dd
mov ecx, dword [ebx + 0x30]
test ecx, ecx
jne 0x10016854
mov ecx, edi
call fcn.10015d40
mov ecx, eax
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x10]
test ecx, ecx
jne 0x10016854
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetCursor]
mov ecx, edi
call fcn.10055d8f
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xfb0]
xor ecx, esp
call fcn.1003a1d0
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
test eax, eax
je 0x100168b5
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.10018eb0
lea eax, [esp + 0x18]
mov edx, ebx
push eax
lea eax, [esp + 0x6ac]
mov ecx, edi
push eax
call fcn.10016a90
test eax, eax
je 0x100168dd
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 0x10016860
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.10017750
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.1003a1d0
mov esp, ebp
pop ebp
ret 0x10