Function at 0x509ffd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x58f860]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
and dword [eax + 0x2c4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov dword [ebp - 0x5c], eax
mov byte [eax + 0x2e0], 0
mov dword [eax + 0x2c0], ebx
mov byte [eax + 0x2f2], 1
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x18]
mov ecx, eax
call fcn.004db295
mov dword [ebp - 0x58], eax
mov eax, dword [ebx + 0x2ec]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx + 0x2f0]
mov dword [ebp - 0x50], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc4]
mov esi, eax
lea edi, [ebp - 0x6c]
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 eax, dword [ebp - 0x60]
lea esi, [ebp - 0x6c]
lea edi, [ebp - 0x14]
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 ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
add eax, dword [ebp - 0x50]
cmp dword [ebp - 0x54], 0
mov dword [ebp - 8], eax
jle 0x50a092
mov eax, ecx
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
jmp 0x50a095
mov eax, dword [ebp - 0x14]
mov edx, ecx
sub edx, eax
cmp edx, 0xc8
jge 0x50a0aa
add ecx, 0xffffff38
mov dword [ebp - 0x14], ecx
mov esi, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x58]
call esi
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
push eax
push 1
mov ecx, edi
mov dword [ebp - 0x4c], 0x28
call fcn.004cdea4
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push eax
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x24]
call fcn.004cd556
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jle 0x50a151
cmp dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], ecx
jle 0x50a11a
mov eax, ecx
sub eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov edx, ecx
sub edx, eax
cmp edx, 0xc8
jge 0x50a12f
add ecx, 0xffffff38
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x68]
mov ecx, eax
sub ecx, dword [ebp - 0x50]
push 2
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x58]
mov dword [ebp - 0x10], ecx
call esi
mov byte [edi + 0x2f2], 0
mov eax, dword [ebx]
push 0
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x8000080
movsd dword es:[edi], dword [esi]
push SysReAllocString
push 0
mov ecx, ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x18]
mov ecx, eax
call fcn.004db295
mov esi, dword [ebp - 0x5c]
push eax
mov ecx, esi
call fcn.004cea7f
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 0
push 1
push 0x86
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00512610
leave
ret 4