Function at 0x40b27f
Capabilities:
Check if file exists
Create directory
Create process on windows
Self delete

Disassembly:
push 0x248
mov eax, 0x52cd87
call fcn.00512375
mov dword [ebp - 0x24c], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [0x591780]
lea ecx, [ebp + 8]
call fcn.00409238
test eax, eax
jne 0x40b2b0
jmp 0x40b61b
push dword [ebp + 8]
call fcn.00411d86
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004013da
pop ecx
add eax, 0x10
pop ecx
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 3
mov eax, dword [0x591794]
push dword [eax - 0xc]
lea ecx, [ebp - 0x23c]
push eax
call fcn.00401a1d
mov edi, 0x103
push edi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00512ea0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
call esi
test eax, eax
jne 0x40b32f
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x23c]
call esi
test eax, eax
je 0x40b35e
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
call fcn.00412dc7
pop ecx
push ecx
lea eax, [ebp - 0x23c]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 5
push ecx
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x244], esp
push eax
call fcn.00401d42
mov byte [ebp - 4], 6
mov byte [ebp - 4], 3
call fcn.00412e89
pop ecx
pop ecx
call fcn.00414e89
push eax
lea ecx, [ebp - 0x240]
call fcn.0040131c
mov byte [ebp - 4], 8
push dword [0x591794]
movsx eax, byte [ebp - 0x114]
push eax
lea eax, [ebp - 0x240]
push str._C:_s
push eax
call fcn.00401b9f
add esp, 0x10
push dword [ebp - 0x240]
call esi
test eax, eax
je 0x40b401
push ecx
lea eax, [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 9
mov byte [ebp - 4], 8
call fcn.00412dc7
pop ecx
push ecx
lea eax, [ebp - 0x240]
mov ecx, esp
mov dword [ebp - 0x238], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xa
push ecx
lea eax, [ebp - 0x114]
mov ecx, esp
mov dword [ebp - 0x244], esp
push eax
call fcn.00401d42
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 8
call fcn.00412e89
pop ecx
pop ecx
push ebx
push dword [0x591784]
lea ecx, [ebp + 8]
call fcn.00409331
push eax
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp + 8]
call fcn.0040977e
mov byte [ebp - 4], 0xc
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
dec eax
push eax
push ebx
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp + 8]
call fcn.0040977e
mov byte [ebp - 4], 0xd
push ecx
mov ecx, esp
mov dword [ebp - 0x250], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0xe
mov eax, dword [0x591780]
mov eax, dword [eax - 0xc]
dec eax
push eax
push ebx
lea eax, [ebp - 0x244]
mov esi, 0x591780
push eax
mov ecx, esi
call fcn.0040977e
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x254], esp
push eax
call fcn.00401668
mov byte [ebp - 4], 0x10
mov byte [ebp - 4], 0x11
call fcn.00413110
pop ecx
pop ecx
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
mov eax, dword [0x591780]
mov eax, dword [eax - 0xc]
dec eax
push eax
push ebx
lea eax, [ebp - 0x238]
push eax
mov ecx, esi
call fcn.0040977e
mov byte [ebp - 4], 0x14
push dword [eax]
call fcn.0041352a
pop ecx
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x238]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.00402067
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00402275
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x14], 0x10
jb 0x40b54c
mov eax, dword [eax]
push eax
push dword [ebp - 0x23c]
call fcn.004127f3
pop ecx
pop ecx
mov byte [ebp - 4], 0xc
push ebx
push 1
lea ecx, [ebp - 0x234]
call fcn.00401536
mov ecx, dword [ebp - 0x24c]
call fcn.0040909e
push dword [ebp + 8]
mov esi, dword [0x591724]
call fcn.00402067
push eax
mov ecx, esi
call fcn.0040de8a
push edi
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call fcn.00512ea0
push dword [ebp - 0x240]
lea eax, [ebp - 0x218]
push str._c_ping__n_2_127.1_nuldel__q__s
push eax
call fcn.00402f5d
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
add esp, 0x18
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push str.cmd.exe
mov edi, str.open
push edi
push ebx
call esi
push 1
push ebx
push ebx
push dword [ebp - 0x23c]
push edi
push ebx
call esi
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x240]
add ecx, 0xfffffff0
call fcn.004010d2
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x23c]
add ecx, 0xfffffff0
call fcn.004010d2
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010d2
call fcn.005123f8
ret 4