Function at 0x51ffb7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x70a034]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x24], ebx
push edi
lea ecx, [ebx + 0x698]
mov dword [esp + 0x20], esi
and dword [esi + 0x6b8], 0
mov byte [esi + 0x6c0], 0
mov dword [esi + 0x6b4], ebx
mov eax, dword [ecx]
call dword [eax + 8]
mov dword [esi + 0x6bc], eax
mov eax, dword [esi + 0x6b4]
mov ecx, dword [eax + 0x74c]
mov eax, dword [eax + 0x750]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ecx, ebx
call dword [eax + 0x50]
mov esi, eax
mov ecx, dword [esp + 0x18]
lea edi, [esp + 0x2c]
mov eax, dword [esp + 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x2c]
lea edi, [esp + 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x38]
add ecx, esi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], esi
mov dword [esp + 0x48], ecx
test eax, eax
jle 0x52005e
lea edi, [edx + eax]
mov dword [esp + 0x44], edi
jmp 0x520062
mov edi, dword [esp + 0x44]
and dword [esp + 0x10], 0
sub ecx, esi
and dword [esp + 0x14], 0
lea esi, [ebx + 0x550]
mov eax, dword [esi]
sub edi, edx
mov dword [esp + 0x24], ecx
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
jle 0x5200db
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax]
mov ecx, eax
mov dword [esp + 0x10], eax
mov edx, dword [eax]
call dword [edx + 0xf4]
test al, al
je 0x5200c0
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x4c]
push dword [esp + 0x24]
push edi
mov edx, dword [ecx]
push eax
call dword [edx + 0x140]
add ebx, dword [esp + 0x50]
mov eax, dword [esi]
mov ecx, esi
inc dword [esp + 0x14]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
jl 0x52008d
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov ecx, ebx
mov esi, dword [esp + 0x18]
add eax, 4
cmp eax, esi
cmovl esi, eax
mov eax, dword [esp + 0x40]
add eax, esi
mov dword [esp + 0x48], eax
mov eax, dword [ebx]
call dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x40]
push ecx
push 0
push dword [eax + 0xa8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0xa
pop ecx
xor eax, eax
lea edi, [esp + 0x54]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x28
push eax
mov eax, dword [esp + 0x24]
push 1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x74]
jle 0x520193
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], ecx
test eax, eax
jle 0x520167
add eax, ecx
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0x30]
mov eax, ecx
sub eax, esi
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], eax
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x1c]
push 2
lea ecx, [esp + 0x40]
push ecx
push 0
push dword [eax + 0xa8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov ebx, dword [esp + 0x20]
lea esi, [esp + 0x3c]
sub esp, 0x10
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
push 0x80
push closesocket
push ecx
push dword [eax + 0xa8]
movsd dword es:[edi], dword [esi]
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0051e896
mov esi, dword [ebx + 4]
mov edi, dword [sym.imp.USER32.dll_GetParent]
jmp 0x5201d4
push esi
call edi
mov esi, eax
push esi
call edi
test eax, eax
jne 0x5201cf
push 5
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 1
push 0x86
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00625325
mov esp, ebp
pop ebp
ret 4