Function at 0x406860
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4810ef
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a2e84]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x194], 0xffffffff
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x190]
call fcn.00403a10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x190]
call fcn.00403c60
mov dword [ebp - 0x170], eax
push 0
lea ecx, [ebp - 0x190]
push ecx
call fcn.00402300
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x190]
call fcn.00403af0
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x190]
call fcn.00403c40
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403a10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x194], 0xffffffff
jne 0x40694c
mov dword [ebp - 0x1d0], 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00403a90
mov eax, dword [ebp - 0x1d0]
jmp 0x406b96
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.00402300
add esp, 8
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403af0
lea ecx, [ebp - 0x140]
push ecx
call fcn.00464e80
add esp, 4
cmp eax, 4
jbe 0x406a43
mov edx, dword [ebp - 0x16c]
and edx, 0x10
jne 0x406a43
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x4069a4
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402410
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x406a37
mov edx, dword [ebp + 0x14]
push edx
lea ecx, [ebp - 0x1b0]
call fcn.00403a10
mov byte [ebp - 4], 2
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x4069d8
lea ecx, [ebp - 0x1b0]
push ecx
call fcn.00402410
add esp, 4
lea edx, [ebp - 0x1b0]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1ec]
push ecx
call fcn.004024d0
add esp, 0xc
mov dword [ebp - 0x210], eax
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0x214], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00403f80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1ec]
call fcn.00403a90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1b0]
call fcn.00403a90
jmp 0x406a43
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00403f80
lea edx, [ebp - 0x16c]
push edx
mov eax, dword [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
je 0x406b4f
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00406bb0
push 0
lea edx, [ebp - 0x2c]
push edx
call fcn.00402300
add esp, 8
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403af0
mov ecx, dword [ebp - 0x16c]
and ecx, 0x10
jne 0x406b4a
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x406aab
lea eax, [ebp - 0x2c]
push eax
call fcn.00402410
add esp, 4
cmp dword [ebp + 0x14], 0
je 0x406b3e
mov ecx, dword [ebp + 0x14]
push ecx
lea ecx, [ebp - 0x1cc]
call fcn.00403a10
mov byte [ebp - 4], 4
movzx edx, byte [ebp + 0x18]
test edx, edx
je 0x406adf
lea eax, [ebp - 0x1cc]
push eax
call fcn.00402410
add esp, 4
lea ecx, [ebp - 0x1cc]
push ecx
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x208]
push eax
call fcn.004024d0
add esp, 0xc
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 0x21c], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.00403f80
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x208]
call fcn.00403a90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1cc]
call fcn.00403a90
jmp 0x406b4a
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00403f80
jmp 0x406a43
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x194]
push ecx
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov dword [ebp - 0x20c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00403a90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x190]
call fcn.00403a90
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004644d6
mov esp, ebp
pop ebp
ret