Function at 0x436f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x153c
call fcn.004abe10
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x1534], eax
push ebx
mov ebx, dword [esp + 0x1544]
mov eax, dword [ebx + 0x70]
or eax, dword [ebx + 0x74]
push ebp
mov ebp, dword [esp + 0x154c]
push esi
lea esi, [ebx + 0x70]
push edi
mov dword [esp + 0x1c], ebx
je 0x436fdc
call fcn.0044aa40
fld qword [0x4c8900]
fcompi st(1)
fstp st(0)
jbe 0x436fdc
call fcn.0044aa40
fdiv qword [0x4c8900]
xor esi, esi
fstp dword [esp + 0x18]
cmp dword [ebx + 0xb8], esi
je 0x4377b4
push 0x17
push str.Waiting_for_Hue_changes
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], esi
call fcn.0043c500
push 7
push str.Waiting
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x30], esi
call fcn.0043c500
fld qword [0x4d3400]
movss xmm0, dword [esp + 0x18]
mov ecx, dword [ebx + 0xb8]
mov eax, dword [ecx]
mov eax, dword [eax]
sub esp, 0x10
fstp qword [esp + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
lea edx, [esp + 0x2c]
push edx
lea edx, [esp + 0x38]
push edx
call eax
lea ecx, [esp + 0x24]
call fcn.00401420
lea ecx, [esp + 0x1c]
jmp 0x4377af
mov ecx, dword [ebx + 0x68]
shr ecx, 1
cmp ecx, ebp
ja 0x437000
mov edi, ebx
call fcn.004379c0
push ebp
push ebx
call fcn.00436360
test eax, eax
jne 0x4377b6
call fcn.004379c0
movss xmm0, dword [ebx + 0xd4]
movss dword [esp + 0x18], xmm0
fld dword [esp + 0x18]
fistp dword [esp + 0x14]
cmp dword [esp + 0x14], 0
xorps xmm0, xmm0
jne 0x43704c
movss xmm1, dword [ebx + 0xe4]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x43704c
movss xmm1, dword [ebx + 0xe8]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x43704c
mov eax, 0xffffffff
jmp 0x4377b6
mov edx, dword [ebx + 0x64]
mov ecx, ebp
lea ebp, [ecx + ecx*2]
add ebp, ebp
add ebp, ebp
add ebp, ebp
cmp byte [edx + ebp + 8], 0
lea eax, [edx + ebp]
jne 0x43708b
mov eax, dword [eax + 0x14]
test eax, eax
je 0x43708b
add eax, 4
je 0x43708b
cmp byte [eax], 0
je 0x43708b
push ecx
push ebx
call fcn.00436360
test eax, eax
jne 0x4377b6
mov edi, ebx
call fcn.004379c0
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x43711e
call fcn.0044aa40
fld qword [0x4c8900]
fcompi st(1)
fstp st(0)
jbe 0x43711e
call fcn.0044aa40
fdiv qword [0x4c8900]
cmp dword [ebx + 0xb8], 0
fstp dword [esp + 0x18]
je 0x4377b4
mov edx, str.Waiting_for_Hue_changes
lea esi, [esp + 0x30]
call fcn.004011f0
mov edx, str.Waiting
lea esi, [esp + 0x14]
call fcn.004011f0
fld qword [0x4d3400]
movss xmm0, dword [esp + 0x18]
mov ecx, dword [ebx + 0xb8]
mov edx, dword [ecx]
mov edx, dword [edx]
sub esp, 0x10
fstp qword [esp + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
lea eax, [esp + 0x40]
push eax
mov eax, esi
push eax
call edx
mov ecx, esi
call fcn.00401420
lea ecx, [esp + 0x30]
jmp 0x4377af
mov eax, dword [ebx + 0x64]
add eax, ebp
cmp byte [eax + 8], 0xff
mov dword [esp + 0x3c], eax
je 0x4377b4
mov edi, eax
mov esi, dword [edi + 0xc]
add edi, 0xc
test esi, esi
je 0x437160
lea eax, [esi + 4]
push str.not_available
push eax
call section..text
add esp, 8
test eax, eax
je 0x437160
sub eax, esi
sub eax, 4
cmp eax, 0xffffffff
jne 0x4377b4
mov ecx, dword [esp + 0x1554]
push ecx
lea edx, [esp + 0x1c]
push edx
push ebx
call fcn.00436cf0
push edi
lea esi, [esp + 0x4bc]
mov byte [esp + 0x17], 0
call fcn.00403e50
lea eax, [ebx + 0xb4]
push eax
lea ecx, [esp + 0xcfc]
push ecx
mov eax, edi
call fcn.00437f80
mov eax, dword [esp + 0x4c8]
xor esi, esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], esi
test eax, 0xfffffffc
jbe 0x43772e
xor edi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], edi
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
mov edx, dword [esp + 0x2c]
cmp byte [edx + ecx], 0
mov ebp, 0xfffffffe
je 0x437702
shr eax, 1
cmp eax, edi
jbe 0x437228
mov eax, dword [esp + 0x4c4]
cmp dword [eax + edi*8], 0
je 0x437228
mov ecx, dword [eax + edi*8 + 4]
mov edx, dword [eax + edi*8]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x34], 0
call fcn.0043c500
mov eax, dword [esp + 0x28]
test eax, eax
je 0x43721a
add eax, 4
je 0x43721a
cmp byte [eax], 0
jne 0x43723e
lea ecx, [esp + 0x28]
call fcn.00401420
jmp 0x437702
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
call fcn.00401420
jmp 0x437702
push eax
call fcn.0049d74d
add esp, 4
lea ecx, [esp + 0x44]
mov dword [esp + 0x50], eax
push ecx
mov eax, esi
lea ecx, [esp + 0xcfc]
call fcn.00404c30
lea ecx, [ebx + 0x4c]
lea edx, [esp + 0x44]
call fcn.0041e510
cmp eax, 0xffffffff
je 0x437286
lea ecx, [esp + 0x44]
call fcn.00401420
lea ecx, [esp + 0x28]
call fcn.00401420
jmp 0x437702
test dword [ebx + 0x5c], ebp
je 0x43731f
lea edx, [esp + 0x30]
push edx
mov eax, esi
lea ecx, [esp + 0xcfc]
call fcn.00404a80
mov byte [esp + 0x12], 0
test dword [ebx + 0x5c], ebp
jbe 0x437304
mov ebp, dword [ebx + 0x5c]
mov edi, dword [ebx + 0x58]
mov esi, dword [esp + 0x30]
shr ebp, 1
mov eax, dword [edi]
test eax, eax
je 0x4372c3
add eax, 4
jmp 0x4372c5
xor eax, eax
test esi, esi
je 0x4372ed
test eax, eax
je 0x4372ed
push eax
lea eax, [esi + 4]
push eax
call section..text
add esp, 8
test eax, eax
je 0x4372ed
sub eax, esi
sub eax, 4
cmp eax, 0xffffffff
je 0x4372ed
mov byte [esp + 0x12], 1
add edi, 4
sub ebp, 1
jne 0x4372b8
cmp byte [esp + 0x12], 0
jne 0x437312
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x30]
call fcn.00401420
jmp 0x43726f
lea ecx, [esp + 0x30]
call fcn.00401420
mov esi, dword [esp + 0x38]
lea ecx, [ebx + 0xd0]
mov dword [esp + 0x20], ecx
mov eax, esi
lea ecx, [esp + 0xcf8]
call fcn.00404760
test al, al
je 0x437350
add ebx, 0xf4
mov ecx, ebx
call fcn.00435120
test al, al
je 0x437350
mov dword [esp + 0x20], ebx
mov eax, esi
lea esi, [esp + 0x8d8]
lea ecx, [esp + 0x4b8]
call fcn.00404060
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x4c], edi
cmp eax, edi
je 0x43737a
add eax, 4
cmp eax, edi
jne 0x43737f
mov eax, 0x4cb498
mov edx, dword [esp + 0x50]
push edx
push eax
push str._s_lights__d_state
lea ecx, [esp + 0x58]
call fcn.00401480
add esp, 0xc
lea eax, [esp + 0x54]
push eax
push ecx
push str.type
lea ecx, [esp + 0x8e4]
push ecx
lea esi, [esp + 0xac]
mov dword [esp + 0x44], edi
call fcn.00403f90
add esp, 4
mov ecx, eax
call fcn.00403f20
mov esi, dword [esp + 0x54]
mov dword [esp + 0x40], esi
cmp esi, edi
je 0x4373e9
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4373e9
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x54]
call fcn.00401420
lea edx, [esp + 0x9c]
push edx
call fcn.00404120
xor bl, bl
mov eax, str.Color_light
lea ecx, [esp + 0x40]
mov byte [esp + 0x12], bl
call fcn.00401310
test al, al
je 0x437419
mov bl, 1
mov esi, dword [esp + 0x20]
movss xmm1, dword [esi + 0x14]
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jp 0x43743c
movss xmm1, dword [esi + 0x18]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x43743e
mov bl, 1
mov eax, str.Dimmable_light
lea ecx, [esp + 0x40]
call fcn.00401310
test al, al
je 0x437455
mov byte [esp + 0x12], 1
movss xmm0, dword [esi + 4]
movss dword [esp + 0x74], xmm0
fld dword [esp + 0x74]
fistp dword [esp + 0x48]
cvtsi2ss xmm0, dword [esp + 0x48]
movss dword [esp + 0x70], xmm0
fld dword [esp + 0x70]
fistp dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x50], eax
mov eax, str.Color_temperature_light
lea ecx, [esp + 0x40]
call fcn.00401310
test al, al
je 0x4374a7
xor bl, bl
mov eax, esi
mov byte [esp + 0x12], bl
call fcn.00435070
mov dword [esp + 0x50], eax
movss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [0x4d36e8]
cvtpd2ps xmm0, xmm0
movss dword [esp + 0x6c], xmm0
fld dword [esp + 0x6c]
fistp dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
cmp byte [ecx + 0x48], 0
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x2c]
je 0x43759b
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov ecx, dword [eax + edi + 0x18]
add eax, edi
or ecx, dword [eax + 0x1c]
je 0x43759b
lea esi, [eax + 0x18]
call fcn.0044aa40
fstp dword [esp + 0x60]
fld dword [esp + 0x60]
fld dword [0x4c3fa0]
fcompi st(1)
fstp st(0)
ja 0x4376bc
mov esi, dword [esp + 0x1c]
add esi, 0x70
call fcn.0044aa40
fld qword [0x4c8900]
fcompi st(1)
fstp st(0)
ja 0x4376bc
movss xmm0, dword [esp + 0x60]
movsd xmm1, qword [0x4d3c58]
cvtps2pd xmm2, xmm0
comisd xmm1, xmm2
jbe 0x43759b
mov edx, dword [esp + 0x3c]
movsd xmm2, qword [0x4bab50]
mov eax, dword [edx]
cvtps2pd xmm0, xmm0
divsd xmm0, xmm1
cvtpd2ps xmm0, xmm0
cvtss2sd xmm1, xmm0
subsd xmm2, xmm1
cvtsi2sd xmm1, dword [eax + edi + 0x28]
mulsd xmm2, xmm1
cvtsi2ss xmm1, ebp
cvtss2sd xmm0, xmm0
cvtss2sd xmm1, xmm1
mulsd xmm1, xmm0
addsd xmm2, xmm1
cvtpd2ps xmm0, xmm2
movss dword [esp + 0x68], xmm0
fld dword [esp + 0x68]
fistp dword [esp + 0x58]
mov ebp, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
push edx
push ebp
push str._bri_:__d__ct_:_d
lea ecx, [esp + 0x40]
call fcn.00401480
add esp, 0xc
test bl, bl
je 0x4375fb
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x78]
push eax
lea edi, [esp + 0x84]
call fcn.00438080
fld qword [esp + 0x80]
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x44]
fld qword [esp + 0x88]
fstp qword [esp]
push ebp
push str._bri_:__d___xy_:__f___f_
call fcn.00401480
mov edi, dword [esp + 0x44]
add esp, 0x18
jmp 0x437614
cmp byte [esp + 0x12], 0
je 0x437614
push ebp
push str._bri_:__d
lea ecx, [esp + 0x3c]
call fcn.00401480
add esp, 8
push 0xffffffffffffffff
push ecx
push 0x4cfad8
lea ecx, [esp + 0x8e4]
push ecx
lea esi, [esp + 0xac]
call fcn.00403f90
add esp, 4
mov ecx, eax
call fcn.00403ec0
mov edx, esi
push edx
call fcn.00404120
lea esi, [esp + 0x88]
mov dword [esp + 0x20], 0
call fcn.0044a930
push 0x4cfc54
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x54]
push ecx
lea eax, [esp + 0x40]
call fcn.004613e0
inc dword [esp + 0x20]
add esp, 0xc
cmp dword [esp + 0x20], 0
je 0x4376a3
push 1
mov ecx, str.error__503
lea esi, [esp + 0x24]
call fcn.0043c780
cmp eax, 0xffffffff
je 0x4376a3
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x13], 1
jmp 0x4376b3
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
mov byte [edi + edx], 0
mov eax, dword [eax]
mov dword [eax + edi + 0x2c], ebp
lea ecx, [esp + 0x20]
call fcn.00401420
lea ecx, [esp + 0x40]
call fcn.00401420
lea ecx, [esp + 0x34]
call fcn.00401420
lea ecx, [esp + 0x4c]
call fcn.00401420
lea ecx, [esp + 0x8d8]
push ecx
call fcn.00404120
lea ecx, [esp + 0x44]
call fcn.00401420
lea ecx, [esp + 0x28]
call fcn.00401420
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c8]
add dword [esp + 0x2c], 0x30
mov edx, eax
inc esi
add edi, 2
shr edx, 2
mov dword [esp + 0x38], esi
mov dword [esp + 0x24], edi
cmp esi, edx
jb 0x4371c1
cmp byte [esp + 0x13], 0
jne 0x43774b
lea esi, [ebx + 0xd0]
call fcn.004350c0
lea esi, [ebx + 0xf4]
call fcn.004350c0
mov byte [ebx + 0x118], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x437761
push eax
push str.Sent_hue_update_to__d_n
call fcn.0049d4b4
add esp, 8
mov eax, dword [esp + 0x1530]
test eax, eax
je 0x437771
call fcn.0041eff0
and dword [esp + 0x1534], 1
lea eax, [esp + 0x1114]
push eax
mov dword [esp + 0x1534], 0
call fcn.00404120
lea ecx, [esp + 0xcf8]
push ecx
call fcn.00404120
lea edx, [esp + 0x4b8]
push edx
call fcn.00404120
lea ecx, [esp + 0x18]
call fcn.00401420
xor eax, eax
mov ecx, dword [esp + 0x1544]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049ceb0
add esp, 0x153c
ret 8