Function at 0x40bfec
Capabilities:
Create directory
Create process on windows
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403a84
mov eax, dword [ebp - 8]
call fcn.00403a84
xor eax, eax
push ebp
push 0x40c40e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab14
mov edx, 0x40c424
call fcn.00403770
xor ebx, ebx
push dword [0x41aae0]
push 0x40c4b4
lea edx, [ebp - 0x64]
movzx eax, word [0x4191f0]
call fcn.00405350
push dword [ebp - 0x64]
push 0x40c4c0
mov eax, 0x41ab00
mov edx, 4
call fcn.00403954
push 0
mov eax, dword [0x41ab00]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40c140
push 0
mov eax, dword [0x41ab00]
call fcn.00403a94
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40c140
push 0x20
mov eax, dword [0x41ab00]
call fcn.00403a94
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40c140
inc byte [0x4191f4]
lea edx, [ebp - 0x6c]
xor eax, eax
mov al, byte [0x4191f4]
call fcn.00405350
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x40c4d0
call fcn.004038e0
mov eax, dword [ebp - 0x68]
call fcn.0041706c
cmp byte [0x4191f4], 0xa
jbe 0x40c140
push 0x40c4e4
push dword [0x41ab00]
push 0x40c504
lea edx, [ebp - 0x74]
xor eax, eax
call fcn.00406240
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x70]
call fcn.0041706c
mov eax, 0x41ab04
call fcn.0040371c
jmp 0x40c3e3
mov eax, 0x41ab14
mov edx, 0x40c510
call fcn.00403770
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.00402bd8
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402bd8
mov dword [ebp - 0x50], 0x44
mov word [ebp - 0x20], 0
mov dword [ebp - 0x24], 1
push 0x40c540
push dword [0x41ab04]
push 0x40c54c
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40c574
push dword [0x41ab00]
push 0x40c540
lea eax, [ebp - 0xc]
mov edx, 8
call fcn.00403954
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0xc000040
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403a94
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c26c
push 0x40c580
push dword [ebp - 0xc]
push 0x40c504
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00406240
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x78]
call fcn.0041706c
inc byte [0x4191f4]
cmp byte [0x4191f4], 0xa
jbe 0x40c3e3
push 0x40c590
push dword [0x41ab00]
push 0x40c504
lea edx, [ebp - 0x84]
xor eax, eax
call fcn.00406240
push dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.00403954
mov eax, dword [ebp - 0x80]
call fcn.0041706c
mov eax, 0x41ab04
call fcn.0040371c
jmp 0x40c3e3
push 0x1b7740
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x40c2c2
mov eax, 0x40c5ac
call fcn.0041706c
mov eax, 0x41ab14
mov edx, 0x40c5c4
call fcn.00403770
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, 0x41ab14
mov edx, 0x40c5f4
call fcn.00403770
jmp 0x40c3e3
mov eax, 0x41ab14
mov edx, 0x40c6b4
call fcn.00403770
mov ax, word [0x4191f0]
dec ax
je 0x40c2f4
dec ax
je 0x40c316
dec ax
je 0x40c354
dec ax
je 0x40c3a1
jmp 0x40c3c0
mov eax, 0x41ab2c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038e0
mov eax, 0x41ab10
mov edx, dword [ebp - 8]
call fcn.00403770
jmp 0x40c3d2
mov eax, 0x41ab14
mov edx, 0x40c768
call fcn.00403770
push dword [0x41ab2c]
push 0x40c804
push dword [ebp - 8]
mov eax, 0x41ab30
mov edx, 3
call fcn.00403954
mov eax, 0x41ab10
mov edx, dword [0x41ab30]
call fcn.00403770
jmp 0x40c3d2
mov eax, 0x41ab14
mov edx, 0x40c810
call fcn.00403770
push dword [0x41ab30]
push 0x40c804
push dword [ebp - 8]
mov eax, 0x41ab34
mov edx, 3
call fcn.00403954
mov eax, 0x41ab10
mov edx, dword [0x41ab34]
call fcn.00403770
mov eax, 0x41ab14
mov edx, 0x40c828
call fcn.00403770
jmp 0x40c3d2
push dword [0x41ab34]
push 0x40c804
push dword [ebp - 8]
mov eax, 0x41ab10
mov edx, 3
call fcn.00403954
jmp 0x40c3d2
mov eax, 0x41ab10
mov ecx, dword [ebp - 8]
mov edx, 0x40c85c
call fcn.004038e0
mov eax, 0x41ab14
mov edx, 0x40c870
call fcn.00403770
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c415
lea eax, [ebp - 0x84]
mov edx, 9
call fcn.00403740
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403740
ret