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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040357c
mov eax, dword [ebp - 8]
call fcn.0040357c
lea ebx, [ebp - 0x54]
mov esi, 0x41ab24
xor eax, eax
push ebp
push 0x408d17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab68
mov edx, 0x408d30
call fcn.0040325c
mov byte [ebp - 9], 0
push dword [0x41ab38]
push 0x408dbc
lea edx, [ebp - 0x68]
movzx eax, word [0x4191f4]
call fcn.004048e0
push dword [ebp - 0x68]
push 0x408dc8
mov eax, 0x41ab54
mov edx, 4
call fcn.0040344c
push 0
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4089db
push 0
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x4089db
push 0x20
mov eax, dword [0x41ab54]
call fcn.0040358c
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x4089db
inc byte [0x4191f8]
lea edx, [ebp - 0x70]
xor eax, eax
mov al, byte [0x4191f8]
call fcn.004048e0
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x408dd8
call fcn.004033d8
mov eax, dword [ebp - 0x6c]
call fcn.0040fec0
cmp byte [0x4191f8], 0xa
jbe 0x4089db
push dword [0x41adac]
push dword [0x41ab54]
push 0x408dec
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.004057d8
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x74]
call fcn.0040fec0
mov eax, 0x41ab58
call fcn.00403208
jmp 0x408ce4
mov eax, 0x41ab68
mov edx, 0x408df8
call fcn.0040325c
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.004027e8
mov eax, ebx
xor ecx, ecx
mov edx, 0x44
call fcn.004027e8
mov dword [ebx], 0x44
mov word [ebx + 0x30], 0
xor eax, eax
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 8], eax
xor eax, eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 5
mov dword [ebx + 0x14], 5
mov dword [ebx + 0x2c], 5
mov word [ebx + 0x30], 0
mov word [ebx + 0x32], 0
xor eax, eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x38], eax
xor eax, eax
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x40], eax
push 0x408ea4
push dword [0x41ab58]
push dword [0x41adb0]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x408eb0
push dword [0x41ab54]
push 0x408ea4
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.0040344c
lea eax, [ebp - 0x64]
push eax
push ebx
push 0
push 0
push 0xc000040
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.0040358c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x408b47
push 0x408ebc
push dword [ebp - 0x10]
push 0x408dec
lea edx, [ebp - 0x80]
xor eax, eax
call fcn.004057d8
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x7c]
call fcn.0040fec0
inc byte [0x4191f8]
cmp byte [0x4191f8], 0xa
jbe 0x408ce4
push dword [0x41adb4]
push dword [0x41ab54]
push 0x408dec
lea edx, [ebp - 0x88]
xor eax, eax
call fcn.004057d8
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x84]
call fcn.0040fec0
mov eax, 0x41ab58
call fcn.00403208
jmp 0x408ce4
mov byte [esi], 0
xor ebx, ebx
cmp byte [esi], 0
jne 0x408b76
push 0x64
call sub.kernel32.dll_Sleep
push 0
push 0x408850
mov eax, dword [ebp - 0x58]
push eax
call sub.user32.dll_EnumThreadWindows
inc ebx
cmp bl, 0xa
jbe 0x408b71
mov byte [esi], 1
cmp byte [esi], 0
je 0x408b51
push 0x1b7740
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x408bcc
mov eax, dword [0x41adb8]
call fcn.0040fec0
mov eax, 0x41ab68
mov edx, 0x408ecc
call fcn.0040325c
push 0
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, 0x41ab68
mov edx, 0x408f84
call fcn.0040325c
jmp 0x408ce4
mov ax, word [0x4191f4]
dec ax
je 0x408bf3
dec ax
je 0x408c24
dec ax
je 0x408c71
dec ax
je 0x408caf
jmp 0x408cce
mov eax, 0x41ab7c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004033d8
mov eax, 0x41ab64
mov edx, dword [ebp - 8]
call fcn.0040325c
mov eax, 0x41ab68
mov edx, 0x40904c
call fcn.0040325c
jmp 0x408ce0
mov eax, 0x41ab68
mov edx, 0x409104
call fcn.0040325c
push dword [0x41ab7c]
push 0x40917c
push dword [ebp - 8]
mov eax, 0x41ab80
mov edx, 3
call fcn.0040344c
mov eax, 0x41ab64
mov edx, dword [0x41ab80]
call fcn.0040325c
mov eax, 0x41ab68
mov edx, 0x40918c
call fcn.0040325c
jmp 0x408ce0
mov eax, 0x41ab68
mov edx, 0x4091a0
call fcn.0040325c
push dword [0x41ab80]
push 0x40917c
push dword [ebp - 8]
mov eax, 0x41ab84
mov edx, 3
call fcn.0040344c
mov eax, 0x41ab64
mov edx, dword [0x41ab84]
call fcn.0040325c
jmp 0x408ce0
push dword [0x41ab84]
push 0x40917c
push dword [ebp - 8]
mov eax, 0x41ab64
mov edx, 3
call fcn.0040344c
jmp 0x408ce0
mov eax, 0x41ab64
mov ecx, dword [ebp - 8]
mov edx, 0x409204
call fcn.004033d8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d1e
lea eax, [ebp - 0x88]
mov edx, 9
call fcn.0040322c
lea eax, [ebp - 0x10]
call fcn.00403208
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040322c
ret