Function at 0x10036d70
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 0x10036da0
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 0x1003709d
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10036dc2
add ecx, 0xffffffff
js 0x10036dc2
mov eax, dword [esi + 0x40]
lea eax, [eax + ecx*4]
cmp edi, dword [eax]
je 0x1003709d
sub eax, 4
sub ecx, 1
jns 0x10036db2
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x3c
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowInfo]
test eax, eax
je 0x1003709d
test dword [esp + 0x38], 0x10000000
je 0x1003709d
test dword [esp + 0x3c], 0x8000080
jne 0x1003709d
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1003709d
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
je 0x1003709d
cmp dword [esi + 0x24], 0
jne 0x10036e28
cmp dword [esi + 0x28], 0
je 0x10036e81
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 0x1003709d
cmp dword [esi + 0x10], 0
je 0x10036e76
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 0x10036e76
test edi, edi
je 0x1003709d
mov eax, dword [esp + 0x10]
jmp 0x10036e30
test edi, edi
js 0x1003709d
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 0x10036eb7
cmp edx, 1
je 0x1003709d
xor ecx, ecx
cmp edx, 0xfffffffe
sete cl
lea ecx, [ecx*8 + 1]
jmp 0x10037007
cmp edx, 0xfffffffe
je 0x1003709d
movzx eax, cl
test edx, edx
jns 0x10036ed3
xor eax, 1
lea ecx, [eax*2 + 1]
jmp 0x10036ef3
lea eax, [eax*2 + 1]
mov ecx, eax
mov dword [esp + 0xc], ecx
cmp edx, 1
jne 0x10036ef7
cmp byte [esp + 0xb], 0
mov dword [esp + 0xc], ecx
je 0x10036ef7
or ecx, 8
mov dword [esp + 0xc], ecx
movss xmm2, dword [esi + 0x3c]
ucomiss xmm2, dword [0x10056adc]
lahf
test ah, 0x44
jnp 0x10036fce
movss xmm3, dword [0x10056ae8]
ucomiss xmm2, xmm3
lahf
test ah, 0x44
jnp 0x10036fce
mov edx, dword [esi + 0x2c]
movss xmm4, dword [0x10056b00]
movss xmm6, dword [0x10056af0]
test edx, edx
je 0x10036f83
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 0x1003700b
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 0x1003700b
mov edx, dword [esi + 0x30]
test edx, edx
je 0x10037004
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 0x1003700b
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 0x10037004
jmp 0x1003700b
cmp dword [esi + 0x2c], 0
je 0x10036fe8
mov edx, dword [esp + 0x18]
cmp dword [esi + 0x34], edx
jne 0x1003700b
mov eax, dword [esp + 0x20]
sub eax, edx
cmp dword [esi + 0x2c], eax
jne 0x1003700b
mov edx, dword [esi + 0x30]
test edx, edx
je 0x10037004
mov eax, dword [esp + 0x1c]
cmp dword [esi + 0x38], eax
jne 0x1003700b
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp edx, eax
jne 0x1003700b
or ecx, 4
mov dword [esp + 0xc], ecx
cmp dword [esi + 0x18], 0
je 0x10037076
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 0x10037076
push ecx
push dword [esi + 0x20]
push dword [esi + 0x18]
call dword [sym.imp.msvcrt.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10037076
mov ecx, dword [esi + 0x1c]
mov edx, dword [esp + 0x10]
cmp edx, ecx
jle 0x1003706d
lea eax, [ecx + 3]
cmp edx, eax
jl 0x10037076
mov eax, dword [esi + 0x20]
cmp word [eax + ecx*2], 0x20
jne 0x10037076
cmp word [eax + ecx*2 + 2], 0x2d
jne 0x10037076
cmp word [eax + ecx*2 + 4], 0x20
jne 0x10037076
mov eax, dword [esp + 0xc]
or eax, 0x10
jmp 0x1003707a
mov eax, dword [esp + 0xc]
cmp dword [esi + 4], eax
ja 0x1003709d
jae 0x1003709a
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