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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [0x5b9744]
push edi
cmp byte [esi + 0x98], 0
jne 0x51d5ec
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x51d5ec
mov eax, dword [esp + 0x34]
cmp eax, dword [esi + 0x9c]
jne 0x51d490
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 0x51d5ec
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x51d400
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.0052ecf6
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 0x51d5ec
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 0x51d427
push 1
jmp 0x51d429
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 0x51d463
nop dword [eax + eax]
cmp eax, dword [esp + 0x30]
je 0x51d5ec
push 3
push eax
call edi
test eax, eax
jne 0x51d450
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 0x51d5ec
cmp byte [esi + 0x88], 0
je 0x51d58b
call fcn.0052ecf6
sub eax, dword [esi + 0x90]
push 0
sbb edx, dword [esi + 0x94]
push 0x2710
push edx
push eax
call fcn.0056f300
mov edi, eax
mov ecx, edx
mov eax, dword [esi + 0x8c]
cdq
cmp ecx, edx
jl 0x51d58b
jg 0x51d4e5
cmp edi, eax
jbe 0x51d58b
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 0x51d583
call fcn.00449300
mov ecx, esi
movsd qword [esi + 0x80], xmm0
call fcn.0051cc10
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x51d583
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 [0x5b9744]
test byte [eax + 0xa8], 1
je 0x51d5ec
cmp byte [esi + 0x88], 0
jne 0x51d5ec
cmp byte [esi + 0x4c], 0
movss xmm1, dword [esi + 0x48]
movss xmm0, dword [esi + 0x44]
je 0x51d5c7
addss xmm0, xmm1
comiss xmm0, dword [esi + 0x40]
movss dword [esi + 0x48], xmm0
jb 0x51d5de
mov byte [esi + 0x4c], 0
jmp 0x51d5de
subss xmm1, xmm0
movss xmm0, dword [esi + 0x3c]
comiss xmm0, xmm1
movss dword [esi + 0x48], xmm1
jb 0x51d5de
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