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

Disassembly:
sub esp, 0x2fc
lea eax, [esp + 0x300]
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
push eax
call fcn.00402274
lea ecx, [esp + 0x310]
call fcn.004022a6
test eax, eax
jle 0x4045a6
push ecx
lea eax, [esp + 0x314]
mov ecx, esp
push eax
call fcn.00402274
call fcn.00404294
pop ecx
test eax, eax
je 0x4045a6
mov ebp, 0x49a000
lea eax, [esp + 0x10]
push ebp
push 1
push eax
lea ecx, [esp + 0x20]
call fcn.004057bc
push eax
call fcn.0040571d
pop ecx
pop ecx
lea ecx, [esp + 0x10]
mov bl, al
call fcn.0040223f
mov eax, 0x49ae54
test bl, bl
jne 0x404346
mov eax, 0x49ae58
push eax
lea ecx, [esp + 0x18]
call fcn.004021f7
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x18]
call fcn.00402642
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4045b1
lea eax, [esp + 0xe4]
push 0x49ae60
push eax
call fcn.00463964
pop ecx
pop ecx
test eax, eax
je 0x404586
lea eax, [esp + 0xe4]
push 0x49ae64
push eax
call fcn.00463964
pop ecx
pop ecx
test eax, eax
je 0x404586
lea eax, [esp + 0x310]
push eax
lea ecx, [esp + 0x14]
call fcn.00402274
push ebp
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
call fcn.004057bc
push eax
call fcn.0040571d
pop ecx
pop ecx
lea ecx, [esp + 0x18]
mov bl, al
call fcn.0040223f
lea eax, [esp + 0xe4]
push eax
lea eax, [esp + 0x14]
test bl, bl
je 0x40440e
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00405731
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.0040222d
lea ecx, [esp + 0x1c]
jmp 0x404442
push ebp
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00405731
add esp, 0xc
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00405731
add esp, 0xc
lea ecx, [esp + 0x10]
push eax
call fcn.0040222d
lea ecx, [esp + 0x20]
call fcn.0040223f
lea ecx, [esp + 0x24]
call fcn.0040223f
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x14]
call fcn.00402642
push eax
call fcn.00463959
pop ecx
pop ecx
cmp eax, 0xffffffff
je 0x40457d
test byte [esp + 0x8e], 0x80
je 0x40457d
test dword [esp + 0x8e], 0x100
je 0x40457d
lea eax, [esp + 0xe4]
push eax
lea ecx, [esp + 0x44]
call fcn.0040567e
push str.UnAttended
lea ecx, [esp + 0x44]
call fcn.004055d8
test eax, eax
je 0x404574
lea eax, [esp + 0x40]
push eax
lea edx, [esp + 0x31c]
lea ecx, [esp + 0x2c]
call fcn.00406005
test byte [esp + 0xbc], 0x10
pop ecx
je 0x40455a
push ecx
lea eax, [esp + 0xe8]
push eax
lea edx, [esp + 0x320]
lea ecx, [esp + 0x60]
call fcn.00406068
pop ecx
mov edx, eax
lea ecx, [esp + 0x74]
call fcn.00406046
pop ecx
lea ecx, [esp + 0x58]
call fcn.0040563f
sub esp, 0x18
lea eax, [esp + 0x88]
mov ecx, esp
push eax
call fcn.0040569e
push dword [esp + 0x32c]
lea eax, [esp + 0x2c]
push ecx
mov ecx, esp
push eax
call fcn.00402274
mov ecx, edi
call fcn.004042c0
push ebp
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x5c]
call fcn.00406068
pop ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.00405644
lea ecx, [esp + 0x58]
call fcn.0040563f
lea ecx, [esp + 0x70]
call fcn.0040563f
mov ecx, dword [esp + 0x314]
lea eax, [esp + 0x28]
push eax
call fcn.004054dd
lea ecx, [esp + 0x28]
call fcn.0040563f
lea ecx, [esp + 0x40]
call fcn.0040563f
lea ecx, [esp + 0x10]
call fcn.0040223f
lea eax, [esp + 0xb8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404373
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4045b1
push str.folder_is_not_available
call fcn.0041c596
pop ecx
lea ecx, [esp + 0x14]
call fcn.0040223f
lea ecx, [esp + 0x310]
call fcn.0040223f
lea ecx, [esp + 0x318]
call fcn.0040563f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2fc
ret 0x20