Function at 0x413e60
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44d6d6
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 0x413eb1
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 [0x457050]
mov dword [esp + 8], edx
lea eax, [esp + 0x14]
mov dword [esp + 0x81c], esi
test eax, eax
je 0x413ee6
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.00403d70
lea ecx, [esp + 0x10]
call fcn.0040e430
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp word [edi], si
je 0x413f48
mov ax, word [edi]
push eax
call fcn.00439c83
add esp, 4
test eax, eax
je 0x413f27
test esi, esi
jne 0x413f29
mov esi, edi
jmp 0x413f29
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x413f0f
test esi, esi
je 0x413f48
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.0040e430
mov esi, dword [esp + 0x10]
mov ax, word [esi]
push eax
call fcn.00439c83
add esp, 4
test eax, eax
je 0x413f7a
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call fcn.00439c83
add esp, 4
test eax, eax
jne 0x413f65
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 0x413fa7
push ecx
push esi
push eax
call fcn.004398d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax - 8], edi
mov eax, dword [0x457050]
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 0x413fd2
cmp esi, dword [eax - 4]
jle 0x41400c
push esi
lea ecx, [esp + 0x14]
call fcn.00403d10
test eax, eax
je 0x41400c
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.00402e60
mov edx, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [edx - 8], esi
call fcn.00403e70
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00413560
pop edi
pop ebx
test eax, eax
jne 0x4140e0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x414046
mov edx, dword [esi + 4]
push 0x40
push 0x96
push eax
push edx
call fcn.0040a440
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 [0x457054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41409c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41409c
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0042d34c
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x457054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4140c7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4140c7
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0042d34c
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.0040e430
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, 0x45d590
mov word [edx + eax*2], 0
lea eax, [esp + 8]
push eax
call fcn.00411460
mov eax, dword [esp + 0xc]
mov edx, dword [0x457054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414143
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414143
mov edx, dword [esp + 0xc]
lea eax, [edx - 0xc]
push eax
call fcn.0042d34c
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x81c], 0xffffffff
call fcn.00403ce0
mov ecx, dword [esp + 0x814]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x818
ret