Function at 0x5d206c
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Self delete

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x5d2075
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x20], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d23b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5d22f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov cl, 1
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.004ecba8
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x14]
call fcn.0040a954
lea eax, [ebp - 0x18]
push eax
mov cl, 1
mov edx, dword [ebp - 0x20]
mov eax, esi
call fcn.004ecba8
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x18]
call fcn.0040a954
lea ecx, [ebp - 0x7c]
mov edx, 0x5d23cc
mov eax, dword [ebp - 0x20]
call fcn.004248a4
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x1c]
push eax
mov cl, 1
mov dword [ebp - 0x80], esi
mov edx, dword [ebp - 0x80]
mov eax, ebx
call fcn.004ecba8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.0040a954
lea eax, [ebp - 0x54]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040b038
push eax
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
je 0x5d2290
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x78]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040b038
push eax
call sub.kernel32.dll_GetFileAttributesExW
test eax, eax
je 0x5d22ef
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_CompareFileTime
test eax, eax
je 0x5d22ef
mov eax, dword [ebp - 0xc]
call fcn.0040b038
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x5d21d0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x88], eax
mov byte [ebp - 0x84], 0x11
lea edx, [ebp - 0x88]
xor ecx, ecx
mov eax, 0x5d23e4
call fcn.004250ac
push 0
lea eax, [ebp - 0x8c]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call fcn.0040adcc
mov eax, dword [ebp - 0x8c]
call fcn.0040ad3c
push eax
call sub.kernel32.dll_WinExec
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
lea edx, [ebp - 0x9c]
mov ecx, 1
mov eax, 0x5d2410
call fcn.004250ac
push 0
lea eax, [ebp - 0xa0]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call fcn.0040adcc
mov eax, dword [ebp - 0xa0]
call fcn.0040ad3c
push eax
call sub.kernel32.dll_WinExec
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
lea edx, [ebp - 0x9c]
mov ecx, 1
mov eax, 0x5d244c
call fcn.004250ac
push 0
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call fcn.0040adcc
mov eax, dword [ebp - 0xa4]
call fcn.0040ad3c
push eax
call sub.kernel32.dll_WinExec
jmp 0x5d22ef
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
mov eax, dword [ebp - 4]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
lea edx, [ebp - 0x9c]
mov ecx, 1
mov eax, 0x5d244c
call fcn.004250ac
push 0
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call fcn.0040adcc
mov eax, dword [ebp - 0xa8]
call fcn.0040ad3c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5d2367
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d23b7
lea eax, [ebp - 0xac]
call fcn.0040a52c
lea eax, [ebp - 0xa8]
mov edx, 3
call fcn.0040a5bc
lea eax, [ebp - 0x8c]
call fcn.0040a550
lea eax, [ebp - 0x7c]
call fcn.0040a52c
lea eax, [ebp - 0x1c]
mov edx, 7
call fcn.0040a58c
ret