Function at 0x414380
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 0x4143b0
sub eax, ecx
mov dword [esp + 0x18], eax
je 0x414489
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 0x4143e0
mov ecx, dword [esp + 0x14]
lea esi, [esp + edi + 0x24]
cmp byte [ecx + esi], 0x5c
jne 0x414461
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 0x4143f2
lea eax, [esp + 0x24]
mov byte [esi], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414405
sub eax, edx
cmp eax, 3
jbe 0x414461
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 0x414444
test byte [esp + 0x128], 0x10
je 0x414439
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x414461
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, esi
push edx
lea eax, [esp + 0x28]
push eax
call fcn.00414380
test al, al
mov byte [esp + 0x13], al
je 0x4144d5
mov eax, dword [esp + 0x20]
inc edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414470
sub eax, edx
cmp edi, eax
jb 0x4143dc
mov al, byte [esp + 0x13]
test al, al
je 0x4144d5
lea ecx, [esp + 0x128]
push ecx
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4144ba
test byte [esp + 0x128], 0x10
je 0x4144ab
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
jne 0x4145b4
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 0x4144e1
sub eax, edx
mov edi, eax
je 0x4145b4
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x414500
mov edx, dword [esp + 0x14]
add edx, edi
cmp byte [esp + edx + 0x24], 0x5c
jne 0x4145ad
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 0x414520
lea eax, [esp + 0x24]
mov byte [esp + edi + 0x24], cl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414535
sub eax, edx
cmp eax, 3
jbe 0x4145ad
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 0x4145ad
test byte [esp + 0x128], 0x10
je 0x414569
mov bl, 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test bl, bl
je 0x4145ad
xor esi, esi
jmp 0x414580
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4145ad
push 0x3e8
call ebp
inc esi
cmp esi, 3
jl 0x414580
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 8
dec edi
jne 0x414500
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 8