Function at 0x40a8e7
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4233cc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [esi + 0x14], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x210], 1
je 0x40a922
push 0x4c7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40abd4
cmp dword [ebp + 0xc], edi
push ebx
je 0x40ab90
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
call ebx
test eax, eax
je 0x40a95e
push 0x100
lea eax, [ebp - 0x204]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
mov dword [ebp - 0x208], 1
jne 0x40a964
mov dword [ebp - 0x208], edi
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40a98d
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push 0x401460
push 0x68
push dword [esi + 0xc]
call edi
push 0x401460
push 0x69
push dword [esi + 0xc]
call edi
xor edi, edi
mov eax, dword [ebp + 0x10]
sub eax, edi
je 0x40aa4e
dec eax
je 0x40aa20
dec eax
je 0x40a9e9
dec eax
je 0x40a9b8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x210], edi
jmp 0x40abcd
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40a9d5
push 5
push 0x69
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x208]
neg eax
sbb eax, eax
add eax, 0x99
jmp 0x40aa7a
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aa05
push edi
push 0x69
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x208]
neg eax
sbb eax, eax
add eax, 0x97
mov dword [ebp - 0x20c], 0x3d
jmp 0x40aa84
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aa3d
push 5
push 0x69
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x208]
neg eax
sbb eax, eax
add eax, 0x95
jmp 0x40aa7a
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aa6b
push 5
push 0x69
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 0x208]
neg eax
sbb eax, eax
add eax, 0x93
mov dword [ebp - 0x20c], 0x3c
cmp dword [ebp - 0x208], edi
je 0x40aa9d
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.0041904f
pop ecx
pop ecx
jmp 0x40aaa3
push eax
call fcn.00418f7f
cmp eax, edi
mov dword [ebp - 0x208], eax
je 0x40aae2
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aad7
push dword [ebp - 0x208]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x40aad5
push 0x401460
push dword [esi + 0xc]
call edi
xor edi, edi
push dword [ebp - 0x208]
call fcn.0041a0e7
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x40ab0e
cmp dword [ebp + 0x10], edi
jne 0x40abcd
cmp eax, 0xffffffff
je 0x40abcd
push dword [ebp + 0x14]
push edi
push dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40abcd
push dword [esi + 0x10]
call ebx
test eax, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40ab4d
movzx eax, word [ebp + 0x14]
shl eax, 0x10
push eax
push 0
push 0x401
push dword [esi + 0x10]
call edi
push 0
push 1
push 0x404
push dword [esi + 0x10]
call edi
push 0
push 0
push 0x402
push dword [esi + 0x10]
call edi
cmp dword [ebp + 0x14], 0
je 0x40abcd
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40abcd
push 0x3e
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40abcd
movzx eax, word [ebp - 0x20c]
push eax
push 0
push 0x467
push esi
call edi
push 0xffff0000
push 0xffffffffffffffff
push 0x465
push esi
call edi
jmp 0x40abcd
cmp dword [esi + 0x34], edi
jne 0x40abcd
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40abcd
push 0x3e
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
cmp ebx, edi
je 0x40abcd
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push 0x466
push ebx
call esi
push edi
push edi
push 0x467
push ebx
call esi
mov eax, dword [ebp - 0x210]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.00419805
leave
ret 0x10