Function at 0x447720
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x678
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x6a4]
push 0x103
lea eax, [esp + 0x27c]
push edi
push eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0xc
lea edx, [esp + 0x278]
xor ecx, ecx
push 0x5c
push edx
mov word [esp + 0x486], cx
call dword [sym.imp.MSVCR100.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x4477b3
lea esi, [eax + 2]
lea edx, [esp + 0x480]
mov eax, esi
sub edx, esi
jmp 0x447780
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x447780
xor eax, eax
mov word [esi], ax
lea eax, [esp + 0x278]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4477a0
sub eax, edx
sar eax, 1
mov ebx, eax
jmp 0x4477e4
xor eax, eax
jmp 0x4477c0
movzx ecx, word [esp + eax + 0x278]
mov word [esp + eax + 0x480], cx
add eax, 2
test cx, cx
jne 0x4477c0
xor ecx, ecx
mov word [esp + 0x278], cx
xor ebx, ebx
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp + 0x14], edi
mov esi, eax
test esi, esi
je 0x447841
jmp 0x447810
mov eax, dword [esp + 0x69c]
lea ecx, [esp + 0x278]
push ecx
lea edx, [esp + 0x2c]
call fcn.0045d830
add esp, 4
test al, al
je 0x447841
lea edx, [esp + 0x28]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x447810
mov ebp, dword [0x4e4b24]
test esi, esi
je 0x44795d
nop
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
mov dword [ebp + 0x10], eax
mov ecx, dword [ecx + 0x14]
cmp byte [ecx], 0x75
jne 0x44789e
jmp 0x447870
mov eax, dword [esp + 0x68c]
mov ecx, dword [ecx + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
push 2
call fcn.00440a30
mov ecx, dword [esp + 0x1c]
mov ecx, dword [ecx + 0x14]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], esi
cmp eax, ecx
je 0x447870
jmp 0x4478bc
mov eax, dword [esp + 0x68c]
lea edx, [esp + 0x20]
push edx
push eax
push 3
call fcn.00440a30
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], esi
test eax, eax
je 0x4478ee
cmp esi, 6
jne 0x447b00
cmp eax, dword [esp + 0x1c]
je 0x4478fc
mov ecx, dword [esp + 0x694]
mov dword [ecx], eax
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x678
ret 0x1c
cmp esi, 1
je 0x4478fc
cmp esi, 6
jne 0x447b1d
mov eax, dword [esp + 0x698]
test eax, eax
je 0x44791c
lea edi, [esp + 0x18]
call fcn.00447250
mov edi, dword [esp + 0x14]
test al, al
jne 0x447b19
lea ecx, [esp + 0x28]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
je 0x44794d
mov eax, dword [esp + 0x69c]
lea edx, [esp + 0x278]
push edx
lea edx, [esp + 0x2c]
call fcn.0045d830
add esp, 4
test al, al
jne 0x44791c
add dword [ebp + 8], 1
adc dword [ebp + 0xc], 0
test esi, esi
jne 0x447850
cmp edi, 0xffffffff
je 0x447969
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x6a0], 0
je 0x447aee
cmp ebx, 0x100
ja 0x447aee
lea esi, [esp + ebx*2 + 0x278]
mov eax, 0x4d8214
mov edx, esi
mov dword [esp + 0x24], esi
sub edx, eax
jmp 0x4479a0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4479a0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x447aee
lea eax, [esp + 0x480]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4479e0
mov ebp, dword [esp + 0x694]
mov edi, dword [sym.imp.MSVCR100.dll__swprintf]
sub eax, edx
sar eax, 1
add eax, ebx
mov ebx, dword [esp + 0x690]
mov dword [esp + 0x18], eax
lea esp, [esp]
test byte [esp + 0x28], 0x10
je 0x447acb
cmp word [esp + 0x54], 0x2e
jne 0x447a43
mov ax, word [esp + 0x56]
test ax, ax
je 0x447acb
cmp ax, 0x2e
jne 0x447a43
cmp word [esp + 0x58], 0
je 0x447acb
lea eax, [esp + 0x54]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x447a50
sub eax, edx
sar eax, 1
add eax, dword [esp + 0x18]
cmp eax, 0x102
ja 0x447acb
lea edx, [esp + 0x480]
push edx
lea eax, [esp + 0x58]
push eax
push 0x4d821c
push esi
call edi
mov edx, dword [esp + 0x6b0]
mov eax, dword [esp + 0x6ac]
add esp, 0x10
lea ecx, [esp + 0x278]
push ecx
mov ecx, dword [esp + 0x69c]
push edx
mov edx, dword [esp + 0x694]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ebp
push ebx
push edx
call fcn.00447720
mov esi, eax
cmp esi, 1
jne 0x447b33
cmp byte [ebx], 0
jne 0x447ae3
cmp dword [ebp], 0
jne 0x447ae3
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x447a10
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x678
ret 0x1c
cmp eax, dword [esp + 0x1c]
jne 0x4478cf
mov eax, dword [esp + 0x690]
mov byte [eax], 1
jmp 0x4478d8
mov esi, dword [esp + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x678
ret 0x1c
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x678
ret 0x1c