Function at 0x407830
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 0x407860
sub eax, ecx
mov dword [esp + 0x18], eax
je 0x407939
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 0x407890
mov ecx, dword [esp + 0x14]
lea esi, [esp + edi + 0x24]
cmp byte [ecx + esi], 0x5c
jne 0x407911
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 0x4078a2
lea eax, [esp + 0x24]
mov byte [esi], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4078b5
sub eax, edx
cmp eax, 3
jbe 0x407911
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 0x4078f4
test byte [esp + 0x128], 0x10
je 0x4078e9
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x407911
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, esi
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00407830
test al, al
mov byte [esp + 0x13], al
je 0x407985
mov eax, dword [esp + 0x20]
inc edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407920
sub eax, edx
cmp edi, eax
jb 0x40788c
mov al, byte [esp + 0x13]
test al, al
je 0x407985
lea ecx, [esp + 0x128]
push ecx
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x40796a
test byte [esp + 0x128], 0x10
je 0x40795b
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x407a64
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 0x407991
sub eax, edx
mov edi, eax
je 0x407a64
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4079b0
mov edx, dword [esp + 0x14]
add edx, edi
cmp byte [esp + edx + 0x24], 0x5c
jne 0x407a5d
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 0x4079d0
lea eax, [esp + 0x24]
mov byte [esp + edi + 0x24], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4079e5
sub eax, edx
cmp eax, 3
jbe 0x407a5d
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 0x407a5d
test byte [esp + 0x128], 0x10
je 0x407a19
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x407a5d
xor esi, esi
jmp 0x407a30
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x407a5d
push 0x3e8
call ebp
inc esi
cmp esi, 3
jl 0x407a30
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 8
dec edi
jne 0x4079b0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 8