Function at 0x40e83c
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.004044f8
mov eax, dword [ebp - 8]
call fcn.004044f8
xor eax, eax
push ebp
push 0x40ec13
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push dword [0x42aafc]
push 0x40ec2c
lea edx, [ebp - 0x64]
movzx eax, word [0x429218]
call fcn.00406920
push dword [ebp - 0x64]
push 0x40ec38
mov eax, 0x42ab1c
mov edx, 4
call fcn.004043c8
push 0
mov eax, dword [0x42ab1c]
call fcn.00404508
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40e981
push 0
mov eax, dword [0x42ab1c]
call fcn.00404508
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40e981
push 0x20
mov eax, dword [0x42ab1c]
call fcn.00404508
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40e981
inc byte [0x42921c]
lea edx, [ebp - 0x6c]
xor eax, eax
mov al, byte [0x42921c]
call fcn.00406920
mov ecx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
mov edx, 0x40ec48
call fcn.00404354
mov eax, dword [ebp - 0x68]
call fcn.0041b548
cmp byte [0x42921c], 0xa
jbe 0x40e981
push 0x40ec5c
push dword [0x42ab1c]
push 0x40ec7c
lea edx, [ebp - 0x74]
xor eax, eax
call fcn.0040780c
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 4
call fcn.004043c8
mov eax, dword [ebp - 0x70]
call fcn.0041b548
mov eax, 0x42ab20
call fcn.0040406c
jmp 0x40ebe8
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x10
call fcn.00402e70
lea eax, [ebp - 0x50]
xor ecx, ecx
mov edx, 0x44
call fcn.00402e70
mov eax, 0x42ab30
mov edx, 0x40ec88
call fcn.004040c0
mov dword [ebp - 0x50], 0x44
mov word [ebp - 0x20], 0
mov dword [ebp - 0x24], 1
push 0x40ed44
push dword [0x42ab20]
push 0x40ed50
push dword [ebp - 4]
push dword [ebp - 8]
push 0x40ed78
push dword [0x42ab1c]
push 0x40ed44
lea eax, [ebp - 0xc]
mov edx, 8
call fcn.004043c8
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.00404508
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40eaad
push 0x40ed84
push dword [ebp - 0xc]
push 0x40ec7c
lea edx, [ebp - 0x7c]
xor eax, eax
call fcn.0040780c
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.004043c8
mov eax, dword [ebp - 0x78]
call fcn.0041b548
inc byte [0x42921c]
cmp byte [0x42921c], 0xa
jbe 0x40ebe8
push 0x40ed94
push dword [0x42ab1c]
push 0x40ec7c
lea edx, [ebp - 0x84]
xor eax, eax
call fcn.0040780c
push dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 4
call fcn.004043c8
mov eax, dword [ebp - 0x80]
call fcn.0041b548
mov eax, 0x42ab20
call fcn.0040406c
jmp 0x40ebe8
push 0x1b7740
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x40eaf4
mov eax, 0x40edb0
call fcn.0041b548
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, 0x42ab30
mov edx, 0x40edc8
call fcn.004040c0
jmp 0x40ebe8
mov eax, 0x42ab30
mov edx, 0x40ee18
call fcn.004040c0
mov ax, word [0x429218]
dec ax
je 0x40eb26
dec ax
je 0x40eb48
dec ax
je 0x40eb77
dec ax
je 0x40ebb5
jmp 0x40ebd4
mov eax, 0x42ab4c
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404354
mov eax, 0x42ab2c
mov edx, dword [ebp - 8]
call fcn.004040c0
jmp 0x40ebe6
push dword [0x42ab4c]
push 0x40ee64
push dword [ebp - 8]
mov eax, 0x42ab50
mov edx, 3
call fcn.004043c8
mov eax, 0x42ab2c
mov edx, dword [0x42ab50]
call fcn.004040c0
jmp 0x40ebe6
mov eax, 0x42ab30
mov edx, 0x40ee70
call fcn.004040c0
push dword [0x42ab50]
push 0x40ee64
push dword [ebp - 8]
mov eax, 0x42ab54
mov edx, 3
call fcn.004043c8
mov eax, 0x42ab2c
mov edx, dword [0x42ab54]
call fcn.004040c0
jmp 0x40ebe6
push dword [0x42ab54]
push 0x40ee64
push dword [ebp - 8]
mov eax, 0x42ab2c
mov edx, 3
call fcn.004043c8
jmp 0x40ebe6
mov eax, 0x42ab2c
mov ecx, dword [ebp - 8]
mov edx, 0x40eeac
call fcn.00404354
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ec1a
lea eax, [ebp - 0x84]
mov edx, 9
call fcn.00404090
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404090
ret