Function at 0x4766c0
Capabilities:
Check if file exists
Create directory
Create thread
Delete file
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x5c0c70]
xor eax, ebp
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x158], ecx
push 0
push 0
mov ecx, dword [ebp - 0x158]
call fcn.004fa2b2
cmp dword [0x5c2444], 0
jne 0x47670d
push str.Wow64DisableWow64FsRedirection
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5c2444], eax
cmp dword [0x5c2448], 0
jne 0x476732
push str.Wow64RevertWow64FsRedirection
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5c2448], eax
cmp dword [0x5c2440], 0
je 0x476757
push str.NtQuerySystemInformation
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x5c2440], eax
lea ecx, [ebp - 0x40]
call fcn.004524b0
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.004524f0
lea ecx, [ebp - 0xc]
push ecx
mov ecx, 0x5c2724
call fcn.0041c8e0
lea ecx, [ebp - 0x24]
call fcn.00451e90
push 1
push ecx
mov ecx, esp
push 0x588ed8
call fcn.0041c8a0
push SysReAllocString
lea ecx, [ebp - 0x24]
call fcn.00451fe0
push 0
push ecx
mov ecx, esp
push str.pleisure
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.00452d70
test eax, eax
setne dl
mov byte [0x5c249b], dl
push 0
push ecx
mov ecx, esp
push str.pnet
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.00452d70
test eax, eax
setne al
mov byte [0x5c249a], al
push 0
push ecx
mov ecx, esp
push str.pmytimeweb
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.00452d70
test eax, eax
setne cl
mov byte [0x5c2499], cl
push 0
push ecx
mov ecx, esp
push str.ins_runtip
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.00452d70
test eax, eax
setne dl
mov byte [0x5c249c], dl
push 0
push ecx
mov ecx, esp
push str.ins_upmytime
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.00452d70
test eax, eax
setne al
mov byte [0x5c249d], al
push ecx
mov ecx, esp
push 0x5c2724
call fcn.0041c880
push ecx
mov ecx, esp
push 0x588e54
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.004771c0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 4]
mov dword [0x5c271c], edx
mov ecx, dword [ebp - 0x158]
call fcn.0047bda0
mov dword [0x5c2720], eax
mov ecx, 0x5c2728
call fcn.0041cc40
movzx eax, al
test eax, eax
jne 0x4768d6
mov ecx, 0x5c272c
call fcn.0041cc40
movzx ecx, al
test ecx, ecx
jne 0x4768d6
mov ecx, 0x5c2728
call fcn.0041cb20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4768d6
mov ecx, 0x5c272c
call fcn.0041cb20
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x476a92
push 0x588e4c
push str.mytime.txt
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0xbc]
push eax
call fcn.0041ca60
add esp, 0xc
mov ecx, eax
call fcn.0041cb20
push eax
call fcn.0054523c
add esp, 8
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0xbc]
call fcn.0040f740
cmp dword [ebp - 0x44], 0
je 0x4769d6
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0053eef9
add esp, 4
push str.mytime.txt
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.0041ca60
add esp, 0xc
mov ecx, eax
call fcn.0041cb20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0xc0]
call fcn.0040f740
push ecx
mov ecx, esp
push str.configmytime
call fcn.0041c8a0
push ecx
mov ecx, esp
lea edx, [ebp - 0xc]
push edx
call fcn.0041c880
lea eax, [ebp - 0xcc]
push eax
lea ecx, [ebp - 0x40]
call fcn.00452750
push eax
mov ecx, 0x5c2728
call fcn.0041c8e0
lea ecx, [ebp - 0xcc]
call fcn.0040f740
push ecx
mov ecx, esp
push str.plugins
call fcn.0041c8a0
push ecx
mov ecx, esp
lea edx, [ebp - 0xc]
push edx
call fcn.0041c880
lea eax, [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x40]
call fcn.00452750
push eax
mov ecx, 0x5c272c
call fcn.0041c8e0
lea ecx, [ebp - 0xd8]
call fcn.0040f740
jmp 0x476a4e
push ecx
mov ecx, esp
push str.pcmasterconfigmytime
call fcn.0041c8a0
push ecx
push esp
lea ecx, [ebp - 0x40]
call fcn.00452f00
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00452750
push eax
mov ecx, 0x5c2728
call fcn.0041c8e0
lea ecx, [ebp - 0xe4]
call fcn.0040f740
push ecx
mov ecx, esp
push str.pcmasterplugins
call fcn.0041c8a0
push ecx
push esp
lea ecx, [ebp - 0x40]
call fcn.00452f00
lea edx, [ebp - 0xf0]
push edx
lea ecx, [ebp - 0x40]
call fcn.00452750
push eax
mov ecx, 0x5c272c
call fcn.0041c8e0
lea ecx, [ebp - 0xf0]
call fcn.0040f740
push ecx
mov ecx, esp
push 0x5c2728
call fcn.0041c880
push ecx
mov ecx, esp
push str.ConfigPathNew
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.004771c0
push ecx
mov ecx, esp
push 0x5c272c
call fcn.0041c880
push ecx
mov ecx, esp
push 0x588d80
call fcn.0041c8a0
lea ecx, [ebp - 0x24]
call fcn.004771c0
lea ecx, [ebp - 0x24]
call fcn.00451fb0
push ecx
mov ecx, esp
push str.sound
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x5c272c
call fcn.0041c880
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x40]
call fcn.00452750
push ecx
mov ecx, esp
push str.weathericon
call fcn.0041c8a0
push ecx
mov ecx, esp
push 0x5c272c
call fcn.0041c880
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00452750
push ecx
mov ecx, esp
push str.pcmasterupgrade
call fcn.0041c8a0
push ecx
push esp
lea ecx, [ebp - 0x40]
call fcn.00452f00
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x40]
call fcn.00452750
push eax
mov ecx, 0x5c2730
call fcn.0041c8e0
lea ecx, [ebp - 0x11c]
call fcn.0040f740
push 0
mov ecx, 0x5c2728
call fcn.0041cb20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
mov ecx, 0x5c272c
call fcn.0041cb20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
mov ecx, 0x5c2730
call fcn.0041cb20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
lea ecx, [ebp - 4]
call fcn.0041cb20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0
lea ecx, [ebp - 8]
call fcn.0041cb20
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov ecx, dword [ebp - 0x158]
call fcn.0047b580
mov ecx, dword [ebp - 0x158]
call fcn.0047fb30
mov ecx, dword [ebp - 0x158]
call fcn.0047dc60
mov ecx, dword [ebp - 0x158]
call fcn.0047bc70
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x480], 0
jne 0x476c92
push 0x18f
push 0x192
push 0
push 0
lea ecx, [ebp - 0x58]
call fcn.004652b0
push 0x300
call fcn.0053e4e7
add esp, 4
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x476c0b
mov ecx, dword [ebp - 0x120]
call fcn.00477400
mov dword [ebp - 0x15c], eax
jmp 0x476c15
mov dword [ebp - 0x15c], 0
mov ecx, dword [ebp - 0x158]
mov edx, dword [ebp - 0x15c]
mov dword [ecx + 0x480], edx
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x480], 0
je 0x476c92
push 0
push SysReAllocString
push SysReAllocString
push 0
push 0
push 0x88
push SysReAllocString
push 0x588d2c
push 0
mov ecx, dword [ebp - 0x158]
mov ecx, dword [ecx + 0x480]
call fcn.004fad42
push 0
push 0
mov edx, dword [ebp - 0x158]
mov ecx, dword [edx + 0x480]
call fcn.004fa2b2
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 0x480]
mov edx, dword [ecx + 4]
mov dword [0x5c2718], edx
mov ecx, dword [ebp - 0x158]
add ecx, 0x3e0
call fcn.004b9220
mov ecx, dword [ebp - 0x158]
add ecx, 0x2d8
call fcn.004b5930
push 0
push str._PCMaster6
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x476cdd
push 1
push 2
push 0x709
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push 0x3e8
push 0x1f7
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x36ee80
push 0x1ff
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x2710
push 0x203
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0x1b7740
push 0x209
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
cmp dword [0x5c244c], 1
jne 0x476d74
push 0
push 0x7530
push 0x20a
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x476de7
cmp dword [0x5c244c], 2
jne 0x476d9b
push 0
push 0x36ee80
push 0x20a
mov edx, dword [ebp - 0x158]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x476de7
cmp dword [0x5c244c], 3
jne 0x476dc2
push 0
push 0x6ddd00
push 0x20a
mov ecx, dword [ebp - 0x158]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x476de7
cmp dword [0x5c244c], 4
jne 0x476de7
push 0
push 0xa4cb80
push 0x20a
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push 0
push 0x482fa0
call fcn.00547a7d
add esp, 0xc
mov edx, dword [ebp - 0x158]
movzx eax, byte [edx + 0x4ac]
test eax, eax
jne 0x476f3c
lea ecx, [ebp - 0x5c]
call fcn.0040ee90
push 0x104
push 0x105
lea ecx, [ebp - 0x5c]
call fcn.004773d0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x98]
call fcn.00451e90
push 1
push ecx
mov ecx, esp
push str.SoftwareMicrosoftWindowsCurrentVersionRun
call fcn.0041c8a0
push SysReAllocString
lea ecx, [ebp - 0x98]
call fcn.00451fe0
push ecx
mov ecx, esp
push str.MagicTray
call fcn.0041c8a0
lea ecx, [ebp - 0x98]
call fcn.00477070
push ecx
mov ecx, esp
lea edx, [ebp - 0x5c]
push edx
call fcn.0041c880
push ecx
mov ecx, esp
push str.mytime
call fcn.0041c8a0
lea ecx, [ebp - 0x98]
call fcn.004771c0
mov byte [0x5c2458], 1
lea ecx, [ebp - 0x7c]
call fcn.00451e90
push 1
push ecx
mov ecx, esp
push 0x588c60
call fcn.0041c8a0
push SysReAllocString
lea ecx, [ebp - 0x7c]
call fcn.00451fe0
push 0xffffffffffffffff
push ecx
mov ecx, esp
push str.appstart
call fcn.0041c8a0
lea ecx, [ebp - 0x7c]
call fcn.00477110
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x60], 2
movzx eax, byte [0x5c2458]
test eax, eax
je 0x476eff
mov ecx, dword [ebp - 0x64]
or ecx, 1
mov dword [ebp - 0x64], ecx
jmp 0x476f08
mov edx, dword [ebp - 0x64]
and edx, 0xfffffffe
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
push ecx
mov ecx, esp
push str.appstart
call fcn.0041c8a0
lea ecx, [ebp - 0x7c]
call fcn.00477320
lea ecx, [ebp - 0x7c]
call fcn.00451f50
lea ecx, [ebp - 0x98]
call fcn.00451f50
lea ecx, [ebp - 0x5c]
call fcn.0040f740
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
push 0x446900
push 0xe
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x5c29d8], eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x158]
add ecx, 0x2e0
call fcn.004b71b0
push 0
push 0x588c44
mov ecx, 0x5c2770
call fcn.004a5a90
test eax, eax
jl 0x476fa1
push 1
push ecx
mov ecx, esp
push 0x588c2c
call fcn.0041c8a0
mov ecx, dword [ebp - 0x158]
call fcn.0047ba80
jmp 0x476fbb
push 0
push ecx
mov ecx, esp
push 0x588c2c
call fcn.0041c8a0
mov ecx, dword [ebp - 0x158]
call fcn.0047ba80
push 0
push ecx
mov ecx, esp
push str.notepad.dll
call fcn.0041c8a0
mov ecx, dword [ebp - 0x158]
call fcn.0047ba80
push 0
push ecx
mov ecx, esp
push str.net.dll
call fcn.0041c8a0
mov ecx, dword [ebp - 0x158]
call fcn.0047ba80
push 0
push ecx
mov ecx, esp
push 0x588bec
call fcn.0041c8a0
mov ecx, dword [ebp - 0x158]
call fcn.0047ba80
push 0
push ecx
mov ecx, esp
push 0x588bd0
call fcn.0041c8a0
mov ecx, dword [ebp - 0x158]
call fcn.0047ba80
push 0
push 0
push 0x540
mov ecx, dword [ebp - 0x158]
call fcn.004fa68a
lea ecx, [ebp - 8]
call fcn.0040f740
lea ecx, [ebp - 4]
call fcn.0040f740
lea ecx, [ebp - 0x24]
call fcn.00451f50
lea ecx, [ebp - 0xc]
call fcn.0040f740
lea ecx, [ebp - 0x40]
call fcn.004524d0
mov ecx, dword [ebp - 0x48]
xor ecx, ebp
call fcn.0053ea90
mov esp, ebp
pop ebp
ret