Function at 0x401b20
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.00416ae0
mov eax, dword [0x422044]
xor eax, esp
mov dword [esp + 0x1c44], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x826]
push ebx
push eax
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
push 0x206
lea ecx, [esp + 0x124e]
push ebx
push ecx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
push 0x206
lea edx, [esp + 0x1046]
push ebx
push edx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
xor eax, eax
add esp, 0xc
push 0x7e
mov dword [esp + 0x666], eax
mov dword [esp + 0x66a], eax
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 word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], ax
lea eax, [esp + 0x7a6]
push ebx
push eax
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
push 0x7e
lea ecx, [esp + 0x726]
push ebx
push ecx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
push 0x7e
lea edx, [esp + 0x6a6]
push ebx
push edx
mov dword [esp + 0x20], ebx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
push 0x206
lea eax, [esp + 0xc36]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
xor eax, eax
add esp, 0xc
push 0x200
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
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 dword [esp + 0x69e], eax
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], ax
xor ebp, ebp
mov dword [esp + 0x24], ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
call fcn.0040f550
add esp, 0xc
push 1
lea edi, [esp + 0x2c]
call fcn.0040aaa0
add esp, 4
mov esi, eax
push ebx
lea edi, [esp + 0x464]
mov dword [esp + 0x1c], esi
call fcn.0040aaa0
add esp, 4
push 0x104
lea edx, [esp + 0x124c]
push edx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, ebx
je 0x401fc2
lea eax, [esp + 0x1d0]
push eax
lea ecx, [esp + 0x664]
push 0x10
push ecx
call fcn.0040ad4a
add esp, 0xc
lea edi, [esp + 0x820]
lea esi, [esp + 0x1d0]
call fcn.00403ab0
call fcn.00401980
cmp eax, 1
jne 0x401d30
xor eax, eax
jmp 0x4025ac
push 0x206
lea edx, [esp + 0xa2e]
push ebx
push edx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
push 0x206
lea eax, [esp + 0xe3e]
push ebx
push eax
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x401d70
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x401d90
lea eax, [esp + 0xe38]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x401db2
mov ecx, dword [0x41dca4]
mov edx, dword [0x41dca8]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
mov dword [eax], ecx
mov ecx, dword [0x41dcac]
mov dword [eax + 4], edx
lea edx, [esp + 0xa28]
push edx
push ebx
push 0x20000
mov dword [eax + 8], ecx
call edi
cmp eax, ebx
je 0x401e4c
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
lea eax, [esp + 0xe38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea ecx, [esp + 0xa28]
push ecx
push ebx
push 0x20000
xor esi, esi
call edi
cmp eax, ebx
je 0x401e4c
cmp esi, 5
jge 0x401e4c
push eax
call ebp
push 0xc8
add esi, 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0xa28]
push edx
push ebx
push 0x20000
call edi
cmp eax, ebx
jne 0x401e22
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x820]
push eax
call esi
lea ecx, [esp + 0x820]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x1b0]
push edx
lea eax, [esp + 0x824]
push 0x104
push eax
call fcn.0040aca1
add esp, 0xc
push 0x41dcb0
lea ecx, [esp + 0x824]
push 0x104
push ecx
call fcn.0040aca1
lea eax, [esp + 0x82c]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x401ec0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401ec0
sub eax, edx
sar eax, 1
je 0x401f2c
lea edx, [esp + 0x820]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f2c
xor eax, eax
jmp 0x401ef0
movzx ecx, word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x401ef0
push 0x41dcb0
lea eax, [esp + 0x22c]
push 0x104
push eax
call fcn.0040aca1
add esp, 0xc
lea ecx, [esp + 0x820]
push ecx
call esi
xor eax, eax
mov edi, edi
movzx ecx, word [esp + eax + 0xae]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x401f30
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + 0x2c]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x401f50
movzx edx, word [esp + 0xac]
mov dword [esp + 0x14], edx
xor eax, eax
jmp 0x401f80
movzx ecx, word [esp + eax + 0xce]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x401f80
movzx eax, word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov ebp, dword [esp + 0x1f0]
lea ecx, [esp + 0x1b0]
push ecx
push 0x10
lea edx, [esp + 0x688]
mov dword [esp + 0x18], eax
push edx
jmp 0x40206f
cmp dword [reloc.crypt32.dll_CertGetStoreProperty], 3
jne 0x402077
push 0x236
lea eax, [esp + 0x22c]
push ebx
push eax
call fcn.0040f550
add esp, 0xc
lea esi, [esp + 0x228]
call fcn.00404340
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x402077
xor eax, eax
nop
movzx ecx, word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x402000
mov ecx, dword [esp + 0x32e]
lea esi, [esp + 0x720]
call fcn.00403720
movzx ecx, word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x328]
lea esi, [esp + 0x6a0]
call fcn.00403720
movzx edx, word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov ebp, dword [esp + 0x230]
lea eax, [esp + 0x356]
push eax
push 0x10
lea ecx, [esp + 0x668]
mov dword [esp + 0x18], edx
push ecx
call fcn.0040ad4a
add esp, 0xc
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x4021a0
xor eax, eax
jmp 0x402090
movzx ecx, word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x402090
xor eax, eax
lea ebx, [ebx]
movzx ecx, word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x4020b0
movzx edx, word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov dword [esp + 0x14], edx
xor eax, eax
jmp 0x4020e0
movzx ecx, word [eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x4020e0
cmp dword [reloc.crypt32.dll_CertGetStoreProperty], 3
movzx eax, word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov dword [esp + 0x10], eax
mov ebp, 5
je 0x402126
lea ecx, [esp + 0xc30]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402153
push 0x104
lea edx, [esp + 0xc34]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41dc40
lea eax, [esp + 0xc34]
push 0x104
push eax
call fcn.0040aca1
add esp, 0xc
xor eax, eax
jmp 0x402160
movzx ecx, word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + reloc.crypt32.dll_CertDeleteCRLFromStore], cx
add eax, 2
cmp cx, bx
jne 0x402160
push 0x41dccc
lea ecx, [esp + 0x1044]
push 0x104
push ecx
call fcn.0040aca1
add esp, 0xc
lea edx, [esp + 0x1040]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x200
lea eax, [esp + 0x2c]
push ebx
push eax
call fcn.0040f550
mov esi, 0x504d534d
add esp, 0xc
mov dword [esp + 0x28], esi
mov word [esp + 0xac], 0x51
xor eax, eax
jmp 0x4021d0
movzx ecx, word [eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + 0x2c], cx
add eax, 2
cmp cx, bx
jne 0x4021d0
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], 0x2b66
xor eax, eax
movzx ecx, word [eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + 0xce], cx
add eax, 2
cmp cx, bx
jne 0x4021f0
xor eax, eax
lea esp, [esp]
movzx ecx, word [eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + 0xae], cx
add eax, 2
cmp cx, bx
jne 0x402210
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x1f0], 5
jne 0x402246
cmp dword [esp + 0x20], ebx
jne 0x402246
cmp edi, ebx
je 0x4022c1
lea ecx, [esp + 0x7a0]
push ecx
lea edx, [esp + 0xb2]
push 0x10
push edx
call fcn.0040ad4a
add esp, 0xc
lea eax, [esp + 0x720]
push eax
lea ecx, [esp + 0x30]
push 0x40
push ecx
call fcn.0040ad4a
movzx edx, word [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x6a0]
push eax
lea ecx, [esp + 0xd2]
push 0x40
push ecx
mov word [esp + 0xb8], dx
call fcn.0040ad4a
movzx edx, word [esp + 0x1c]
add esp, 0xc
cmp ebp, ebx
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], dx
mov dword [esp + 0x1f0], ebp
jne 0x4022c1
mov dword [esp + 0x1f0], 5
xor eax, eax
jmp 0x4022d0
movzx ecx, word [eax + reloc.crypt32.dll_CertDeleteCRLFromStore]
mov word [esp + eax + 0xce], cx
add eax, 2
cmp cx, bx
jne 0x4022d0
cmp word [esp + 0x2c], bx
je 0x4025a7
cmp word [esp + 0xac], bx
jbe 0x4025a7
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x28], esi
call ebp
push eax
call fcn.0040ad1b
add esp, 4
push 0x7fe
lea eax, [esp + 0x1456]
push ebx
push eax
mov word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
call fcn.0040f550
add esp, 0xc
cmp word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
jne 0x40236b
lea ecx, [esp + 0x1450]
push ecx
push 5
mov eax, 6
call fcn.00403080
lea edx, [esp + 0x1458]
push edx
lea eax, [esp + 0x15c]
push 0x10
push eax
call fcn.0040ad4a
add esp, 0x14
cmp word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
jne 0x4023a3
lea ecx, [esp + 0x1450]
push ecx
push 5
mov eax, 6
call fcn.00403080
lea edx, [esp + 0x1458]
push edx
lea eax, [esp + 0x17c]
push 0x10
push eax
call fcn.0040ad4a
add esp, 0x14
cmp word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
jne 0x4023db
lea ecx, [esp + 0x1450]
push ecx
push 5
mov eax, 6
call fcn.00403080
lea edx, [esp + 0x1458]
push edx
lea eax, [esp + 0x1bc]
push 0x10
push eax
call fcn.0040ad4a
add esp, 0x14
cmp word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
jne 0x40244b
lea ecx, [esp + 0x1450]
push ecx
push 5
mov eax, 6
call fcn.00403080
lea edx, [esp + 0x1458]
push edx
lea eax, [esp + 0x1dc]
push 0x10
push eax
call fcn.0040ad4a
lea eax, [esp + 0x674]
add esp, 0x14
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402420
sub eax, edx
sar eax, 1
je 0x40244b
lea ecx, [esp + 0x660]
push ecx
lea edx, [esp + 0x1d4]
push 0x10
push edx
call fcn.0040ad4a
add esp, 0xc
lea eax, [esp + 0x680]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402455
sub eax, edx
sar eax, 1
je 0x402480
lea eax, [esp + 0x680]
push eax
lea ecx, [esp + 0x194]
push 0x10
push ecx
call fcn.0040ad4a
add esp, 0xc
cmp word [esp + reloc.crypt32.dll_CertDeleteCRLFromStore], bx
jne 0x4024b8
lea edx, [esp + 0x1450]
push edx
push 5
mov eax, 6
call fcn.00403080
lea eax, [esp + 0x1458]
push eax
lea ecx, [esp + 0x19c]
push 0x10
push ecx
call fcn.0040ad4a
add esp, 0x14
cmp dword [esp + 0x1f0], ebx
mov dword [esp + 0x1f4], 0x10001af
jne 0x4024d7
mov dword [esp + 0x1f0], 5
lea edx, [esp + 0x28]
push edx
call fcn.0040ab60
add esp, 4
test eax, eax
je 0x4025a7
lea edi, [esp + 0x820]
lea esi, [esp + 0x1d0]
call fcn.00403ab0
call ebp
push eax
call fcn.0040ad1b
add esp, 4
push 0x32
mov eax, 0x64
call fcn.00403040
add esp, 4
push eax
mov eax, edi
push eax
lea eax, [esp + 0x1250]
call fcn.00401a50
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push 3
push ebx
push 0x41dce8
push connect
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40258f
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402551
mov ecx, dword [esp + 0x1c]
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
push edx
lea eax, [esp + 0x824]
push eax
push 1
push ebx
push 0x41dd54
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40258f
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
push ebx
push 0x41ddcc
lea eax, [esp + 0x82c]
push eax
push ebx
push ebx
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.0040ac62
add esp, 0x1c4c
ret