Function at 0x40a917
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 0x40a952
push 0x4c7
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40ac04
cmp dword [ebp + 0xc], edi
push ebx
je 0x40abc0
push dword [esi + 4]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
call ebx
test eax, eax
je 0x40a98e
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 0x40a994
mov dword [ebp - 0x208], edi
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40a9bd
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 0x40aa7e
dec eax
je 0x40aa50
dec eax
je 0x40aa19
dec eax
je 0x40a9e8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x210], edi
jmp 0x40abfd
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aa05
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 0x40aaaa
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aa35
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 0x40aab4
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aa6d
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 0x40aaaa
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40aa9b
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 0x40aacd
lea ecx, [ebp - 0x204]
push ecx
push eax
call fcn.0041907f
pop ecx
pop ecx
jmp 0x40aad3
push eax
call fcn.00418faf
cmp eax, edi
mov dword [ebp - 0x208], eax
je 0x40ab12
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40ab07
push dword [ebp - 0x208]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x40ab05
push 0x401460
push dword [esi + 0xc]
call edi
xor edi, edi
push dword [ebp - 0x208]
call fcn.0041a398
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x40ab3e
cmp dword [ebp + 0x10], edi
jne 0x40abfd
cmp eax, 0xffffffff
je 0x40abfd
push dword [ebp + 0x14]
push edi
push dword [esi + 0x38]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40abfd
push dword [esi + 0x10]
call ebx
test eax, eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x40ab7d
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 0x40abfd
push dword [esi + 0xc]
call ebx
test eax, eax
je 0x40abfd
push 0x3e
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x40abfd
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 0x40abfd
cmp dword [esi + 0x34], edi
jne 0x40abfd
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40abfd
push 0x3e
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
cmp ebx, edi
je 0x40abfd
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.00419835
leave
ret 0x10