Function at 0x47d970
Capabilities:
Lock the desktop

Disassembly:
push ebp
lea ebp, [esp - 0x110]
sub esp, 0x110
push 0xffffffffffffffff
push 0x5ba450
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x61f138]
xor eax, ebp
mov dword [ebp + 0x10c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 4], 0
mov dword [ebx], vtable.TranslateData.0
je 0x47de9c
mov esi, dword [ebx + 0x288]
test esi, esi
je 0x47d9d7
mov ecx, esi
call fcn.004fae30
push 4
push esi
call fcn.0056eec5
add esp, 8
push SysReAllocString
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
cmp dword [ebx + 0x280], 0
je 0x47da5e
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
imul eax, dword [ebx + 0x14]
push 1
cdq
idiv dword [ebx + 0x10]
mov edi, eax
call esi
imul eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x280]
cdq
idiv dword [ebx + 0x10]
cmp edi, esi
jne 0x47da1d
cmp eax, dword [ebx + 0x284]
je 0x47da5e
push 0xdc
lea eax, [ebp]
push 0
push eax
call fcn.00586880
add esp, 0xc
mov dword [ebp + 0xac], esi
mov eax, 0xdc
mov dword [ebp + 0x48], 0x180000
mov word [ebp + 0x44], ax
mov eax, dword [ebx + 0x284]
mov dword [ebp + 0xb0], eax
lea eax, [ebp]
push 0
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
cmp dword [ebx + 0x278], 0
je 0x47da94
call fcn.00482990
mov ecx, dword [ebx + 0x278]
test ecx, ecx
je 0x47da8a
xor eax, eax
mov edx, 0x6d4074
xchg dword [edx], eax
push 1
push ecx
call fcn.0056eec5
add esp, 8
mov dword [ebx + 0x278], 0
cmp dword [ebx + 0x27c], 0
je 0x47daca
call fcn.004831f0
mov ecx, dword [ebx + 0x27c]
test ecx, ecx
je 0x47dac0
xor eax, eax
mov edx, 0x6d4078
xchg dword [edx], eax
push 0x10
push ecx
call fcn.0056eec5
add esp, 8
mov dword [ebx + 0x27c], 0
xor eax, eax
mov word [ebx + 0x20], ax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x6e9e98]
cmp eax, dword [ecx + 4]
jg 0x47deff
mov eax, dword [ebx + 0x248]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 1
call fcn.00520260
cmp byte [ebx + 0x238], 0
je 0x47db11
call dword [sym.imp.USER32.dll_LockWorkStation]
mov ecx, dword [ebx + 0x234]
test ecx, ecx
je 0x47db21
push ecx
call fcn.00479780
cmp dword [ebx + 4], 0
mov dword [ebx + 0x234], 0
je 0x47dba5
cmp byte [ebx + 0xc], 0
je 0x47dba5
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0xd]
mov dword [ebp - 0x1c], 0
push eax
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0xd], 0x10
call fcn.00465ce0
mov ecx, dword [ebx + 4]
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x47dba5
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x47db9b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47df3a
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov eax, dword [0x6d1fa8]
test eax, eax
je 0x47dd83
cmp dword [eax + 0x44], 0
je 0x47dd83
lea eax, [ebx + 0x18]
mov dword [ebp - 0x20], 0
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.00436b10
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00449dc0
add esp, 4
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
fild qword [ebp - 0x2c]
mov byte [ebp - 0xd], 9
fmul dword [0x5f7a40]
fstp dword [ebp - 0x24]
cvttss2si eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0xdc]
push eax
call fcn.005025a0
mov ecx, eax
call fcn.00456c80
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00465ce0
push dword [ebp - 0x14]
lea ecx, [ebx + 0x270]
lea eax, [ecx + 4]
push eax
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00465ce0
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
call fcn.00465ce0
lea edx, [ebp + 0xdc]
lea ecx, [ebp + 0xf4]
call fcn.00456d40
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.004fbaf0
mov edx, 0x6aad44
mov ecx, eax
call fcn.004fbaf0
mov edx, dword [ebp + 0x108]
cmp edx, 0x10
jb 0x47dce3
mov ecx, dword [ebp + 0xf4]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x47dcd9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47df3f
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov edx, dword [ebp + 0xf0]
mov dword [ebp + 0x104], 0
mov dword [ebp + 0x108], 0xf
mov byte [ebp + 0xf4], 0
cmp edx, 8
jb 0x47dd3e
mov ecx, dword [ebp + 0xdc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47dd34
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47df44
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov eax, dword [0x6d1fa8]
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [eax + 0x44]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x47dd83
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x47dd79
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47df49
push edx
push ecx
call fcn.0056eec5
add esp, 8
mov esi, dword [0x6d2000]
mov ecx, esi
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x47ddbd
mov edx, dword [ebx + 0x248]
lea ebx, [ebx]
cmp dword [eax + 0x10], edx
jge 0x47ddaa
mov eax, dword [eax + 8]
jmp 0x47ddae
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47dda0
cmp ecx, esi
je 0x47ddbd
cmp edx, dword [ecx + 0x10]
jge 0x47ddbf
mov ecx, esi
push ecx
lea eax, [ebp - 0x14]
push eax
call fcn.00480d80
call fcn.0047d900
mov ecx, dword [0x6d2008]
mov edi, ecx
mov esi, ecx
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x47de0e
mov edx, dword [ebx + 0x274]
mov ecx, dword [eax + 0x10]
cmp ecx, edx
jge 0x47ddf3
mov eax, dword [eax + 8]
jmp 0x47de02
cmp byte [esi + 0xd], 0
je 0x47ddfe
cmp edx, ecx
cmovl esi, eax
mov edi, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x47dde7
mov ecx, dword [0x6d2008]
cmp byte [esi + 0xd], 0
lea eax, [ecx + 4]
jne 0x47de19
mov eax, esi
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
jne 0x47de3b
mov ecx, dword [ebx + 0x274]
cmp ecx, dword [eax + 0x10]
jge 0x47de32
mov esi, eax
mov eax, dword [eax]
jmp 0x47de35
mov eax, dword [eax + 8]
cmp byte [eax + 0xd], 0
je 0x47de27
mov eax, edi
cmp edi, esi
je 0x47de81
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x47de67
mov ecx, dword [eax + 4]
cmp byte [ecx + 0xd], 0
jne 0x47de63
cmp eax, dword [ecx + 8]
jne 0x47de63
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp byte [ecx + 0xd], 0
je 0x47de53
mov eax, ecx
jmp 0x47de7d
mov eax, ecx
mov edx, dword [eax]
cmp byte [edx + 0xd], 0
jne 0x47de7d
mov ecx, dword [edx]
mov eax, edx
mov edx, ecx
cmp byte [ecx + 0xd], 0
je 0x47de71
cmp eax, esi
jne 0x47de41
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.00480b10
mov ecx, dword [ebx + 0x23c]
test ecx, ecx
je 0x47de9c
mov eax, dword [ecx]
push 1
call dword [eax]
lea ecx, [ebx + 0x24c]
call fcn.00445c30
mov dword [ebx], vtable.MessageProcessor.0
mov dword [ebp - 4], 0
mov esi, dword [ebx + 8]
test esi, esi
je 0x47dedc
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x47dedc
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x47dedc
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x10c]
xor ecx, ebp
call fcn.0056eeb4
lea esp, [ebp + 0x110]
pop ebp
ret
push 0x6e9e98
call fcn.0056f0e8
add esp, 4
cmp dword [0x6e9e98], 0xffffffff
jne 0x47dae9
call fcn.00521e90
push 0x5cb2d0
call fcn.0056f444
push 0x6e9e98
call fcn.0056f09e
add esp, 8
jmp 0x47dae9
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
call fcn.00591dc6
int3