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

Disassembly:
sub esp, 0xa84
mov eax, dword [0x47b038]
xor eax, esp
mov dword [esp + 0xa80], eax
mov eax, dword [esp + 0xa8c]
push ebx
push esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xaa0]
push edi
mov edi, dword [esp + 0xa94]
mov esi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40d2f1
lea edx, [esp + 0x474]
sub edx, eax
jmp 0x40d2e0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40d2e0
jmp 0x40d317
xor eax, eax
jmp 0x40d300
movzx ecx, word [eax + 0x461ab4]
mov word [esp + eax + 0x474], cx
add eax, 2
test cx, cx
jne 0x40d300
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x474]
push ecx
push edi
lea edx, [esp + 0x88c]
push 0x461a90
push edx
call ebx
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x888]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x40d510
mov edi, dword [esp + 0xa9c]
push ebp
mov ebp, dword [esp + 0xaa4]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x688]
push 0x461a90
push ecx
call ebx
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x288]
push 0x461a90
push ecx
call ebx
add esp, 0x20
test byte [esp + 0x20], 0x10
je 0x40d45a
test ebp, ebp
je 0x40d4ec
mov ecx, 0x461aa4
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d3de
test dx, dx
je 0x40d3da
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d3de
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d3b8
xor eax, eax
jmp 0x40d3e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d4ec
mov ecx, 0x461a9c
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d41a
test dx, dx
je 0x40d416
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d41a
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d3f4
xor eax, eax
jmp 0x40d41f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d4ec
push 0
lea edx, [esp + 0x274]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0x18]
push eax
push ebp
push edi
lea ecx, [esp + 0x27c]
push ecx
lea edx, [esp + 0x690]
push edx
mov ecx, esi
call fcn.0040d290
jmp 0x40d4ec
cmp byte [esi + 0xe64], 0
mov ecx, esi
je 0x40d46f
call fcn.0040b1b0
jmp 0x40d4ec
lea eax, [esp + 0x270]
push eax
push 0xffffffffffffffff
push 3
call fcn.0040b0d0
push edi
lea ecx, [esp + 0x274]
push ecx
mov ecx, dword [esi + 4]
lea edx, [esp + 0x688]
push edx
call fcn.004449d0
test eax, eax
je 0x40d4c3
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x40d4b7
push 0
push 0
lea eax, [esp + 0x278]
push eax
push 1
call fcn.0044a5a0
lea ecx, [esp + 0x270]
push ecx
push 0
jmp 0x40d4e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40d4da
lea edx, [esp + 0x270]
push edx
push 0
jmp 0x40d4e3
lea ecx, [esp + 0x270]
push ecx
push eax
push 3
mov ecx, esi
call fcn.0040b0d0
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40d367
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebp
mov ecx, dword [esp + 0xa8c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0044ac80
add esp, 0xa84
ret 0x14