Function at 0x413e50
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44db16
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 0x413ea1
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 [0x458050]
mov dword [esp + 8], edx
lea eax, [esp + 0x14]
mov dword [esp + 0x81c], esi
test eax, eax
je 0x413ed6
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.00403e10
lea ecx, [esp + 0x10]
call fcn.0040e420
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
cmp word [edi], si
je 0x413f38
mov ax, word [edi]
push eax
call fcn.0043a0d3
add esp, 4
test eax, eax
je 0x413f17
test esi, esi
jne 0x413f19
mov esi, edi
jmp 0x413f19
xor esi, esi
push edi
call ebx
mov edi, eax
cmp word [edi], 0
jne 0x413eff
test esi, esi
je 0x413f38
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.0040e420
mov esi, dword [esp + 0x10]
mov ax, word [esi]
push eax
call fcn.0043a0d3
add esp, 4
test eax, eax
je 0x413f6a
push esi
call ebx
mov esi, eax
mov ax, word [esi]
push eax
call fcn.0043a0d3
add esp, 4
test eax, eax
jne 0x413f55
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 0x413f97
push ecx
push esi
push eax
call fcn.00439d20
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax - 8], edi
mov eax, dword [0x458050]
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 0x413fc2
cmp esi, dword [eax - 4]
jle 0x413ffc
push esi
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x413ffc
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.00402e50
mov edx, dword [esp + 0x20]
add esp, 0x10
push edi
mov dword [edx - 8], esi
call fcn.00403f10
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00413550
pop edi
pop ebx
test eax, eax
jne 0x4140d0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x414036
mov edx, dword [esi + 4]
push 0x40
push 0x96
push eax
push edx
call fcn.0040a430
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 [0x458054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x41408c
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x41408c
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
add esp, 4
mov eax, dword [esp + 8]
mov edx, dword [0x458054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4140b7
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4140b7
mov edx, dword [esp + 8]
add edx, 0xfffffff4
push edx
call fcn.0042d78e
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.0040e420
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, 0x45e628
mov word [edx + eax*2], 0
lea eax, [esp + 8]
push eax
call fcn.00411450
mov eax, dword [esp + 0xc]
mov edx, dword [0x458054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x414133
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x414133
mov edx, dword [esp + 0xc]
lea eax, [edx - 0xc]
push eax
call fcn.0042d78e
add esp, 4
lea ecx, [esp + 8]
mov dword [esp + 0x81c], 0xffffffff
call fcn.00403d80
mov ecx, dword [esp + 0x814]
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x818
ret