Function at 0x401df5
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4bda41
push eax
mov eax, dword [0x4f0220]
mov dword fs:[0], esp
sub esp, 0x66c
push ebx
push ebp
xor ebp, ebp
push esi
cmp eax, ebp
mov esi, ecx
je 0x401e04
push str.GetDbgFile_______
push str.cmdtest
push 0xf
push 0x4f01b4
call fcn.0040ad80
add esp, 0x10
push 1
mov ecx, esi
call fcn.004022b0
mov ebx, eax
cmp ebx, ebp
mov dword [esp + 0x14], ebx
je 0x40200e
push edi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x276]
mov word [esp + 0x274], bp
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x68c]
stosw word es:[edi], ax
lea eax, [esp + 0x274]
push eax
push ecx
mov ecx, esi
call fcn.00402510
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x476]
mov word [esp + 0x474], bp
rep stosd dword es:[edi], eax
lea edx, [esp + 0x274]
stosw word es:[edi], ax
push edx
push ebx
lea eax, [esp + 0x47c]
push 0x4df378
push eax
call fcn.00417559
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], ebp
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x474]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x20], esi
je 0x402004
mov edi, dword [esp + 0x690]
mov bl, 2
lea eax, [esp + 0x50]
push 0x4df370
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401fe5
lea ecx, [esp + 0x50]
push 0x4df36c
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401fe5
test byte [esp + 0x24], 0x10
jne 0x401fe5
lea edx, [esp + 0x50]
lea ecx, [esp + 0x14]
push edx
call fcn.004a4a9c
mov eax, dword [esp + 0x694]
mov dword [esp + 0x684], ebp
cmp eax, ebp
je 0x401fc1
mov eax, dword [0x4e00a8]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov byte [esp + 0x684], 1
push ecx
push edx
push eax
call fcn.00401bc0
add esp, 0xc
test eax, eax
je 0x401fae
cmp dword [0x4f0220], ebp
je 0x401f9e
mov ecx, dword [esp + 0x10]
mov esi, dword [edi + 8]
push ecx
lea ecx, [esp + 0x20]
call fcn.0042e6c0
mov edx, dword [eax]
push esi
push edx
push str.GetDbgFile_1___s____d_
push str.cmdtest
push 0xf
push 0x4f01b4
mov byte [esp + 0x69c], bl
call fcn.0040ad80
add esp, 0x18
lea ecx, [esp + 0x1c]
mov byte [esp + 0x684], 1
call fcn.0042f040
mov esi, dword [esp + 0x20]
mov eax, dword [edi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.004a3b20
lea ecx, [esp + 0x10]
mov byte [esp + 0x684], 0
call fcn.004a49dc
jmp 0x401fd1
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, edi
call fcn.004a3b20
lea ecx, [esp + 0x14]
mov dword [esp + 0x684], 0xffffffff
call fcn.004a49dc
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401ec1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [esp + 0x18]
push ebx
call fcn.004a4740
add esp, 4
pop edi
mov eax, dword [0x4f0220]
pop esi
cmp eax, ebp
pop ebp
pop ebx
je 0x402033
push str.GetDbgFile___
push str.cmdtest
push 0xf
push 0x4f01b4
call fcn.0040ad80
add esp, 0x10
mov ecx, dword [esp + 0x66c]
mov dword fs:[0], ecx
add esp, 0x678
ret 0xc