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

Disassembly:
push 0xffffffffffffffff
push 0x41f257
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x427a94]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x427a94]
xor eax, esp
push eax
lea eax, [esp + 0x180]
mov dword fs:[0], eax
mov eax, dword [esp + 0x194]
mov esi, dword [esp + 0x190]
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], eax
call fcn.00402774
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40179b
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x188], 0
call fcn.00402774
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4017d0
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x20], ebp
mov byte [esp + 0x188], 1
call fcn.00402774
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401802
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
lea ecx, [esp + 0x1c]
push str._s.
mov bl, 2
push ecx
mov byte [esp + 0x194], bl
call fcn.00402590
mov esi, dword [esp + 0x24]
add esp, 0xc
lea edx, [esp + 0x3c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x24], eax
cmp eax, 0xffffffff
jne 0x4018c0
mov byte [esp + 0x188], 1
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40186b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x188], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40188f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x188], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x401ace
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x68]
push ecx
push edx
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.00402590
add esp, 0x10
test byte [esp + 0x3c], 0x10
je 0x40191c
cmp byte [esp + 0x68], 0x2e
je 0x401a33
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x401905
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00402220
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00401730
add esp, 8
jmp 0x401a33
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x20]
push 0x423504
push edx
call fcn.00402590
add esp, 0xc
push 3
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x24]
call fcn.00402070
mov byte [esp + 0x188], 3
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [ebp - 0x10]
cmp eax, esi
je 0x4019a2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x401990
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x401990
push eax
call fcn.00402460
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x401987
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x20], ebp
jmp 0x4019a2
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00402370
mov ebp, dword [esp + 0x20]
mov byte [esp + 0x188], bl
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4019c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
push ecx
push ebp
call fcn.0040c7ff
mov edi, dword [esp + 0x24]
add esp, 8
test eax, eax
jne 0x401a33
push ecx
lea eax, [edi - 0x10]
mov dword [esp + 0x38], esp
mov esi, esp
push eax
call fcn.00402460
add eax, 0x10
mov dword [esi], eax
mov byte [esp + 0x190], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x40], esp
mov esi, esp
push eax
call fcn.00402460
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [esp + 0x190], bl
call fcn.00401b10
add esp, 8
cmp dword [0x42b700], 0
je 0x401af6
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4018c0
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x188], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401a7e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x188], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401aa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x188], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401ac9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x180]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0040c4e6
add esp, 0x178
ret
mov byte [esp + 0x188], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
jmp 0x401852