Function at 0x408740
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.00405290
mov ecx, esi
call fcn.004080e0
test eax, eax
je 0x40877c
push ebp
call fcn.004104ed
add esp, 4
push 0
push ebp
mov ecx, esi
call fcn.00407830
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 0x408791
mov esi, dword [esp + 0xa80]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4087a7
sub eax, edx
cmp eax, 0xffffffff
jle 0x4087c4
cmp byte [eax + esi], 0x5c
je 0x4087c1
dec eax
cmp eax, 0xffffffff
jg 0x4087b5
cmp eax, 0xffffffff
jne 0x4087ec
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 0x4087e0
jmp 0x40881f
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 0x4087f7
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 0x408815
lea edi, [esp + 0x158]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408827
mov si, word [0x42e028]
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 0x408844
lea edi, [esp + 0x25c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408856
mov word [edi], si
xor eax, eax
jmp 0x408870
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x408870
lea eax, [esp + 0x66c]
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408890
lea edi, [esp + 0x464]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4088a1
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 0x408a8b
lea esp, [esp]
mov edi, 0x42e168
lea esi, [esp + 0x44]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x408a70
mov edi, 0x42e164
lea esi, [esp + 0x44]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x408a70
test byte [esp + 0x18], 0x10
jne 0x408a60
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x408920
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408940
lea edi, [esp + 0x360]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408951
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 0x408970
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x978], cl
inc eax
test cl, cl
jne 0x408970
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408990
lea edi, [esp + 0x978]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4089a1
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 0x4089eb
test cl, cl
je 0x4089e7
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4089eb
add eax, 2
add esi, 2
test cl, cl
jne 0x4089c7
xor eax, eax
jmp 0x4089f0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x408a23
push 0
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
jmp 0x408a10
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x770], cl
inc eax
test cl, cl
jne 0x408a10
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.00408350
test al, al
je 0x408cd8
mov eax, dword [esp + 0xa90]
inc dword [eax]
jmp 0x408a70
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 0x4088e0
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0xa88]
test eax, eax
je 0x408cc2
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x464], cl
inc eax
test cl, cl
jne 0x408aa0
lea edi, [esp + 0x464]
dec edi
jmp 0x408ac0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408ac0
mov ecx, dword [0x42e734]
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 0x408cc2
mov ebp, dword [esp + 0xa98]
mov ebx, dword [esp + 0xa94]
mov edi, edi
xor eax, eax
jmp 0x408b10
mov cl, byte [esp + eax + 0x158]
mov byte [esp + eax + 0x360], cl
inc eax
test cl, cl
jne 0x408b10
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408b30
lea edi, [esp + 0x360]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408b41
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, 0x42e168
lea esi, [esp + 0x44]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x408ca3
mov edi, 0x42e164
lea esi, [esp + 0x44]
mov ecx, 3
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x408ca3
test byte [esp + 0x18], 0x10
je 0x408ca3
xor eax, eax
jmp 0x408ba0
mov cl, byte [esp + eax + 0x25c]
mov byte [esp + eax + 0x874], cl
inc eax
test cl, cl
jne 0x408ba0
lea eax, [esp + 0x44]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408bc0
lea edi, [esp + 0x874]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408bd1
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 0x408bf0
mov cl, byte [esp + eax + 0x360]
mov byte [esp + eax + 0x568], cl
inc eax
test cl, cl
jne 0x408bf0
lea edi, [esp + 0x568]
dec edi
jmp 0x408c10
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x408c10
mov cx, word [0x42e028]
lea eax, [esp + 0x66c]
mov word [edi], cx
mov esi, eax
jmp 0x408c30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408c30
lea edi, [esp + 0x568]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408c41
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.00408740
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 0x408b00
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