Function at 0x40d920
Capabilities:
Access peb ldr_data
Create thread
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x588679
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x5f3fcc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x100], edi
mov dword [ebp - 0xfc], edi
lea eax, [edi + 8]
mov dword [ebp - 0x104], edi
push eax
push 4
push edi
push 0x40d200
push 0
mov dword [edi], vtable.Thread.0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
mov dword [edi + 0x10], vtable.UpdateListener.0
mov dword [edi], vtable.ScreenDetector.0
mov dword [edi + 0x10], vtable.ScreenDetector.1.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov byte [ebp - 4], 2
push str.user32.dll
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x20], eax
test eax, eax
je 0x40da2c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.QueryDisplayConfig
push eax
call esi
push str.GetDisplayConfigBufferSizes
push dword [edi + 0x20]
call esi
lea ecx, [edi + 0x10]
call fcn.004107b0
mov eax, dword [0x5fd6e4]
mov ecx, 0x5f4834
test eax, eax
cmove eax, edi
mov dword [0x5fd6e4], eax
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
mov esi, dword [0x5fd6d4]
mov byte [ebp - 4], 3
mov ecx, 0x5f4834
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov byte [ebp - 4], 2
mov ecx, 0x5f4834
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xf8], eax
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 4]
mov esi, dword [0x5fd6d4]
mov byte [ebp - 4], 4
mov ecx, 0x5f4834
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov byte [ebp - 4], 2
lea edi, [ebp - 0xf4]
mov eax, dword [vtable.LocalMutex.0]
add esi, 0x1a0
mov ecx, 0x20
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x5f4834
call dword [eax + 4]
mov edi, dword [0x5fd6d4]
mov byte [ebp - 4], 5
mov ecx, 0x5f4834
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov byte [ebp - 4], 2
xor esi, esi
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x74], eax
test eax, eax
jle 0x40db5a
lea edx, [ebp - 0x6e]
lea eax, [edi + 0x28]
nop dword [eax]
movzx ecx, byte [eax - 8]
lea eax, [eax + 0x30]
mov byte [edx - 2], cl
lea edx, [edx + 0x18]
movzx ecx, byte [eax - 0x34]
inc esi
mov byte [edx - 0x18], cl
movzx ecx, word [eax - 0x30]
mov word [edx - 0x16], cx
movzx ecx, word [eax - 0x2c]
mov word [edx - 0x14], cx
movzx ecx, word [eax - 0x28]
mov word [edx - 0x12], cx
movzx ecx, word [eax - 0x24]
mov word [edx - 0x10], cx
movzx ecx, word [eax - 0x20]
mov word [edx - 0xe], cx
movzx ecx, word [eax - 0x1c]
mov word [edx - 0xc], cx
movzx ecx, word [eax - 0x18]
mov word [edx - 0xa], cx
movzx ecx, word [eax - 0x14]
mov word [edx - 8], cx
movzx ecx, word [eax - 0x10]
mov word [edx - 6], cx
movzx ecx, word [eax - 0xc]
mov word [edx - 4], cx
cmp esi, dword [ebp - 0x74]
jl 0x40daf0
push 0x13c
call fcn.00422160
mov edi, eax
add esp, 4
mov dword [ebp - 0xfc], edi
mov byte [ebp - 4], 6
test edi, edi
je 0x40dc5f
push 0x13c
push 0
push edi
call fcn.0056a3b0
mov eax, dword [vtable.LocalMutex.0]
add esp, 0xc
mov ecx, 0x5f4834
call dword [eax + 4]
mov esi, dword [0x5fd6d4]
mov byte [ebp - 4], 7
mov ecx, 0x5f4834
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov esi, dword [esi + 0x220]
lea eax, [edi + 8]
push eax
push 4
push edi
push 0x40d200
push 0
mov dword [edi], vtable.Thread.0
mov byte [edi + 0xc], 0
push 0
mov byte [edi + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 4], eax
lea eax, [edi + 0x2c]
mov dword [edi], vtable.DisplayManager.0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
push eax
mov dword [edi + 0x28], vtable.LocalMutex.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x5fd6d8]
mov ecx, 0x3a
mov dword [edi + 0x138], esi
lea esi, [ebp - 0xf8]
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x44], 0
add edi, 0x50
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xfc]
test eax, eax
cmove eax, ecx
mov dword [0x5fd6d8], eax
jmp 0x40dc61
xor ecx, ecx
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x100]
mov dword [edi + 0x40], ecx
test ecx, ecx
je 0x40de50
push 0xc
call fcn.00422160
mov esi, eax
add esp, 4
mov dword [ebp - 0x100], esi
mov byte [ebp - 4], 8
test esi, esi
je 0x40dd2e
xorps xmm0, xmm0
mov ecx, esi
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0xffffffff
call fcn.004159f0
test eax, eax
jns 0x40dcf8
push 0x5d26a0
push dword [0x5fd6d0]
call fcn.0040b090
mov eax, dword [esi + 4]
add esp, 8
cmp eax, 4
je 0x40dd1d
push 4
push eax
push str.ScreenCapture_state_change_from__d_to__d
push dword [0x5fd6d0]
call fcn.0040b090
mov dword [esi + 4], 4
jmp 0x40dd1a
mov eax, dword [esi + 4]
cmp eax, 1
je 0x40dd1d
push 1
push eax
push str.ScreenCapture_state_change_from__d_to__d
push dword [0x5fd6d0]
call fcn.0040b090
mov dword [esi + 4], 1
add esp, 0x10
mov eax, dword [0x5fda38]
test eax, eax
cmove eax, esi
mov dword [0x5fda38], eax
jmp 0x40dd30
xor esi, esi
mov byte [ebp - 4], 2
mov dword [edi + 0x48], esi
test esi, esi
je 0x40de30
push 0x20
call fcn.00422160
mov ecx, eax
add esp, 4
mov dword [ebp - 0xfc], ecx
test ecx, ecx
je 0x40dde7
lea eax, [ecx + 8]
xorps xmm0, xmm0
push eax
push 4
push ecx
movups xmmword [ecx], xmm0
push 0x40d200
movups xmmword [ecx + 0x10], xmm0
mov esi, dword [edi + 0x40]
push 0
mov dword [ecx], vtable.Thread.0
mov byte [ecx + 0xc], 0
push 0
mov byte [ecx + 0xd], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xfc]
mov dword [ecx + 4], eax
mov byte [ebp - 4], 0xa
mov dword [ecx + 0x10], esi
lea esi, [ecx + 0x14]
push 0
mov dword [ecx], vtable.USBDetector.0
mov dword [ebp - 0x100], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004119c0
mov dword [esi], eax
mov byte [ebp - 4], 0xb
mov esi, dword [ebp - 0xfc]
push str.start_usb_hotplug_thread
push dword [0x5fd6d0]
mov dword [esi + 0x1c], 0
call fcn.0040b0c0
add esp, 8
jmp 0x40dde9
xor esi, esi
mov byte [ebp - 4], 2
mov dword [edi + 0x44], esi
test esi, esi
jne 0x40de63
push str.USBDetector_start_failed_
push dword [0x5fd6d0]
call fcn.0040b090
mov esi, dword [edi + 0x48]
add esp, 8
test esi, esi
je 0x40de30
mov eax, dword [esi]
test eax, eax
je 0x40de25
push 8
push eax
mov dword [eax], vtable.ScreenCaptureImplBase.0
call fcn.00567d94
add esp, 8
push 0xc
push esi
call fcn.00567d94
add esp, 8
push str.ScreenDetector_start_failed_
push dword [0x5fd6d0]
call fcn.0040b090
mov ecx, dword [edi + 0x40]
add esp, 8
test ecx, ecx
je 0x40de50
mov eax, dword [ecx]
push 1
call dword [eax]
push str.DisplayManager_start_failed_
push dword [0x5fd6d0]
call fcn.0040b090
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00567879
mov esp, ebp
pop ebp
ret