Function at 0x408f20
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44a121
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x814
mov eax, dword [esp + 0x824]
push ebx
push ebp
mov ebp, ecx
cmp eax, 0x300
push esi
mov dword [esp + 0x1c], ebp
jne 0x409299
mov eax, dword [ebp + 4]
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x409299
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x26]
mov word [esp + 0x24], bx
push 0x3ff
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
push ecx
push esi
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x455050]
mov dword [esp + 0x14], edx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x834], ebx
call fcn.00408240
test eax, eax
jne 0x409006
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
je 0x408fe9
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push ebx
push 0xb1
push esi
call edi
push ebx
push ebx
push 0xb7
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push ebx
lea ecx, [ebp + 0x358]
call fcn.0041dfe0
lea ecx, [ebp + 0xa0]
push 0x3871e6
mov dword [esp + 0x20], ecx
jmp 0x409022
push 1
lea ecx, [ebp + 0x358]
call fcn.0041dfe0
lea ecx, [ebp + 0xa0]
push 0x444444
mov dword [esp + 0x20], ecx
call fcn.00424490
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], ebx
jne 0x409276
mov eax, dword [0x455050]
mov dword [esp + 0x18], eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
mov byte [esp + 0x82c], 1
test eax, eax
je 0x4090b1
lea ecx, [esp + 0x24]
shr ecx, 0x10
jne 0x409075
xor eax, eax
lea edx, [esp + 0x24]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.004015b0
jmp 0x4090b1
lea eax, [esp + 0x24]
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x4090b1
push esi
lea ecx, [esp + 0x14]
call fcn.00401820
test eax, eax
je 0x4090b1
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x4090b1
mov edi, dword [esp + 0x10]
mov eax, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov ecx, 0x4557e4
test ecx, ecx
mov byte [esp + 0x82c], 2
je 0x409162
push ecx
call ebp
test eax, eax
je 0x409162
lea ecx, [esp + 0x10]
call fcn.0040ab90
mov esi, dword [esp + 0x10]
cmp word [esi], 0
je 0x409162
push esi
call ebx
mov edi, eax
lea eax, [esi + 2]
cmp edi, eax
jbe 0x409111
mov dx, word [eax]
mov ax, word [esi]
push edx
push eax
push 0x4557e4
call fcn.0040ace0
add esp, 0xc
test eax, eax
je 0x40912e
jmp 0x409126
mov ax, word [esi]
push eax
push 0x4557e4
call fcn.0043793f
add esp, 8
test eax, eax
je 0x40912e
cmp word [edi], 0
mov esi, edi
jne 0x4090ea
mov eax, dword [esp + 0x10]
cmp esi, eax
je 0x409162
mov edi, dword [eax - 8]
mov edx, dword [eax - 4]
mov ecx, esi
sub ecx, eax
lea edx, [edx + edx + 2]
sar ecx, 1
sub edi, ecx
lea ecx, [edi + edi + 2]
cmp edx, ecx
jb 0x40915f
push ecx
push esi
push eax
call fcn.004372f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax - 8], edi
lea ecx, [esp + 0x10]
call fcn.0040ab90
mov esi, dword [esp + 0x10]
xor edi, edi
cmp word [esi], di
je 0x4091df
push esi
call ebx
mov ebp, eax
lea eax, [esi + 2]
cmp ebp, eax
jbe 0x4091a3
mov ax, word [eax]
mov cx, word [esi]
push eax
push ecx
push 0x4557e4
call fcn.0040ace0
add esp, 0xc
test eax, eax
je 0x4091c0
test edi, edi
jne 0x4091c2
mov edi, esi
jmp 0x4091c2
mov ax, word [esi]
push eax
push 0x4557e4
call fcn.0043793f
add esp, 8
test eax, eax
je 0x4091c0
test edi, edi
jne 0x4091c2
mov edi, esi
jmp 0x4091c2
xor edi, edi
cmp word [ebp], 0
mov esi, ebp
jne 0x409176
test edi, edi
je 0x4091df
mov word [edi], 0
mov eax, dword [esp + 0x10]
sub edi, eax
sar edi, 1
mov dword [eax - 8], edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x24]
mov ax, word [edx]
push eax
call fcn.004092c0
mov edx, dword [esp + 0x18]
mov eax, dword [0x45b5a0]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x8b
push ecx
call fcn.004041e0
mov eax, dword [esp + 0x20]
mov ecx, dword [0x455054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x10
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x409243
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x409243
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042ac06
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x455054]
mov byte [esp + 0x82c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409276
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x409276
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0042ac06
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0041f230
lea ecx, [esp + 0x14]
mov dword [esp + 0x82c], 0xffffffff
call fcn.004017f0
pop edi
mov ecx, dword [esp + 0x820]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x820
ret 0xc