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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [0x5bac80]
push edi
cmp byte [esi + 0x98], 0
jne 0x51e11c
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x51e11c
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x9c]
jne 0x51dfc0
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 0x51e11c
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x51df30
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.0052f9c6
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 0x51e11c
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 0x51df57
push 1
jmp 0x51df59
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 0x51df93
nop dword [eax + eax]
cmp eax, dword [esp + 0x30]
je 0x51e11c
push 3
push eax
call edi
test eax, eax
jne 0x51df80
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 0x51e11c
cmp byte [esi + 0x88], 0
je 0x51e0bb
call fcn.0052f9c6
sub eax, dword [esi + 0x90]
push 0
sbb edx, dword [esi + 0x94]
push 0x2710
push edx
push eax
call fcn.0056f630
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 0x8c]
cdq
cmp ecx, edx
jl 0x51e0bb
jg 0x51e015
cmp edi, eax
jbe 0x51e0bb
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 0x51e0b3
call fcn.00449be0
mov ecx, esi
movsd qword [esi + 0x80], xmm0
call fcn.0051d660
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x51e0b3
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 [0x5bac80]
test byte [eax + 0xa8], 1
je 0x51e11c
cmp byte [esi + 0x88], 0
jne 0x51e11c
cmp byte [esi + 0x4c], 0
movss xmm1, dword [esi + 0x48]
movss xmm0, dword [esi + 0x44]
je 0x51e0f7
addss xmm0, xmm1
comiss xmm0, dword [esi + 0x40]
movss dword [esi + 0x48], xmm0
jb 0x51e10e
mov byte [esi + 0x4c], 0
jmp 0x51e10e
subss xmm1, xmm0
movss xmm0, dword [esi + 0x3c]
comiss xmm0, xmm1
movss dword [esi + 0x48], xmm1
jb 0x51e10e
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