Function at 0x412ed0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44d641
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 0x413249
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 0x413249
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 [0x457050]
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.00412180
test eax, eax
jne 0x412fb6
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
je 0x412f99
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.0040dde0
lea ecx, [ebp + 0xa0]
push 0x3871e6
mov dword [esp + 0x20], ecx
jmp 0x412fd2
push 1
lea ecx, [ebp + 0x370]
call fcn.0040dde0
lea ecx, [ebp + 0xa0]
push 0x444444
mov dword [esp + 0x20], ecx
call fcn.00408580
mov edx, dword [esp + 0x14]
cmp dword [edx - 8], ebx
jne 0x413226
mov eax, dword [0x457050]
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 0x413061
lea ecx, [esp + 0x24]
shr ecx, 0x10
jne 0x413025
xor eax, eax
lea edx, [esp + 0x24]
mov ax, dx
lea ecx, [esp + 0x10]
push eax
call fcn.004076c0
jmp 0x413061
lea eax, [esp + 0x24]
push eax
call ebp
mov esi, eax
cmp esi, ebx
je 0x413061
push esi
lea ecx, [esp + 0x14]
call fcn.00403d10
test eax, eax
je 0x413061
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x413061
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, 0x45745c
test ecx, ecx
mov byte [esp + 0x82c], 2
je 0x413112
push ecx
call ebp
test eax, eax
je 0x413112
lea ecx, [esp + 0x10]
call fcn.0040e430
mov esi, dword [esp + 0x10]
cmp word [esi], 0
je 0x413112
push esi
call ebx
mov edi, eax
lea eax, [esi + 2]
cmp edi, eax
jbe 0x4130c1
mov dx, word [eax]
mov ax, word [esi]
push edx
push eax
push 0x45745c
call fcn.00414b20
add esp, 0xc
test eax, eax
je 0x4130de
jmp 0x4130d6
mov ax, word [esi]
push eax
push 0x45745c
call fcn.0043a01f
add esp, 8
test eax, eax
je 0x4130de
cmp word [edi], 0
mov esi, edi
jne 0x41309a
mov eax, dword [esp + 0x10]
cmp esi, eax
je 0x413112
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 0x41310f
push ecx
push esi
push eax
call fcn.004398d0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [eax - 8], edi
lea ecx, [esp + 0x10]
call fcn.0040e430
mov esi, dword [esp + 0x10]
xor edi, edi
cmp word [esi], di
je 0x41318f
push esi
call ebx
mov ebp, eax
lea eax, [esi + 2]
cmp ebp, eax
jbe 0x413153
mov ax, word [eax]
mov cx, word [esi]
push eax
push ecx
push 0x45745c
call fcn.00414b20
add esp, 0xc
test eax, eax
je 0x413170
test edi, edi
jne 0x413172
mov edi, esi
jmp 0x413172
mov ax, word [esi]
push eax
push 0x45745c
call fcn.0043a01f
add esp, 8
test eax, eax
je 0x413170
test edi, edi
jne 0x413172
mov edi, esi
jmp 0x413172
xor edi, edi
cmp word [ebp], 0
mov esi, ebp
jne 0x413126
test edi, edi
je 0x41318f
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.00413270
mov edx, dword [esp + 0x18]
mov eax, dword [0x45d600]
push edx
push eax
lea ecx, [esp + 0x1c]
push 0x8b
push ecx
call fcn.00403490
mov eax, dword [esp + 0x20]
mov ecx, dword [0x457054]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 0x10
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4131f3
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4131f3
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0042d34c
add esp, 4
mov eax, dword [esp + 0x18]
mov edx, dword [0x457054]
mov byte [esp + 0x82c], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x413226
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x413226
mov edx, dword [esp + 0x18]
lea eax, [edx - 0xc]
push eax
call fcn.0042d34c
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0040f580
lea ecx, [esp + 0x14]
mov dword [esp + 0x82c], 0xffffffff
call fcn.00403ce0
pop edi
mov ecx, dword [esp + 0x820]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x820
ret 0xc