Function at 0x4fbca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ef05
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x6340c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [eax]
mov eax, dword [0x681808]
cmp eax, dword [edx + 8]
jg 0x4fc09a
push 0
push 0xffffffffffffffff
push 0xc1
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x78], eax
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c5d8d
add esp, 4
mov edi, eax
push esi
push edi
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, edi
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbd45
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.004459d0
mov edx, 0x674498
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0044ec10
test al, al
jne 0x4fc04c
cmp dword [ebp - 0x78], 1
jle 0x4fc04c
mov ecx, edi
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbda0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.004459d0
mov byte [ebp - 4], 1
call fcn.004d1078
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov dword [ebp - 0x7c], eax
cmovae esi, dword [ebp - 0x28]
mov dword [eax], 0
lea eax, [ebp - 0x78]
push 0xa
push eax
push esi
call fcn.004d4fb5
add esp, 0xc
mov dword [ebp - 0x74], eax
cmp esi, dword [ebp - 0x78]
je 0x4fc0d3
mov eax, dword [ebp - 0x7c]
cmp dword [eax], 0x22
je 0x4fc090
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4fbe1c
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
mov esi, dword [ebp - 0x74]
cmp esi, 0x1f4
jg 0x4fbe30
cmp esi, 0xa
jge 0x4fbf6d
lea ecx, [ebp - 0x70]
call fcn.005734f0
push 0x674210
mov byte [ebp - 4], 2
call fcn.00443fb0
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov word [ebp - 0x28], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x74], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbe64
sub ecx, dword [ebp - 0x74]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004459d0
push 0x674240
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00443fb0
mov edx, eax
mov dword [ebp - 0x30], 0
mov ecx, edx
mov dword [ebp - 0x2c], 7
xor eax, eax
mov word [ebp - 0x40], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x74], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fbeb0
sub ecx, dword [ebp - 0x74]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004459d0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
push 0x50030
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0x1f4
cmp esi, eax
cmovg esi, eax
mov eax, 0xa
cmp esi, eax
cmovl esi, eax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4fbf1f
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], 7
cmp eax, 8
jb 0x4fbf4e
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], al
call fcn.005734b0
mov edx, esi
lea ecx, [ebp - 0x70]
call fcn.0044eb90
mov eax, dword [0x6744ac]
cmp eax, 8
jb 0x4fbf97
lea eax, [eax*2 + 2]
push eax
push dword [0x674498]
call fcn.00446620
add esp, 8
xor eax, eax
mov dword [0x6744a8], 0
mov word [0x674498], ax
lea eax, [ebp - 0x70]
push 0x18
push eax
push 0x674498
mov dword [0x6744ac], 7
call fcn.004c7170
add esp, 0xc
mov eax, 0x674498
cmp dword [0x6744ac], 8
cmovae eax, dword [0x674498]
push eax
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_SetFocus]
push 0xffff
push 0xffff
push 0xb1
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xb7
push dword [ebx + 0x98]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [ebx + 0x64]
sub esp, 0x18
mov ecx, esp
push 0x674498
call fcn.0044a700
mov ecx, esi
call fcn.0044e2d0
cmp byte [ebx + 0xa0], 0
jne 0x4fc04c
mov ecx, dword [ebx + 0x64]
call fcn.00533910
push edi
call fcn.004c59d6
mov eax, dword [ebp - 0x44]
add esp, 4
cmp eax, 8
jb 0x4fc070
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.00446620
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c59c5
mov esp, ebp
pop ebp
ret 0x10
push str.stoi_argument_out_of_range
call fcn.004b229a
push 0x681808
call fcn.004c5f0a
add esp, 4
cmp dword [0x681808], 0xffffffff
jne 0x4fbce6
push 0x5ae400
call fcn.004c5d6a
add esp, 4
push 0x681808
call fcn.004c5ec0
add esp, 4
jmp 0x4fbce6
push str.invalid_stoi_argument
call fcn.004b225a
int3