Function at 0x45af90
Capabilities:
Create directory
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x45af98
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
call fcn.00405ae0
xor eax, eax
push ebp
push 0x45b24c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.0040597c
je 0x45b204
mov edx, dword [ebp - 4]
mov eax, 0x45b260
call fcn.00405a4c
test eax, eax
jne 0x45aff1
mov edx, dword [ebp - 4]
mov eax, 0x45b26c
call fcn.00405a4c
dec eax
jne 0x45b204
mov eax, dword [ebp - 4]
call fcn.00405864
mov edx, dword [ebp - 4]
cmp word [edx + eax*2 - 2], 0x5c
je 0x45b011
lea eax, [ebp - 4]
mov edx, 0x45b278
call fcn.00405870
lea eax, [ebp - 0xc]
call fcn.00405660
mov dword [ebp - 0x14], 1
mov byte [ebp - 0x21], 0
xor eax, eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00405a00
mov eax, dword [ebp - 0x28]
mov edx, 0x45b26c
call fcn.0040597c
sete byte [ebp - 0x19]
jmp 0x45b1ef
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
cmp word [eax + edx*2 - 2], 0x2f
jne 0x45b070
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov word [eax + edx*2 - 2], 0x5c
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dx, word [edx + ecx*2 - 2]
call fcn.00405788
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
call fcn.00405870
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [eax + edx*2 - 2], 0x5c
jne 0x45b1ec
inc dword [ebp - 0x18]
cmp byte [ebp - 0x19], 0
je 0x45b0af
cmp dword [ebp - 0x18], 3
jg 0x45b0b9
cmp byte [ebp - 0x19], 0
jne 0x45b1ec
mov eax, dword [ebp - 0xc]
call fcn.0045a200
test al, al
jne 0x45b0e1
push 0
mov eax, dword [ebp - 0xc]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_CreateDirectoryW
test eax, eax
je 0x45b204
mov byte [ebp - 0x21], 1
xor eax, eax
push ebp
push 0x45b1e5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405864
cmp eax, dword [ebp - 0x14]
jne 0x45b1ab
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.0045ebac
push dword [ebp - 0x34]
push 0x45b284
call sub.KERNEL32.DLL_GetTickCount
lea edx, [ebp - 0x38]
call fcn.00458bb4
push dword [ebp - 0x38]
lea edx, [ebp - 0x3c]
mov eax, 0x45b290
call fcn.0045846c
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.004052e8
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x20]
call fcn.00405844
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x20]
call fcn.004051f0
mov eax, dword [ebp - 0x40]
call fcn.00458a28
lea edx, [ebp - 0x10]
call fcn.00458bb4
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0x20]
call fcn.004051f0
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x10]
call fcn.0045bdc4
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x20]
call fcn.0045bc94
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x10]
call fcn.0040536c
sete byte [ebp - 5]
mov eax, dword [ebp - 0x20]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_DeleteFileW
call fcn.004049f8
jmp 0x45b204
cmp byte [ebp - 0x21], 0
je 0x45b1c3
mov eax, dword [ebp - 4]
call fcn.0045af90
mov byte [ebp - 5], al
call fcn.004049f8
jmp 0x45b204
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b1ec
cmp byte [ebp - 0x21], 0
je 0x45b1e4
mov eax, dword [ebp - 0xc]
call fcn.00405854
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
ret
inc dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00405864
cmp eax, dword [ebp - 0x14]
jge 0x45b055
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b253
lea eax, [ebp - 0x48]
mov edx, 7
call fcn.00404f94
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00405678
lea eax, [ebp - 0x20]
call fcn.00405660
lea eax, [ebp - 0x10]
call fcn.00404f70
lea eax, [ebp - 0xc]
call fcn.00405660
lea eax, [ebp - 4]
call fcn.00405660
ret