Function at 0x409de0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44a1a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80c
mov eax, dword [ecx + 4]
push ebp
push esi
push 0x3ee
push eax
mov dword [esp + 0x18], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
xor esi, esi
cmp ebp, esi
jne 0x409e31
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
lea ecx, [esp + 0x14]
push 0x400
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [0x455050]
mov dword [esp + 8], edx
lea eax, [esp + 0x14]
mov dword [esp + 0x81c], esi
test eax, eax
je 0x409e66
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea edx, [esp + 0x18]
push edi
push edx
push eax
lea ecx, [esp + 0x18]
call fcn.00404a30
lea ecx, [esp + 0x10]
call fcn.0040ab90
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp word [edi], si
je 0x409ec8
mov ax, word [edi]
push eax
call fcn.004376a3
add esp, 4
test eax, eax
je 0x409ea7
test esi, esi
jne 0x409ea9
mov esi, edi
jmp 0x409ea9
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x409e8f
test esi, esi
je 0x409ec8
mov word [esi], 0
mov eax, dword [esp + 0x10]
sub esi, eax
sar esi, 1
mov dword [eax - 8], esi
lea ecx, [esp + 0x10]
call fcn.0040ab90
mov esi, dword [esp + 0x10]
mov ax, word [esi]
push eax
call fcn.004376a3
add esp, 4
test eax, eax
je 0x409efa
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call fcn.004376a3
add esp, 4
test eax, eax
jne 0x409ee5
mov eax, dword [esp + 0x10]
mov ecx, esi
sub ecx, eax
mov edi, dword [eax - 8]
mov edx, dword [eax - 4]
sar ecx, 1
sub edi, ecx
lea edx, [edx + edx + 2]
lea ecx, [edi + edi + 2]
cmp edx, ecx
jb 0x409f27
push ecx
push esi
push eax
call fcn.004372f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax - 8], edi
mov eax, dword [0x455050]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov byte [esp + 0x824], 1
mov ecx, dword [eax - 0xc]
mov esi, dword [eax - 8]
lea edi, [eax - 0xc]
cmp ecx, 1
jg 0x409f52
cmp esi, dword [eax - 4]
jle 0x409f8c
push esi
lea ecx, [esp + 0x14]
call fcn.00401820
test eax, eax
je 0x409f8c
lea ecx, [esi + esi + 2]
lea edx, [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esi + esi + 2]
push edx
push eax
push ecx
call fcn.004017c0
mov edx, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [edx - 8], esi
call fcn.004018c0
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00409590
pop edi
pop ebx
test eax, eax
jne 0x40a060
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x409fc6
mov edx, dword [esi + 4]
push 0x40
push 0x96
push eax
push edx
call fcn.00418ed0
add esp, 0x10
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0
push 0xb1
push ebp
call esi
push 0
push 0
push 0xb7
push ebp
call esi
push ebp
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0xc]
mov edx, dword [0x455054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40a01c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40a01c
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x455054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40a047
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40a047
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0042ac06
add esp, 4
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x80c]
mov dword fs:[0], ecx
add esp, 0x818
ret
lea ecx, [esp + 8]
call fcn.0040ab90
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 8]
mov dword [ecx - 8], eax
mov edx, dword [esp + 8]
mov ecx, 0x45b530
mov word [edx + eax*2], 0
lea eax, [esp + 8]
push eax
call fcn.00405670
mov eax, dword [esp + 0xc]
mov edx, dword [0x455054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40a0c3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40a0c3
mov edx, dword [esp + 0xc]
lea eax, [edx - 0xc]
push eax
call fcn.0042ac06
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x81c], 0xffffffff
call fcn.004017f0
mov ecx, dword [esp + 0x814]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x818
ret