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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [0x5c4df8]
push edi
cmp byte [esi + 0x98], 0
jne 0x52070c
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x52070c
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x9c]
jne 0x5205b0
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 0x52070c
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x520520
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.00532d33
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 0x52070c
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 0x520547
push 1
jmp 0x520549
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 0x520583
nop dword [eax + eax]
cmp eax, dword [esp + 0x30]
je 0x52070c
push 3
push eax
call edi
test eax, eax
jne 0x520570
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 0x52070c
cmp byte [esi + 0x88], 0
je 0x5206ab
call fcn.00532d33
sub eax, dword [esi + 0x90]
push 0
sbb edx, dword [esi + 0x94]
push 0x2710
push edx
push eax
call fcn.00572810
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 0x8c]
cdq
cmp ecx, edx
jl 0x5206ab
jg 0x520605
cmp edi, eax
jbe 0x5206ab
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 0x5206a3
call fcn.0044b760
mov ecx, esi
movsd qword [esi + 0x80], xmm0
call fcn.0051fc50
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x5206a3
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 [0x5c4df8]
test byte [eax + 0xa8], 1
je 0x52070c
cmp byte [esi + 0x88], 0
jne 0x52070c
cmp byte [esi + 0x4c], 0
movss xmm1, dword [esi + 0x48]
movss xmm0, dword [esi + 0x44]
je 0x5206e7
addss xmm0, xmm1
comiss xmm0, dword [esi + 0x40]
movss dword [esi + 0x48], xmm0
jb 0x5206fe
mov byte [esi + 0x4c], 0
jmp 0x5206fe
subss xmm1, xmm0
movss xmm0, dword [esi + 0x3c]
comiss xmm0, xmm1
movss dword [esi + 0x48], xmm1
jb 0x5206fe
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