Function at 0x40c9b0
Capabilities:
Create directory
Create thread
Get common file path
Query or enumerate registry value
Resume thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x418
mov eax, dword [0x42000c]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
push edi
push 0x414cac
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0x118
xor edi, edi
mov dword [esp + 0x1c], 0x11c
lea eax, [esp + 0x20]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 6
push 3
push 2
push edi
push edi
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x20
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 3
push 0x10
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 0x33
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jg 0x40ca50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x47e
je 0x40cdbb
xor eax, eax
mov dword [esp + 0x18], 0x11c
push 1
push 2
push eax
push eax
mov dword [esp + 0x2c], 6
mov dword [esp + 0x30], 1
mov dword [esp + 0x13c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x140], eax
mov word [esp + 0x3c], ax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push 1
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 3
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jg 0x40cdbb
push 0x419398
push str.SOFTWAREMicrosoftCryptographyOIDEncodingType_0CertDllOpenStoreProv
call fcn.0040cde0
push str.Image_Path
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider
call fcn.0040cde0
push 0x800
push 0
push str.cryptnet.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea eax, [esp + 8]
xor esi, esi
push eax
push 8
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40cb29
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 4
push eax
push 4
lea eax, [esp + 0x14]
push eax
push 0x14
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [esp + 0xc]
mov eax, dword [esp + 8]
test eax, eax
je 0x40cb38
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 8]
mov dword [0x420048], esi
push eax
push 0x20019
push 0
push str.SOFTWAREPoliciesZoomZoom_MeetingsGeneral
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cbc0
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x14], 4
push eax
push 0xffff
push str.Disable3rdModuleVerify
push 0
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40cbc0
cmp dword [esp + 0x14], 4
jne 0x40cbc0
cmp dword [esp + 0xc], 4
jne 0x40cbc0
xor eax, eax
cmp dword [esp + 0x10], eax
sete al
jmp 0x40cbc5
mov eax, 1
mov dword [0x422040], eax
cmp dword [0x421ffc], edi
jne 0x40cd3a
push 0x400
lea eax, [esp + 0x1c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40cd3a
push 0x416ea0
lea eax, [esp + 0x1c]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
mov eax, 0x416ea4
cmp dword [0x421ff0], edi
je 0x40cc3b
cmp dword [0x421ff4], 0x10
mov eax, 0x421fe0
cmovae eax, dword [0x421fe0]
push eax
lea eax, [esp + 0x1c]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str._appsafecheck.txt
lea eax, [esp + 0x1c]
push 0x400
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
lea eax, [esp + 0x18]
push 0
push 0x80
push 2
push 0
push 3
push 0x10000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x42203c], eax
cmp eax, 0xffffffff
je 0x40ccac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x42203c], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x42203c], eax
cmp eax, 0xffffffff
je 0x40cd3a
push 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
push 0
push 1
push 0
mov dword [0x422030], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x422034], eax
cmp dword [0x422030], edi
je 0x40cd3a
test eax, eax
je 0x40cd3a
push 0
push 4
push 0x420048
push 0x40e4f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x422038], eax
test eax, eax
je 0x40cd3a
push eax
mov dword [0x421ffc], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
call fcn.0040d110
call fcn.0040c560
mov dword [0x42004c], eax
call fcn.0040d610
test eax, eax
je 0x40cda5
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x40cda0
push str.LdrRegisterDllNotification
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LdrUnregisterDllNotification
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test edi, edi
je 0x40cda0
test eax, eax
je 0x40cda0
push 0x421ff8
push 0x420048
push 0x40e1c0
push 0
mov ecx, edi
call dword [0x414664]
call edi
mov edi, 1
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00410e60
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x41c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00410e60
mov esp, ebp
pop ebp
ret