Function at 0x4074b0
Capabilities:
Create directory
Delete directory

Disassembly:
sub esp, 0x258
mov eax, dword [esp + 0x260]
push ebx
push ebp
mov ebp, dword [esp + 0x264]
push esi
push edi
xor edi, edi
add eax, ebp
mov dword [esp + 0x1c], ecx
mov byte [esp + 0x13], 1
mov dword [esp + 0x20], eax
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4074e0
sub eax, ecx
mov dword [esp + 0x18], eax
je 0x4075b9
lea edx, [esp + 0x24]
mov ecx, ebp
sub ecx, edx
mov eax, 1
sub eax, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x407510
mov ecx, dword [esp + 0x14]
lea esi, [esp + edi + 0x24]
cmp byte [ecx + esi], 0x5c
jne 0x407591
lea edx, [esp + 0x24]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407522
lea eax, [esp + 0x24]
mov byte [esi], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407535
sub eax, edx
cmp eax, 3
jbe 0x407591
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x28]
push ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x407574
test byte [esp + 0x128], 0x10
je 0x407569
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x407591
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, esi
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004074b0
test al, al
mov byte [esp + 0x13], al
je 0x407605
mov eax, dword [esp + 0x20]
inc edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4075a0
sub eax, edx
cmp edi, eax
jb 0x40750c
mov al, byte [esp + 0x13]
test al, al
je 0x407605
lea ecx, [esp + 0x128]
push ecx
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4075ea
test byte [esp + 0x128], 0x10
je 0x4075db
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x4076e4
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x258
ret 8
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407611
sub eax, edx
mov edi, eax
je 0x4076e4
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x407630
mov edx, dword [esp + 0x14]
add edx, edi
cmp byte [esp + edx + 0x24], 0x5c
jne 0x4076dd
mov eax, dword [esp + 0x26c]
lea edx, [esp + 0x24]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407650
lea eax, [esp + 0x24]
mov byte [esp + edi + 0x24], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407665
sub eax, edx
cmp eax, 3
jbe 0x4076dd
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x28]
push ecx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4076dd
test byte [esp + 0x128], 0x10
je 0x407699
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x4076dd
xor esi, esi
jmp 0x4076b0
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4076dd
push 0x3e8
call ebp
inc esi
cmp esi, 3
jl 0x4076b0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 8
dec edi
jne 0x407630
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 8