Function at 0x4db800
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc637
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x5636c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
call eax
movzx ecx, ax
cmp ecx, 0xd
jne 0x4dba4d
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x50]
call fcn.004db410
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x14]
jne 0x4db9f8
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0x3c]
call edx
mov dword [ebp - 0x24], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
push 0xc9
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x20], eax
push 0
mov edx, dword [ebp - 0x20]
push edx
push 0xbb
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x20]
add ecx, 1
push ecx
push 0xbb
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x1c], 0
jl 0x4db8c8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x28], 0
jl 0x4db8d4
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x4db8e3
mov dword [ebp - 0x14], SysReAllocStringLen
push 0xe
mov ecx, dword [ebp - 0x50]
call fcn.004db2c0
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jle 0x4db9e8
mov eax, dword [ebp - 0x2c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00494f5c
add esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 1
push edx
push 0xd
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x20], 0
jle 0x4db97a
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
jl 0x4db967
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x38]
sub edx, 1
mov dword [ebp - 0x38], edx
cmp ecx, 0xa
jne 0x4db965
jmp 0x4db967
jmp 0x4db945
xor eax, eax
cmp dword [ebp - 0x38], 0
setg al
mov ecx, dword [ebp - 0x38]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x18], edx
push 0
push 0
push 0xba
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
sub ecx, 1
mov edx, dword [ebp - 0x20]
add edx, 1
cmp ecx, edx
jle 0x4db9d6
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x2c]
jge 0x4db9cd
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x3c]
add edx, 1
mov dword [ebp - 0x3c], edx
cmp ecx, 0xa
jne 0x4db9cb
jmp 0x4db9cd
jmp 0x4db9a9
mov eax, dword [ebp - 0x3c]
sub eax, 2
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x50]
call fcn.004db3d0
push 0x74736c63
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0x110]
call edx
mov byte [ebp - 0xd], 1
mov eax, dword [str.onEnterKey]
push eax
lea ecx, [ebp - 0x4c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::constructor_char_const__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x50]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + 0x100]
call edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call dword [sym.imp.ScCore.dll_public:_void___thiscall_ScCore::String::destructor_void_]
jmp 0x4dba66
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x1c]
call eax
movzx ecx, ax
cmp ecx, 9
jne 0x4dba66
mov byte [ebp - 0xd], 1
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x4dbaa6
mov eax, dword [ebp + 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x40]
call eax
movzx ecx, al
test ecx, ecx
jne 0x4dbaa6
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x50]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0x120]
call eax
xor ecx, ecx
cmp dword [ebp - 0x40], 1
sete cl
mov byte [ebp - 0xd], cl
movzx edx, byte [ebp - 0xd]
test edx, edx
jne 0x4dbad9
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0x14]
call eax
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x54]
mov eax, dword [edx + 0x130]
call eax
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8