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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5643d1
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x5c0490]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
lea eax, [ebp - 0x27c]
push str.Tool_FindAllFilesInFolder
push eax
call fcn.00401190
add esp, 0xc
mov edi, dword [ebp + 0x10]
push edi
push esi
push str.lpszDirectory___s__bFindSubDirectory___d
lea ecx, [ebp - 0x27c]
push 1
push ecx
mov dword [ebp - 4], 0
call fcn.00401410
add esp, 0x14
mov dword [ebp - 0x270], 0
test esi, esi
je 0x42c290
push esi
lea ecx, [ebp - 0x268]
call fcn.00404f00
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x268]
push 0x5c
push edx
call fcn.0053dda2
mov ecx, dword [ebp - 0x268]
add esp, 8
test eax, eax
jne 0x42c0fe
or eax, 0xffffffff
jmp 0x42c102
sub eax, ecx
sar eax, 1
mov ecx, dword [ecx - 0xc]
dec ecx
cmp eax, ecx
je 0x42c11c
push 1
push 0x5958c8
lea ecx, [ebp - 0x268]
call fcn.0040a930
push 3
push 0x59a2c0
lea ecx, [ebp - 0x268]
call fcn.0040a930
push 0x250
lea eax, [ebp - 0x264]
push 0
push eax
call fcn.00541d20
mov edx, dword [ebp - 0x268]
add esp, 0xc
lea ecx, [ebp - 0x264]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
je 0x42c26a
mov dword [ebp - 0x270], 1
push esi
lea ecx, [ebp - 0x26c]
call fcn.00404f00
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 2
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42c190
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0040a930
test edi, edi
je 0x42c200
test byte [ebp - 0x264], 0x10
je 0x42c209
lea ecx, [ebp - 0x238]
push 0x595f80
push ecx
call fcn.0053d3bf
add esp, 8
test eax, eax
je 0x42c200
lea edx, [ebp - 0x238]
push 0x597e38
push edx
call fcn.0053d3bf
add esp, 8
test eax, eax
je 0x42c200
mov eax, dword [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.0042c050
add esp, 0xc
test byte [ebp - 0x264], 0x10
jne 0x42c21b
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x26c]
push ecx
push eax
mov ecx, ebx
call fcn.0044ab55
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42c241
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp - 0x274]
lea ecx, [ebp - 0x264]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x42c171
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42c290
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x270]
push ecx
push str.return___08x
lea edx, [ebp - 0x27c]
push 2
push edx
call fcn.00401410
add esp, 0x10
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], 0xffffffff
call fcn.00401370
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053ca73
mov esp, ebp
pop ebp
ret