Function at 0x4312b0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4ab5f1
push eax
mov eax, 0x202c
mov dword fs:[0], esp
call fcn.004a0d60
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ecx, [ebx + 0x20]
call fcn.00437680
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x124]
xor esi, esi
cmp eax, esi
jne 0x4312f3
mov dword [esp + 0x18], esi
jmp 0x431302
mov ecx, dword [ebx + 0x128]
sub ecx, eax
sar ecx, 3
mov dword [esp + 0x18], ecx
mov ecx, 0x800
xor eax, eax
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4c0080]
mov dword [esp + 0x10], eax
mov ebp, eax
mov dword [esp + 0x2044], esi
mov dword [esp + 0x20], ebp
lea eax, [esp + 0x17]
lea ecx, [esp + 0x16]
push eax
push esi
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x2050], 1
call fcn.00428c30
lea edx, [esp + 0x2c]
mov ecx, ebx
push edx
mov byte [esp + 0x2048], 2
call fcn.004308b0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x4314f7
mov eax, dword [ebx + 0x124]
mov ecx, dword [eax + esi*8 + 4]
mov edx, dword [eax + esi*8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
call fcn.00435f80
mov ecx, dword [eax + 0x88]
mov dword [esp + 0x24], eax
test ecx, ecx
jne 0x4314e2
mov ecx, dword [ebx + 0xc4]
lea eax, [esi + 0x28a0]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebp, eax
test ebp, ebp
je 0x4314e2
lea edx, [esp + 0x3c]
push 0x1000
push edx
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x3c]
test eax, eax
je 0x4313d1
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x10]
push edx
push eax
call fcn.00404780
lea ecx, [esp + 0x10]
call fcn.00404970
mov esi, dword [esp + 0x10]
xor edi, edi
cmp word [esi], di
je 0x431432
mov ax, word [esi]
push eax
call dword [sym.imp.MSVCRT.dll_iswspace]
add esp, 4
test eax, eax
je 0x43140d
test edi, edi
jne 0x43140f
mov edi, esi
jmp 0x43140f
xor edi, edi
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], 0
jne 0x4313f4
test edi, edi
je 0x431432
mov word [edi], 0
mov eax, dword [esp + 0x10]
sub edi, eax
sar edi, 1
mov dword [eax - 8], edi
lea ecx, [esp + 0x10]
call fcn.00404970
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.MSVCRT.dll_iswspace]
mov ax, word [esi]
push eax
call edi
add esp, 4
test eax, eax
je 0x431468
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
mov ax, word [esi]
push eax
call edi
add esp, 4
test eax, eax
jne 0x431452
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 0x431496
push ecx
push esi
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov esi, dword [esp + 0x24]
mov dword [eax - 8], edi
lea eax, [esp + 0x10]
lea ecx, [esp + 0x2c]
push eax
push esi
push ecx
mov ecx, ebx
call fcn.004309f0
test eax, eax
je 0x431577
lea edx, [esp + 0x3c]
add esi, 0x24
test edx, edx
jne 0x4314c6
xor eax, eax
jmp 0x4314d1
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x3c]
push ecx
push eax
mov ecx, esi
call fcn.00404780
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
mov dword [esp + 0x1c], esi
jl 0x431365
mov ebp, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2044], 1
call fcn.00428b30
mov ecx, dword [0x4c0084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x43152e
lea esi, [ebp - 0xc]
push esi
call edi
test eax, eax
jg 0x43152e
push esi
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x431559
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x431559
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x203c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2038
ret
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]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2044], 1
call fcn.00428b30
mov esi, dword [esp + 0x20]
mov eax, dword [0x4c0084]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x4315d6
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4315d6
push esi
call fcn.0049c000
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x4c0084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x431601
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x431601
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0049c000
add esp, 4
xor eax, eax
jmp 0x43155e