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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
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.00404a14
mov eax, dword [ebp - 8]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4526f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x4690b4
mov edx, 0x45270c
call fcn.004045b8
mov byte [ebp - 9], 0
push dword [0x469080]
push 0x452724
lea edx, [ebp - 0x68]
movzx eax, word [0x466f18]
call fcn.0040799c
push dword [ebp - 0x68]
push 0x452730
mov eax, 0x4690a0
mov edx, 4
call fcn.004048e4
push 0
mov eax, dword [0x4690a0]
call fcn.00404a24
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x452425
push 0
mov eax, dword [0x4690a0]
call fcn.00404a24
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x452425
push 0x20
mov eax, dword [0x4690a0]
call fcn.00404a24
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x452425
inc byte [0x466f1c]
lea edx, [ebp - 0x70]
xor eax, eax
mov al, byte [0x466f1c]
call fcn.0040799c
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
mov edx, 0x452740
call fcn.00404870
mov eax, dword [ebp - 0x6c]
call fcn.0045a378
cmp byte [0x466f1c], 0xa
jbe 0x452425
push dword [0x4692f8]
push dword [0x4690a0]
push 0x452754
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.00408a9c
push dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 4
call fcn.004048e4
mov eax, dword [ebp - 0x74]
call fcn.0045a378
mov eax, 0x4690a4
call fcn.00404564
jmp 0x4526c3
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x10
call fcn.0040308c
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.0040308c
mov eax, 0x4690b4
mov edx, 0x452760
call fcn.004045b8
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], 0
mov dword [ebp - 0x28], 1
push 0x45277c
push dword [0x4690a4]
push dword [0x4692fc]
push dword [ebp - 4]
push dword [ebp - 8]
push 0x452788
push dword [0x4690a0]
push 0x45277c
lea eax, [ebp - 0x10]
mov edx, 8
call fcn.004048e4
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0xc000040
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404a24
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x452559
push 0x452794
push dword [ebp - 0x10]
push 0x452754
lea edx, [ebp - 0x80]
xor eax, eax
call fcn.00408a9c
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
mov edx, 4
call fcn.004048e4
mov eax, dword [ebp - 0x7c]
call fcn.0045a378
inc byte [0x466f1c]
cmp byte [0x466f1c], 0xa
jbe 0x4526c3
push dword [0x469300]
push dword [0x4690a0]
push 0x452754
lea edx, [ebp - 0x88]
xor eax, eax
call fcn.00408a9c
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
mov edx, 4
call fcn.004048e4
mov eax, dword [ebp - 0x84]
call fcn.0045a378
mov eax, 0x4690a4
call fcn.00404564
jmp 0x4526c3
push 0x1b7740
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
jne 0x4525a0
mov eax, dword [0x469304]
call fcn.0045a378
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_1
mov eax, 0x4690b4
mov edx, 0x4527a4
call fcn.004045b8
jmp 0x4526c3
mov ax, word [0x466f18]
dec ax
je 0x4525c3
dec ax
je 0x4525e5
dec ax
je 0x452632
dec ax
je 0x45267f
jmp 0x45269e
mov eax, 0x4690c8
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404870
mov eax, 0x4690b0
mov edx, dword [ebp - 8]
call fcn.004045b8
jmp 0x4526b0
mov eax, 0x4690b4
mov edx, 0x4527d8
call fcn.004045b8
push dword [0x4690c8]
push 0x45286c
push dword [ebp - 8]
mov eax, 0x4690cc
mov edx, 3
call fcn.004048e4
mov eax, 0x4690b0
mov edx, dword [0x4690cc]
call fcn.004045b8
mov eax, 0x4690b4
mov edx, 0x452878
call fcn.004045b8
jmp 0x4526b0
mov eax, 0x4690b4
mov edx, 0x452928
call fcn.004045b8
push dword [0x4690cc]
push 0x45286c
push dword [ebp - 8]
mov eax, 0x4690d0
mov edx, 3
call fcn.004048e4
mov eax, 0x4690b0
mov edx, dword [0x4690d0]
call fcn.004045b8
mov eax, 0x4690b4
mov edx, 0x452998
call fcn.004045b8
jmp 0x4526b0
push dword [0x4690d0]
push 0x45286c
push dword [ebp - 8]
mov eax, 0x4690b0
mov edx, 3
call fcn.004048e4
jmp 0x4526b0
mov eax, 0x4690b0
mov ecx, dword [ebp - 8]
mov edx, 0x452a40
call fcn.00404870
mov eax, 0x4690b4
mov edx, 0x452a54
call fcn.004045b8
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4526fd
lea eax, [ebp - 0x88]
mov edx, 9
call fcn.00404588
lea eax, [ebp - 0x10]
call fcn.00404564
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404588
ret