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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcc96
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x52c1c8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x40], cx
mov bl, 1
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x3d8], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
call fcn.004223a0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x41873b
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x41873b
push 1
push 0x503ac8
lea ecx, [ebp - 0x40]
call fcn.00422040
push 3
push 0x504d20
lea ecx, [ebp - 0x40]
call fcn.00422040
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x348]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x418780
xor bl, bl
jmp 0x418a6e
test dword [ebp - 0x348], 0x400
jne 0x418a51
mov ecx, 0x503c80
lea eax, [ebp - 0x31c]
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4187c6
test dx, dx
je 0x4187c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4187c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4187a0
xor eax, eax
jmp 0x4187cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x418a51
mov ecx, 0x503c84
lea eax, [ebp - 0x31c]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x418806
test dx, dx
je 0x418802
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x418806
add eax, 4
add ecx, 4
test dx, dx
jne 0x4187e0
xor eax, eax
jmp 0x41880b
sbb eax, eax
or eax, 1
test eax, eax
je 0x418a51
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp word [ebp - 0x31c], ax
jne 0x418834
xor ecx, ecx
jmp 0x41884f
lea ecx, [ebp - 0x31c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418840
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x31c]
push eax
lea ecx, [ebp - 0x58]
call fcn.00422560
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 1
jne 0x418872
mov byte [ebp - 4], 0
jmp 0x418a3c
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
push dword [ebp - 0x3d8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004223a0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test ecx, ecx
je 0x4188c2
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x4188c2
push 0x503ac8
lea ecx, [ebp - 0x28]
call fcn.004179b0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call fcn.00421e70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00413130
mov ecx, esi
call fcn.0041bf90
test al, al
jne 0x418a14
test byte [ebp - 0x348], 0x10
je 0x41891a
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004186b0
test al, al
jne 0x418a14
xor bl, bl
jmp 0x418a14
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x418937
mov eax, dword [ecx]
jmp 0x418939
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.004223a0
lea eax, [ebp - 0x70]
push eax
call fcn.004b6cf0
add esp, 4
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
cmp dword [ecx + 0x14], 8
jb 0x418974
mov eax, dword [ecx]
jmp 0x418976
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.004223a0
mov ecx, esi
call fcn.004323e0
test al, al
je 0x418a0c
lea ecx, [ebp - 0xf8]
call fcn.004ad700
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00413100
lea ecx, [ebp - 0xf8]
call fcn.004b3370
test al, al
jne 0x418a01
sub esp, 0x18
lea eax, [ebp - 0x70]
mov ecx, esp
mov dword [ebp - 0x3d4], esp
push eax
call fcn.00413100
sub esp, 0x18
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00413100
lea eax, [ebp - 0x3d0]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00418ab0
lea ecx, [ebp - 0x3d0]
call fcn.004ae050
lea ecx, [ebp - 0xf8]
call fcn.004ae050
lea ecx, [ebp - 0x70]
call fcn.004a80a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x418a29
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004237a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov byte [ebp - 4], al
mov word [ebp - 0x28], ax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x418a51
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004237a0
lea eax, [ebp - 0x348]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418780
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x418a83
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004237a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bedf5
mov esp, ebp
pop ebp
ret 4