Function at 0x100201c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b3a8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x100350dc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [0x10035014]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
call fcn.10005490
test eax, eax
jne 0x10020223
mov dword [ebp - 0x38], 0
jmp 0x1002023e
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov dword [ecx - 8], edx
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
mov word [eax + edx*2], cx
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x10020258
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10002010
jmp 0x100203ef
mov ecx, dword [ebp - 0x30]
add ecx, 1
push ecx
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.10008c70
mov edx, dword [ebp - 0x24]
cmp dword [edx - 8], 0
jne 0x1002028c
mov dword [ebp - 0x3c], 1
jmp 0x10020293
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
je 0x100202ad
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10002010
jmp 0x100203ef
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x44], 0
jne 0x10020388
mov dword [ebp - 0x34], 0x400
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x40], 0
je 0x100202f6
mov edx, dword [ebp - 0x34]
or edx, 0x10
mov dword [ebp - 0x34], edx
jmp 0x100202ff
mov eax, dword [ebp - 0x34]
or eax, 0x20
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x34]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x40], 0
jne 0x10020388
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x48]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x50]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x44], 0
je 0x1002039a
mov dword [ebp - 0x2c], 5
jmp 0x100203a1
mov dword [ebp - 0x2c], 4
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x40], 0
je 0x100203b5
mov edx, dword [ebp - 0x2c]
or edx, 0x10
mov dword [ebp - 0x2c], edx
jmp 0x100203be
mov eax, dword [ebp - 0x2c]
or eax, 0x20
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_DrawTextW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10002010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002916b
mov esp, ebp
pop ebp
ret 8