Function at 0x40aea0
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.00403a94
mov eax, dword [ebp - 8]
call fcn.00403a94
xor eax, eax
push ebp
push 0x40b23b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push dword [0x413ae0]
push 0x40b254
lea edx, [ebp - 0x64]
movzx eax, word [0x41213c]
call fcn.00405440
push dword [ebp - 0x64]
push 0x40b260
mov eax, 0x413b00
mov edx, 4
call fcn.00403964
push 0
mov eax, dword [0x413b00]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
jne 0x40afe5
push 0
mov eax, dword [0x413b00]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
jne 0x40afe5
push 0x20
mov eax, dword [0x413b00]
call fcn.00403aa4
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x40afe5
inc byte [0x412140]
lea edx, [ebp - 0x6c]
xor eax, eax
mov al, byte [0x412140]
call fcn.00405440
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x40b270
call fcn.004038f0
mov eax, dword [ebp - 0x68]
call fcn.004116a4
cmp byte [0x412140], 0xa
jbe 0x40afe5
push 0x40b284
push dword [0x413b00]
push 0x40b2a4
lea edx, [ebp - 0x74]
xor eax, eax
call fcn.00406634
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x70]
call fcn.004116a4
mov eax, 0x413b04
call fcn.0040372c
jmp 0x40b210
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 0x40b2b0
push dword [0x413b04]
push 0x40b2bc
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40b2e4
push dword [0x413b00]
push 0x40b2b0
lea eax, [ebp - 0xc]
mov edx, 8
call fcn.00403964
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.00403aa4
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40b102
push 0x40b2f0
push dword [ebp - 0xc]
push 0x40b2a4
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00406634
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x78]
call fcn.004116a4
inc byte [0x412140]
cmp byte [0x412140], 0xa
jbe 0x40b210
push 0x40b300
push dword [0x413b00]
push 0x40b2a4
lea edx, [ebp - 0x84]
xor eax, eax
call fcn.00406634
push dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.00403964
mov eax, dword [ebp - 0x80]
call fcn.004116a4
mov eax, 0x413b04
call fcn.0040372c
jmp 0x40b210
push 0x1b7740
mov eax, dword [ebp - 0x60]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
cmp eax, 0x102
jne 0x40b13a
mov eax, 0x40b31c
call fcn.004116a4
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
jmp 0x40b210
mov ax, word [0x41213c]
dec ax
je 0x40b15d
dec ax
je 0x40b17f
dec ax
je 0x40b1ae
dec ax
je 0x40b1dd
jmp 0x40b1fc
mov eax, 0x413b14
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004038f0
mov eax, 0x413b10
mov edx, dword [ebp - 8]
call fcn.00403780
jmp 0x40b20e
push dword [0x413b14]
push 0x40b334
push dword [ebp - 8]
mov eax, 0x413b18
mov edx, 3
call fcn.00403964
mov eax, 0x413b10
mov edx, dword [0x413b18]
call fcn.00403780
jmp 0x40b20e
push dword [0x413b18]
push 0x40b334
push dword [ebp - 8]
mov eax, 0x413b1c
mov edx, 3
call fcn.00403964
mov eax, 0x413b10
mov edx, dword [0x413b1c]
call fcn.00403780
jmp 0x40b20e
push dword [0x413b1c]
push 0x40b334
push dword [ebp - 8]
mov eax, 0x413b10
mov edx, 3
call fcn.00403964
jmp 0x40b20e
mov eax, 0x413b10
mov ecx, dword [ebp - 8]
mov edx, 0x40b340
call fcn.004038f0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b242
lea eax, [ebp - 0x84]
mov edx, 9
call fcn.00403750
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403750
ret