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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
push ebx
push esi
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.00403b0c
mov eax, dword [ebp - 8]
call fcn.00403b0c
mov esi, 0x41bb14
xor eax, eax
push ebp
push 0x40ce19
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x40ce30
call fcn.004037f8
xor ebx, ebx
push dword [0x41bae0]
push 0x40ce54
lea edx, [ebp - 0x64]
movzx eax, word [0x41a200]
call fcn.00405424
push dword [ebp - 0x64]
push 0x40ce60
mov eax, 0x41bb00
mov edx, 4
call fcn.004039dc
push 0
mov eax, dword [0x41bb00]
call fcn.00403b1c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40cb4b
push 0
mov eax, dword [0x41bb00]
call fcn.00403b1c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40cb4b
push 0x20
mov eax, dword [0x41bb00]
call fcn.00403b1c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40cb4b
inc byte [0x41a204]
lea edx, [ebp - 0x6c]
xor eax, eax
mov al, byte [0x41a204]
call fcn.00405424
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x40ce70
call fcn.00403968
mov eax, dword [ebp - 0x68]
call fcn.00418648
cmp byte [0x41a204], 0xa
jbe 0x40cb4b
push 0x40ce84
push dword [0x41bb00]
push 0x40cea4
lea edx, [ebp - 0x74]
xor eax, eax
call fcn.00406314
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.004039dc
mov eax, dword [ebp - 0x70]
call fcn.00418648
mov eax, 0x41bb04
call fcn.004037a4
jmp 0x40cdee
mov eax, esi
mov edx, 0x40ceb0
call fcn.004037f8
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 eax, esi
mov edx, 0x40ced4
call fcn.004037f8
mov dword [ebp - 0x50], 0x44
mov word [ebp - 0x20], 0
mov dword [ebp - 0x24], 1
push 0x40cf68
push dword [0x41bb04]
push 0x40cf74
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40cf9c
push dword [0x41bb00]
push 0x40cf68
lea eax, [ebp - 0xc]
mov edx, 8
call fcn.004039dc
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.00403b1c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40cc80
push 0x40cfa8
push dword [ebp - 0xc]
push 0x40cea4
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.00406314
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.004039dc
mov eax, dword [ebp - 0x78]
call fcn.00418648
inc byte [0x41a204]
cmp byte [0x41a204], 0xa
jbe 0x40cdee
push 0x40cfb8
push dword [0x41bb00]
push 0x40cea4
lea edx, [ebp - 0x84]
xor eax, eax
call fcn.00406314
push dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.004039dc
mov eax, dword [ebp - 0x80]
call fcn.00418648
mov eax, 0x41bb04
call fcn.004037a4
jmp 0x40cdee
push 0x1b7740
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x40ccd0
mov eax, 0x40cfd4
call fcn.00418648
mov eax, esi
mov edx, 0x40cfec
call fcn.004037f8
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, esi
mov edx, 0x40d07c
call fcn.004037f8
jmp 0x40cdee
mov eax, esi
mov edx, 0x40d0c4
call fcn.004037f8
mov ax, word [0x41a200]
dec ax
je 0x40ccff
dec ax
je 0x40cd2d
dec ax
je 0x40cd68
dec ax
je 0x40cdaf
jmp 0x40cdce
mov eax, 0x41bb2c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00403968
mov eax, 0x41bb10
mov edx, dword [ebp - 8]
call fcn.004037f8
mov eax, esi
mov edx, 0x40d114
call fcn.004037f8
jmp 0x40cde0
mov eax, esi
mov edx, 0x40d14c
call fcn.004037f8
push dword [0x41bb2c]
push 0x40d1b0
push dword [ebp - 8]
mov eax, 0x41bb30
mov edx, 3
call fcn.004039dc
mov eax, 0x41bb10
mov edx, dword [0x41bb30]
call fcn.004037f8
jmp 0x40cde0
mov eax, esi
mov edx, 0x40d1bc
call fcn.004037f8
push dword [0x41bb30]
push 0x40d1b0
push dword [ebp - 8]
mov eax, 0x41bb34
mov edx, 3
call fcn.004039dc
mov eax, 0x41bb10
mov edx, dword [0x41bb34]
call fcn.004037f8
mov eax, esi
mov edx, 0x40d250
call fcn.004037f8
jmp 0x40cde0
push dword [0x41bb34]
push 0x40d1b0
push dword [ebp - 8]
mov eax, 0x41bb10
mov edx, 3
call fcn.004039dc
jmp 0x40cde0
mov eax, 0x41bb10
mov ecx, dword [ebp - 8]
mov edx, 0x40d2b4
call fcn.00403968
mov eax, esi
mov edx, 0x40d2c8
call fcn.004037f8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ce20
lea eax, [ebp - 0x84]
mov edx, 9
call fcn.004037c8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004037c8
ret