Function at 0x407ee8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffb8c
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov eax, 0x491b78
call fcn.00482ea0
mov esi, dword [ebx + 0x13b8]
cmp byte [esi + 0x18b2], 0
je 0x407f2a
cmp byte [0x49ede8], 0
je 0x407f2a
cmp byte [ebx + 0x5d6c], 0
je 0x407f38
mov eax, dword [ebp - 0x44]
mov dword fs:[0], eax
jmp 0x408267
push pe_nt_image_headers32
lea edx, [ebp - 0x250]
push edx
push dword [0x4ad5b4]
call sub.USER32.DLL_GetWindowTextA
mov eax, 0x349
call fcn.00410804
call fcn.0046c1ec
call fcn.0046b7e4
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.004091a4
cmp dword [esi + 0x189c], 0
je 0x407f84
or word [ebx + 0x368c], 0x40
mov eax, ebx
call fcn.00409220
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov word [ebx + 0x3694], ax
mov edx, eax
mov eax, dword [ebp - 0x4c]
sar edx, 0x1f
mov dword [ebx + 0x3698], eax
mov eax, dword [ebx + 0x5d78]
xor edx, edx
push edx
add eax, 7
push eax
mov eax, ebx
xor edx, edx
call fcn.004091a4
xor ecx, ecx
mov edx, 0x73
mov eax, ebx
call fcn.00401afc
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.004091a4
mov word [ebp - 0x34], 8
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.0040ffa8
add dword [ebp - 0x28], 2
mov word [ebp - 0x34], 0x14
mov eax, edi
call fcn.0040a924
mov esi, eax
lea edx, [ebp - 0xa50]
mov ecx, 0x10000000
mov eax, esi
call fcn.0040ea48
lea eax, [ebp - 0xa50]
call fcn.0040d9e0
test al, al
je 0x40804c
push esi
call fcn.00482a30
pop ecx
mov edi, eax
lea eax, [ebp - 0x20]
mov edx, edi
call fcn.00410158
lea eax, [ebp - 0x20]
mov ecx, edi
mov edx, esi
call fcn.00410204
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00410158
jmp 0x40807d
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00410158
lea eax, [ebp - 0xa50]
call fcn.0040eab0
mov esi, eax
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.00410158
lea edx, [ebp - 0xa50]
lea eax, [ebp - 0x20]
mov ecx, esi
call fcn.00410234
push 0x49e7e4
call fcn.00482a30
pop ecx
mov esi, eax
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.00410158
mov edx, 0x49e7e4
lea eax, [ebp - 0x20]
mov ecx, esi
call fcn.00410204
push 0x49e7e4
lea eax, [ebp - 0x1050]
push eax
call fcn.00482a00
add esp, 8
lea edx, [ebp - 0xc50]
lea eax, [ebp - 0x1050]
mov ecx, 0x10000000
call fcn.0040ea48
lea eax, [ebp - 0xc50]
call fcn.0040d9e0
test al, al
je 0x4080e8
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00410158
jmp 0x40810f
lea eax, [ebp - 0xc50]
call fcn.0040eab0
mov esi, eax
lea eax, [ebp - 0x20]
mov edx, esi
call fcn.00410158
lea edx, [ebp - 0xc50]
lea eax, [ebp - 0x20]
mov ecx, esi
call fcn.00410234
push 0
push 0
xor edx, edx
mov eax, ebx
call fcn.004091a4
lea ecx, [ebp - 0x1150]
mov edx, 0x49eae4
mov eax, ebx
call fcn.0040795c
push 0
push 0
mov edx, 2
mov eax, ebx
call fcn.004091a4
lea edx, [ebp - 0x1250]
lea eax, [ebp - 0x1150]
call fcn.0040d8b8
mov edi, eax
lea edx, [ebp - 0x1350]
mov eax, 0x49e9e4
call fcn.0040d8b8
mov esi, eax
lea edx, [ebp - 0x1450]
mov eax, 0x49ebe4
call fcn.0040d8b8
mov dword [ebp - 0x50], eax
mov edx, edi
lea eax, [ebp - 0x20]
call fcn.00410134
lea edx, [ebp - 0x1250]
lea eax, [ebp - 0x20]
mov ecx, edi
call fcn.00410204
mov edx, esi
lea eax, [ebp - 0x20]
call fcn.00410134
lea edx, [ebp - 0x1350]
lea eax, [ebp - 0x20]
mov ecx, esi
call fcn.00410204
mov dl, byte [ebp - 0x50]
lea eax, [ebp - 0x20]
call fcn.00410134
lea edx, [ebp - 0x1450]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0x50]
call fcn.00410204
lea eax, [ebp - 0x1474]
call fcn.00411d14
lea edx, [ebp - 0x1474]
mov eax, ebx
call fcn.004093c4
lea eax, [ebp - 0x1474]
call fcn.00411f5c
mov edx, eax
lea eax, [ebp - 0x20]
call fcn.0041018c
lea esi, [ebx + 0x43a4]
xor edx, edx
lea eax, [esi + 0xc30]
call fcn.004017ac
mov word [esi + 8], 0x8000
xor ecx, ecx
lea edx, [ebx + 0x4fd4]
mov dword [esi + 0x24], ecx
lea eax, [ebp - 0x20]
or word [ebx + 0x43ac], 0x4000
call fcn.004102cc
push 0
push 0x491aac
push 0
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.004031f8
lea eax, [ebp - 0x250]
call fcn.0046c1ec
call fcn.0046b7e4
sub dword [ebp - 0x28], 2
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00410028
mov ecx, dword [ebp - 0x44]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret