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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x70
push ebx
push ebp
push esi
push edi
push 8
xor ebx, ebx
push ebx
push str.Dwmapi.dll
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [esp + 0x28], eax
cmp eax, ebx
jne 0x4110af
mov dword [esp + 0x2c], ebx
jmp 0x4110bf
push str.DwmFlush
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x2c], eax
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x566aa8
call ebp
mov edi, 0x98
call fcn.0045eff0
mov esi, eax
cmp esi, ebx
je 0x41111b
push edi
push ebx
push esi
call fcn.004a16b0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x70]
push eax
push esi
mov eax, str.f.lux_test
mov dword [esp + 0x78], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 0x1e0
mov dword [esp + 0x84], 0x140
call fcn.004441e0
mov ebx, eax
push 0x566aa8
mov dword [esp + 0x18], ebx
call ebp
mov edi, 0xc8
call fcn.0045eff0
test eax, eax
je 0x411148
fld dword [0x4d34b0]
push ecx
fstp dword [esp]
push eax
call fcn.0045ff90
mov ebp, eax
jmp 0x41114a
xor ebp, ebp
mov ecx, dword [ebx + 0x54]
xor edi, edi
cmp ecx, ebp
je 0x41117f
cmp ecx, edi
je 0x411162
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [ebx + 0x54], edi
mov byte [ebx + 0x2f], 0
mov dword [ebx + 0x54], ebp
cmp ebp, edi
je 0x41117f
mov edx, dword [ebp]
mov eax, dword [edx + 0x18]
push ebx
mov ecx, ebp
call eax
mov esi, ebx
call fcn.00444940
push 0x6e5
push str.Lorem_ipsum_dolor_sit_amet__consectetur_adipiscing_elit._Aliquam_accumsan_enim_in_massa_dapibus_scelerisque_a_vitae_diam._Nam_ipsum_sapien__porttitor_sed_eros_fringilla__eleifend_gravida_sapien._Nullam_accumsan_leo_in_est_viverra__id_finibus_lorem_venenatis._Integer_egestas_est_ac_ornare_porttitor._Vivamus_congue_enim_vitae_ullamcorper_maximus._Phasellus_nisl_odio__egestas_ut_tempor_vel__pellentesque_non_felis._Aenean_at_sapien_lectus._Donec_pellentesque_ex_ante._Donec_ac_ligula_sed_tortor_condimentum_aliquam_nec_ac_massa._Sed_rhoncus_pharetra_pretium._Maecenas_a_magna_aliquet__tempor_tortor_quis__ultrices_sem._Nulla_quam_sem__tincidunt_nec_consectetur_id__efficitur_quis_elit._Donec_fermentum_ipsum_a_aliquam_elementum._Pellentesque_purus_metus__blandit_sed_vestibulum_ut__pulvinar_in_erat._Aliquam_fringilla_nunc_metus__ut_porttitor_arcu_pretium_quis._Vestibulum_ante_ipsum_primis_in_faucibus_orci_luctus_et_ultrices_posuere_cubilia_Curae__Sed_vel_tellus_ut_urna_rhoncus_consequat._Cum_sociis_natoque_penatibus_et_magnis_dis_parturient_montes__nascetur_ridiculus_mus._Fusce_imperdiet_justo_feugiat_risus_eleifend_blandit._Praesent_hendrerit_convallis_maximus._Mauris_vel_velit_feugiat__commodo_ligula_nec__commodo_odio._Sed_nulla_dolor__euismod_tristique_nulla_ac__gravida_dictum_ex._Curabitur_ornare_maximus_laoreet._Pellentesque_ultrices__felis_non_aliquam_aliquet__lorem_velit_facilisis_sem__et_interdum_nisl_lectus_vitae_nunc._Fusce_pellentesque_eros_vitae_erat_hendrerit__a_condimentum_justo_condimentum._Integer_consectetur_nibh_sit_amet_libero_luctus__ut_luctus_leo_facilisis._Donec_sollicitudin_ut_est_in_pretium._Class_aptent_taciti_sociosqu_ad_litora_torquent_per_conubia_nostra__per_inceptos_himenaeos._Sed_eleifend_hendrerit_urna_eu_ultricies.
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x28], edi
call fcn.0043c200
mov dword [esp + 0x10], edi
mov esi, 0x64
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4111ad
add eax, 4
jmp 0x4111af
xor eax, eax
push eax
lea eax, [esp + 0x14]
call fcn.0043c000
sub esi, 1
jne 0x4111a0
mov edx, dword [ebp]
mov edx, dword [edx + 0x48]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call edx
mov eax, dword [0x566ad8]
or eax, dword [0x566adc]
mov byte [esp + 0x68], 0
jne 0x4111e4
call fcn.0044a6b0
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
call edi
mov dword [esp + 0x60], eax
xor eax, eax
lea esi, [esp + 0x60]
mov dword [esp + 0x64], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call fcn.0044a720
fld qword [0x4d3798]
fcompi st(1)
fstp st(0)
jbe 0x411421
xorps xmm0, xmm0
or eax, 0xffffffff
movss dword [esp + 0x30], xmm0
movss xmm0, dword [0x4d3384]
movss dword [esp + 0x34], xmm0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
jmp 0x411249
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
mov ecx, dword [0x566ad8]
or ecx, dword [0x566adc]
mov byte [esp + 0x78], 0
jne 0x4112b6
call edi
lea edx, [esp + 0x40]
push edx
mov dword [0x566ad8], eax
mov dword [0x566adc], 0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
movsd xmm0, qword [0x4d3448]
lea edx, [esp + 0x48]
push edx
mov dword [0x566ae0], eax
mov dword [0x566ae4], ecx
movsd qword [0x566ae8], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
fild qword [esp + 0x48]
fdivr qword [0x4bab50]
fstp qword [0x566af0]
call edi
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push 0
mov dword [esp + 0x74], eax
mov eax, dword [ebp]
mov eax, dword [eax + 0x3c]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x80], 0
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x38]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0x34]
mov ecx, ebp
call eax
movq xmm0, qword [esp + 0x50]
mov edx, dword [ebp]
sub esp, 0x10
mov eax, esp
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x68]
movq qword [eax + 8], xmm0
mov eax, dword [edx + 0x10]
mov ecx, ebp
call eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41131f
call eax
mov edi, dword [esp + 0x18]
inc dword [edi + 0x30]
lea esi, [esp + 0x70]
call fcn.0044a720
fmul qword [0x4c8918]
mov eax, dword [esp + 0x24]
fstp qword [esp + 0x38]
movsd xmm0, qword [esp + 0x38]
test al, 1
jne 0x4113d7
mov ebx, eax
shr ebx, 1
lea ecx, [ebx - 1]
test ebx, ecx
jne 0x4113ad
lea esi, [ebx + ebx]
test esi, esi
jne 0x411362
mov esi, 1
lea edi, [esi*8]
call fcn.0045eff0
mov edi, eax
test edi, edi
je 0x4113c9
cmp ebx, esi
ja 0x41137a
mov esi, ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4113a3
test esi, esi
je 0x41139c
lea edx, [esi*8]
push edx
push eax
push edi
call fcn.004a8520
mov eax, dword [esp + 0x2c]
add esp, 0xc
mov esi, eax
call fcn.0045f130
movsd xmm0, qword [esp + 0x38]
mov dword [esp + 0x20], edi
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
and ecx, 0xfffffffe
add ecx, 2
and ecx, 0xfffffffe
movsd qword [eax + ebx*8], xmm0
mov dword [esp + 0x24], ecx
jmp 0x4113cf
movsd xmm0, qword [esp + 0x38]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
comisd xmm0, xmmword [0x4c88d8]
jbe 0x4113e4
inc dword [edi + 0x34]
comisd xmm0, xmmword [0x4d3bb8]
jbe 0x4113f1
inc dword [edi + 0x38]
movss xmm1, dword [edi + 0x2c]
cvtps2pd xmm1, xmm1
comisd xmm0, xmm1
jbe 0x411408
cvtpd2ps xmm0, xmm0
movss dword [edi + 0x2c], xmm0
lea esi, [esp + 0x60]
call fcn.0044a720
fld qword [0x4d3798]
fcompi st(1)
fstp st(0)
ja 0x411243
mov eax, dword [ebx + 8]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
xor esi, esi
cmp eax, esi
je 0x41148f
push eax
call ebp
cmp eax, esi
jne 0x41148f
mov edx, dword [ebx + 8]
push edx
call fcn.0049d27f
add esp, 4
mov dword [ebx + 8], esi
cmp byte [ebx + 0x33], 0
jne 0x41148f
mov eax, dword [ebx + 0x5c]
mov byte [ebx + 0x33], 1
cmp eax, esi
je 0x41148f
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41148f
cmp byte [ebx + 0x2e], 0
je 0x411485
mov eax, dword [ebx + 0x28]
cmp eax, esi
je 0x41147f
push eax
mov eax, dword [ebx + 0x5c]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov dword [ebx + 0x28], esi
cmp byte [ebx + 0x2e], 0
jne 0x41148f
mov ecx, dword [ebx + 0x5c]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov edi, dword [esp + 0x18]
mov edx, dword [edi + 0x30]
fild dword [edi + 0x30]
test edx, edx
jge 0x4114a3
fadd dword [0x4d3380]
lea esi, [esp + 0x60]
fstp qword [esp + 0x48]
call fcn.0044a720
fdivr qword [esp + 0x48]
mov esi, dword [esp + 0x20]
fstp dword [edi + 0x28]
test esi, esi
je 0x4114c4
call fcn.0045f130
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4114fb
push eax
mov esi, eax
call ebp
and eax, 0xff
cmp eax, 0x80
jl 0x4114e6
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x4114f3
test eax, eax
jne 0x4114f3
mov esi, dword [esp + 0x10]
call fcn.0045f130
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x411524
push esi
call ebp
and eax, 0xff
cmp eax, 0x80
jl 0x41151b
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x411524
test eax, eax
jne 0x411524
call fcn.0045f130
mov eax, dword [esp + 0x28]
test eax, eax
je 0x411533
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret