Function at 0x10038c80
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0xc], 0
je 0x10038cb0
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x10038fad
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10038cd2
add ecx, 0xffffffff
js 0x10038cd2
mov eax, dword [esi + 0x40]
lea eax, [eax + ecx*4]
cmp edi, dword [eax]
je 0x10038fad
sub eax, 4
sub ecx, 1
jns 0x10038cc2
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x3c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowInfo]
test eax, eax
je 0x10038fad
test dword [esp + 0x38], 0x10000000
je 0x10038fad
test dword [esp + 0x3c], 0x8000080
jne 0x10038fad
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x10038fad
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x10038fad
cmp dword [esi + 0x24], 0
jne 0x10038d38
cmp dword [esi + 0x28], 0
je 0x10038d91
mov edi, 0x64
xor eax, eax
nop
push dword [esi + 0x28]
dec edi
push dword [esi + 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FindWindowExW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x10038fad
cmp dword [esi + 0x10], 0
je 0x10038d86
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0xc]
cmp eax, dword [esi + 0x10]
je 0x10038d86
test edi, edi
je 0x10038fad
mov eax, dword [esp + 0x10]
jmp 0x10038d40
test edi, edi
js 0x10038fad
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x38]
mov cl, byte [esp + 0x40]
mov edx, dword [esi + 0x14]
and cl, 1
shr eax, 0x1d
mov byte [esp + 0xb], cl
test al, 1
je 0x10038dc7
cmp edx, 1
je 0x10038fad
xor ecx, ecx
cmp edx, 0xfffffffe
sete cl
lea ecx, [ecx*8 + 1]
jmp 0x10038f17
cmp edx, 0xfffffffe
je 0x10038fad
movzx eax, cl
test edx, edx
jns 0x10038de3
xor eax, 1
lea ecx, [eax*2 + 1]
jmp 0x10038e03
lea eax, [eax*2 + 1]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp edx, 1
jne 0x10038e07
cmp byte [esp + 0xb], 0
mov dword [esp + 0xc], ecx
je 0x10038e07
or ecx, 8
mov dword [esp + 0xc], ecx
movss xmm2, dword [esi + 0x3c]
ucomiss xmm2, dword [0x10058f2c]
lahf
test ah, 0x44
jnp 0x10038ede
movss xmm3, dword [0x10058f38]
ucomiss xmm2, xmm3
lahf
test ah, 0x44
jnp 0x10038ede
mov edx, dword [esi + 0x2c]
movss xmm4, dword [0x10058f50]
movss xmm6, dword [0x10058f40]
test edx, edx
je 0x10038e93
cvtsi2ss xmm1, dword [esp + 0x18]
movaps xmm5, xmm3
divss xmm5, xmm2
cvtsi2ss xmm0, dword [esi + 0x34]
mulss xmm1, xmm5
subss xmm1, xmm0
andps xmm1, xmm4
comiss xmm1, xmm3
ja 0x10038f1b
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cvtsi2ss xmm0, edx
cvtsi2ss xmm1, eax
mulss xmm1, xmm5
subss xmm1, xmm0
andps xmm1, xmm4
comiss xmm1, xmm6
ja 0x10038f1b
mov edx, dword [esi + 0x30]
test edx, edx
je 0x10038f14
cvtsi2ss xmm1, dword [esp + 0x1c]
movaps xmm5, xmm3
divss xmm5, xmm2
cvtsi2ss xmm0, dword [esi + 0x38]
mulss xmm1, xmm5
subss xmm1, xmm0
andps xmm1, xmm4
comiss xmm1, xmm3
ja 0x10038f1b
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cvtsi2ss xmm0, edx
cvtsi2ss xmm1, eax
mulss xmm1, xmm5
subss xmm1, xmm0
andps xmm1, xmm4
comiss xmm1, xmm6
jbe 0x10038f14
jmp 0x10038f1b
cmp dword [esi + 0x2c], 0
je 0x10038ef8
mov edx, dword [esp + 0x18]
cmp dword [esi + 0x34], edx
jne 0x10038f1b
mov eax, dword [esp + 0x20]
sub eax, edx
cmp dword [esi + 0x2c], eax
jne 0x10038f1b
mov edx, dword [esi + 0x30]
test edx, edx
je 0x10038f14
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x38], eax
jne 0x10038f1b
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp edx, eax
jne 0x10038f1b
or ecx, 4
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x18], 0
je 0x10038f86
mov eax, dword [esi + 0x1c]
add eax, 4
push eax
push dword [esi + 0x20]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x10], eax
cmp eax, ecx
jl 0x10038f86
push ecx
push dword [esi + 0x20]
push dword [esi + 0x18]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10038f86
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
cmp edx, ecx
jle 0x10038f7d
lea eax, [ecx + 3]
cmp edx, eax
jl 0x10038f86
mov eax, dword [esi + 0x20]
cmp word [eax + ecx*2], 0x20
jne 0x10038f86
cmp word [eax + ecx*2 + 2], 0x2d
jne 0x10038f86
cmp word [eax + ecx*2 + 4], 0x20
jne 0x10038f86
mov eax, dword [esp + 0xc]
or eax, 0x10
jmp 0x10038f8a
mov eax, dword [esp + 0xc]
cmp dword [esi + 4], eax
ja 0x10038fad
jae 0x10038faa
mov dword [esi + 4], eax
mov eax, 1
mov dword [esi], edi
mov dword [esi + 8], 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
inc dword [esi + 8]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 8