Function at 0x524980
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [0x5c8eb4]
push edi
cmp byte [esi + 0x98], 0
jne 0x524c1c
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x524c1c
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x9c]
jne 0x524ac0
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
push ecx
call dword [eax + 0xac]
add dword [esp + 0x1c], 3
lea ebx, [esi + 8]
sub dword [esp + 0x24], 3
add dword [esp + 0x18], 3
sub dword [esp + 0x20], 3
cmp byte [esi + 0x88], 0
jne 0x524c1c
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x524a30
movups xmm0, xmmword [esp + 0x18]
push eax
push dword [esi + 4]
movups xmmword [ebx], xmm0
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x88], 1
call fcn.00537af0
mov dword [esi + 0x90], eax
mov eax, 1
mov dword [esi + 0x94], edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
cmp byte [esi + 0x88], 0
jne 0x524c1c
push 0xffffffffffffffec
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebp, dword [esp + 0x30]
shr eax, 3
test al, 1
je 0x524a57
push 1
jmp 0x524a59
push 0
push ebp
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push 3
push dword [esi + 0x78]
mov dword [esp + 0x38], eax
call edi
test eax, eax
je 0x524a93
nop dword [eax + eax]
cmp eax, dword [esp + 0x30]
je 0x524c1c
push 3
push eax
call edi
test eax, eax
jne 0x524a80
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov edx, dword [ebx]
sub eax, ecx
push 0
push eax
mov eax, dword [ebx + 8]
sub eax, edx
push eax
push ecx
push edx
push 0xffffffffffffffff
push ebp
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
cmp eax, dword [esi + 0xa0]
jne 0x524c1c
cmp byte [esi + 0x88], 0
je 0x524bbb
call fcn.00537af0
sub eax, dword [esi + 0x90]
push 0
sbb edx, dword [esi + 0x94]
push 0x2710
push edx
push eax
call fcn.00575e90
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 0x8c]
cdq
cmp ecx, edx
jl 0x524bbb
jg 0x524b15
cmp edi, eax
jbe 0x524bbb
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xac]
add dword [esp + 0x1c], 3
lea eax, [esp + 0x18]
sub dword [esp + 0x24], 3
lea edi, [esi + 8]
add dword [esp + 0x18], 3
sub dword [esp + 0x20], 3
push eax
push edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
je 0x524bb3
call fcn.0044bd00
mov ecx, esi
movsd qword [esi + 0x80], xmm0
call fcn.00524160
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x524bb3
mov byte [esi + 0x88], 0
mov eax, dword [ecx]
push edi
push ecx
call dword [eax + 0xac]
add dword [edi + 0xc], 0xfffffffd
add dword [edi + 4], 3
mov ecx, dword [edi + 0xc]
add dword [edi + 8], 0xfffffffd
add dword [edi], 3
mov edx, dword [edi]
mov eax, dword [edi + 8]
sub ecx, dword [edi + 4]
sub eax, edx
push 0
push ecx
push eax
push dword [esi + 0xc]
push edx
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
movups xmm0, xmmword [esp + 0x18]
movups xmmword [edi], xmm0
mov eax, dword [0x5c8eb4]
test byte [eax + 0xa8], 1
je 0x524c1c
cmp byte [esi + 0x88], 0
jne 0x524c1c
cmp byte [esi + 0x4c], 0
movss xmm1, dword [esi + 0x48]
movss xmm0, dword [esi + 0x44]
je 0x524bf7
addss xmm0, xmm1
comiss xmm0, dword [esi + 0x40]
movss dword [esi + 0x48], xmm0
jb 0x524c0e
mov byte [esi + 0x4c], 0
jmp 0x524c0e
subss xmm1, xmm0
movss xmm0, dword [esi + 0x3c]
comiss xmm0, xmm1
movss dword [esi + 0x48], xmm1
jb 0x524c0e
mov byte [esi + 0x4c], 1
push 0
push 0
push dword [esp + 0x38]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8