Function at 0x408330
Capabilities:
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0xa6c
push ebx
push ebp
mov ebp, dword [esp + 0xa7c]
push esi
push edi
push 0
push 0
push ecx
mov esi, ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebp
mov dword [esp + 0x24], esi
call fcn.004062a0
mov ecx, esi
call fcn.00407cf0
test eax, eax
je 0x40836c
push ebp
call fcn.0040efad
add esp, 4
push 0
push ebp
mov ecx, esi
call fcn.004074b0
lea edx, [esp + 0x770]
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408381
mov esi, dword [esp + 0xa80]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408397
sub eax, edx
cmp eax, 0xffffffff
jle 0x4083b4
cmp byte [eax + esi], 0x5c
je 0x4083b1
dec eax
cmp eax, 0xffffffff
jg 0x4083a5
cmp eax, 0xffffffff
jne 0x4083dc
lea edx, [esp + 0x66c]
mov byte [esp + 0x158], 0
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4083d0
jmp 0x40840f
lea edi, [esp + 0x158]
mov ecx, esi
sub edi, esi
mov dl, byte [ecx]
mov byte [edi + ecx], dl
inc ecx
test dl, dl
jne 0x4083e7
mov byte [esp + eax + 0x158], dl
lea eax, [eax + esi + 1]
lea edx, [esp + 0x66c]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408405
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408417
mov si, word [0x42c01c]
lea edx, [esp + 0x25c]
mov word [edi], si
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408434
lea edi, [esp + 0x25c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408446
mov word [edi], si
xor eax, eax
jmp 0x408460
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x408460
lea eax, [esp + 0x66c]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408480
lea edi, [esp + 0x464]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408491
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
push eax
lea ecx, [esp + 0x468]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, dword [esp + 0xaa0]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40867b
lea esp, [esp]
mov edi, 0x42c15c
lea esi, [esp + 0x44]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x408660
mov edi, 0x42c158
lea esi, [esp + 0x44]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x408660
test byte [esp + 0x18], 0x10
jne 0x408650
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x408510
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408530
lea edi, [esp + 0x360]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408541
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x408560
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x978], cl
inc eax
test cl, cl
jne 0x408560
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408580
lea edi, [esp + 0x978]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408591
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x25c]
lea eax, [esp + 0x770]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4085db
test cl, cl
je 0x4085d7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4085db
add eax, 2
add esi, 2
test cl, cl
jne 0x4085b7
xor eax, eax
jmp 0x4085e0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408613
push 0
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
jmp 0x408600
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x770], cl
inc eax
test cl, cl
jne 0x408600
mov ecx, dword [esp + 0xa9c]
mov edx, dword [esp + 0xa8c]
push ebx
push ecx
push edx
lea eax, [esp + 0x984]
push eax
lea ecx, [esp + 0x370]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.00407f60
test al, al
je 0x4088c8
mov eax, dword [esp + 0xa90]
inc dword [eax]
jmp 0x408660
push 0
lea edx, [esp + 0x260]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4084d0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xa88]
test eax, eax
je 0x4088b2
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x408690
lea edi, [esp + 0x464]
dec edi
jmp 0x4086b0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4086b0
mov ecx, dword [0x42ca34]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x468]
push eax
mov dword [edi], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4088b2
mov ebp, dword [esp + 0xa98]
mov ebx, dword [esp + 0xa94]
mov edi, edi
xor eax, eax
jmp 0x408700
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x408700
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408720
lea edi, [esp + 0x360]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408731
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x42c15c
lea esi, [esp + 0x44]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x408893
mov edi, 0x42c158
lea esi, [esp + 0x44]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x408893
test byte [esp + 0x18], 0x10
je 0x408893
xor eax, eax
jmp 0x408790
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x874], cl
inc eax
test cl, cl
jne 0x408790
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087b0
lea edi, [esp + 0x874]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4087c1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor eax, eax
jmp 0x4087e0
mov cl, byte [esp + eax + 0x360]
mov byte [esp + eax + 0x568], cl
inc eax
test cl, cl
jne 0x4087e0
lea edi, [esp + 0x568]
dec edi
jmp 0x408800
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408800
mov cx, word [0x42c01c]
lea eax, [esp + 0x66c]
mov word [edi], cx
mov esi, eax
jmp 0x408820
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408820
lea edi, [esp + 0x568]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408831
mov edx, dword [esp + 0xaa0]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push edx
mov edx, dword [esp + 0xa90]
mov ecx, eax
mov eax, dword [esp + 0xaa0]
push eax
mov eax, dword [esp + 0xa90]
push ebp
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xaa0]
push ecx
push edx
push eax
lea ecx, [esp + 0x890]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x588]
push edx
call fcn.00408330
mov ecx, dword [esp + 0xa90]
add dword [ecx], eax
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4086f0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0xa90]
mov eax, dword [ecx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa6c
ret 0x24
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xa6c
ret 0x24