Function at 0x412ec0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44da81
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 0x413239
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 0x413239
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 [0x458050]
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.00412170
test eax, eax
jne 0x412fa6
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
je 0x412f89
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 + 0x370]
call fcn.0040ddd0
lea ecx, [ebp + 0xa0]
push 0x3871e6
mov dword [esp + 0x20], ecx
jmp 0x412fc2
push 1
lea ecx, [ebp + 0x370]
call fcn.0040ddd0
lea ecx, [ebp + 0xa0]
push 0x444444
mov dword [esp + 0x20], ecx
call fcn.00408570
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], ebx
jne 0x413216
mov eax, dword [0x458050]
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 0x413051
lea ecx, [esp + 0x24]
shr ecx, 0x10
jne 0x413015
xor eax, eax
lea edx, [esp + 0x24]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.004076b0
jmp 0x413051
lea eax, [esp + 0x24]
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x413051
push esi
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x413051
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x413051
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, 0x4584d0
test ecx, ecx
mov byte [esp + 0x82c], 2
je 0x413102
push ecx
call ebp
test eax, eax
je 0x413102
lea ecx, [esp + 0x10]
call fcn.0040e420
mov esi, dword [esp + 0x10]
cmp word [esi], 0
je 0x413102
push esi
call ebx
mov edi, eax
lea eax, [esi + 2]
cmp edi, eax
jbe 0x4130b1
mov dx, word [eax]
mov ax, word [esi]
push edx
push eax
push 0x4584d0
call fcn.00414f50
add esp, 0xc
test eax, eax
je 0x4130ce
jmp 0x4130c6
mov ax, word [esi]
push eax
push 0x4584d0
call fcn.0043a46f
add esp, 8
test eax, eax
je 0x4130ce
cmp word [edi], 0
mov esi, edi
jne 0x41308a
mov eax, dword [esp + 0x10]
cmp esi, eax
je 0x413102
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 0x4130ff
push ecx
push esi
push eax
call fcn.00439d20
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax - 8], edi
lea ecx, [esp + 0x10]
call fcn.0040e420
mov esi, dword [esp + 0x10]
xor edi, edi
cmp word [esi], di
je 0x41317f
push esi
call ebx
mov ebp, eax
lea eax, [esi + 2]
cmp ebp, eax
jbe 0x413143
mov ax, word [eax]
mov cx, word [esi]
push eax
push ecx
push 0x4584d0
call fcn.00414f50
add esp, 0xc
test eax, eax
je 0x413160
test edi, edi
jne 0x413162
mov edi, esi
jmp 0x413162
mov ax, word [esi]
push eax
push 0x4584d0
call fcn.0043a46f
add esp, 8
test eax, eax
je 0x413160
test edi, edi
jne 0x413162
mov edi, esi
jmp 0x413162
xor edi, edi
cmp word [ebp], 0
mov esi, ebp
jne 0x413116
test edi, edi
je 0x41317f
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.00413260
mov edx, dword [esp + 0x18]
mov eax, dword [0x45e698]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x8b
push ecx
call fcn.00403530
mov eax, dword [esp + 0x20]
mov ecx, dword [0x458054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x10
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4131e3
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4131e3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042d78e
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x458054]
mov byte [esp + 0x82c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x413216
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x413216
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0042d78e
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040f570
lea ecx, [esp + 0x14]
mov dword [esp + 0x82c], 0xffffffff
call fcn.00403d80
pop edi
mov ecx, dword [esp + 0x820]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x820
ret 0xc