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

Disassembly:
push 0xffffffffffffffff
push 0x434173
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x69c
mov eax, dword [0x445164]
push ebx
push ebp
push esi
mov dword [esp + 0x6a4], eax
push edi
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x6bc]
push edi
lea eax, [esp + 0x29c]
push 0x4371d0
push eax
mov dword [esp + 0x6c0], 0
call fcn.00419260
add esp, 0xc
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x29c]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or ebp, 0xffffffff
cmp esi, ebp
mov dword [esp + 0x34], esi
je 0x408d57
jmp 0x408670
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x408d50
cmp word [esp + 0x74], 0x2e
je 0x408670
mov ax, word [esp + 0x76]
test ax, ax
je 0x408670
cmp ax, 0x2e
jne 0x4086a8
cmp word [esp + 0x78], 0
je 0x408670
call fcn.004273c8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x1c]
push 0x4365fc
push ecx
mov byte [esp + 0x6c0], 1
call fcn.004018c0
mov al, byte [esp + 0x54]
add esp, 0xc
test al, 0x10
je 0x408730
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x6bc]
push esi
push edi
lea edx, [esp + 0x4a8]
push 0x4371c4
push edx
call fcn.00419260
add esp, 0xc
lea eax, [esp + 0x4a4]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
call fcn.00401920
mov ecx, dword [esp + 0x28]
call fcn.004085f0
test eax, eax
jne 0x408935
lea eax, [esi - 0x10]
jmp 0x408dde
call fcn.004273c8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x6bc]
push eax
push ecx
lea edx, [esp + 0x1c]
push 0x4371c4
push edx
mov byte [esp + 0x6c4], 2
call fcn.004018c0
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ecx + 0x2a0]
add esp, 0x10
test eax, eax
je 0x408963
mov edx, dword [esp + 0x24]
mov eax, dword [edx]
mov edi, dword [eax + 0xb8]
mov ecx, dword [eax + 0xbc]
xor ebx, ebx
cmp edi, ecx
je 0x408963
lea esp, [esp]
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.00401500
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x10], esi
mov eax, dword [esi - 0xc]
test eax, eax
mov byte [esp + 0x6b4], 3
jl 0x408864
push 0x4371c0
push esi
call fcn.00419d40
add esp, 8
test eax, eax
je 0x408864
sub eax, esi
sar eax, 1
cmp eax, ebp
jle 0x408864
mov esi, dword [esi - 0xc]
dec esi
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.004081d0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b8], 4
call fcn.00404380
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408830
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [0x4460e8]
mov edx, dword [ecx + 0x1c]
lea eax, [esp + 0x10]
push eax
add edx, 0x10
push edx
lea eax, [esp + 0x40]
push eax
call fcn.004043f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b8], 5
call fcn.00404380
mov eax, dword [esp + 0x38]
jmp 0x408893
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
add edx, 0x50
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004043f0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x6b8], 6
call fcn.00404380
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 3
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
push eax
push esi
call fcn.00419cde
add esp, 8
test eax, eax
jne 0x4088cf
mov ebx, 1
lea eax, [esi - 0x10]
mov byte [esp + 0x6b4], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4088f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov ecx, dword [eax + 0xbc]
add eax, 0xb4
add edi, 4
cmp edi, ecx
jne 0x4087a0
test ebx, ebx
je 0x408963
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408935
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408670
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408670
mov eax, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x4089f0
lea ecx, [esp + 0x14]
push ecx
push 0x4371b4
lea edx, [esp + 0x4c]
push edx
call fcn.004044a0
push 0x4371ac
push eax
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x6c0], 7
call fcn.00406000
mov eax, dword [eax]
mov ecx, dword [0x4460e8]
push eax
mov byte [esp + 0x6b8], 8
call fcn.00402130
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 7
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4089dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
jmp 0x408c06
call fcn.004273c8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x437184
push eax
mov byte [esp + 0x6bc], 9
call fcn.004018c0
add esp, 8
lea ecx, [esp + 0x14]
push ecx
push 0x43717c
lea edx, [esp + 0x34]
push edx
call fcn.004044a0
push 0x437178
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x6c0], 0xa
call fcn.00406000
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6bc], 0xb
call fcn.004042e0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 0xa
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408a86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 9
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408aab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x437158
call fcn.0041924a
add esp, 4
push eax
push 0x437158
lea ecx, [esp + 0x18]
call fcn.004042e0
push 0x437130
call fcn.0041924a
add esp, 4
push eax
push 0x437130
lea ecx, [esp + 0x18]
call fcn.004042e0
push 0x437108
call fcn.0041924a
add esp, 4
push eax
push 0x437108
lea ecx, [esp + 0x18]
call fcn.004042e0
mov eax, dword [0x4460e8]
mov ecx, dword [eax + 8]
test ecx, ecx
mov esi, dword [esp + 0x10]
je 0x408b3a
push 0x12
push 0x4370fc
push esi
call fcn.0042895b
cmp eax, 3
je 0x408c2d
cmp eax, 4
jne 0x408b35
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov edi, eax
jmp 0x408b3a
cmp eax, 5
je 0x408b68
lea eax, [esi - 0x10]
mov byte [esp + 0x6b4], 2
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408b5b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x4089f0
jmp 0x408910
lea eax, [esp + 0x14]
push eax
push 0x4371b4
lea ecx, [esp + 0x24]
push ecx
call fcn.004044a0
push 0x4370d4
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x6c0], 0xe
call fcn.00406000
mov eax, dword [eax]
mov ecx, dword [0x4460e8]
push eax
mov byte [esp + 0x6b8], 0xf
call fcn.00402130
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 0xe
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bcf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 9
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408bf4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [esi - 0x10]
mov byte [esp + 0x6b4], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408910
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408910
lea eax, [esp + 0x14]
push eax
push 0x4371b4
lea ecx, [esp + 0x28]
push ecx
call fcn.004044a0
push 0x4370d4
push eax
lea edx, [esp + 0x24]
mov bl, 0xc
push edx
mov byte [esp + 0x6c0], bl
call fcn.00406000
mov eax, dword [eax]
mov ecx, dword [0x4460e8]
push eax
mov byte [esp + 0x6b8], 0xd
call fcn.00402130
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 9
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cb9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esi - 0x10]
mov byte [esp + 0x6b4], 2
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408cff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d24
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x6bc]
add eax, 0xfffffff0
mov dword [esp + 0x6b4], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x408d49
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x408e2c
mov edi, dword [esp + 0x6bc]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x408dfe
lea eax, [esp + 0x6bc]
push eax
push 0x4370c8
lea ecx, [esp + 0x28]
push ecx
call fcn.004044a0
push 0x4371ac
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x6c0], 0x10
call fcn.00406000
mov eax, dword [eax]
mov ecx, dword [0x4460e8]
push eax
mov byte [esp + 0x6b8], 0x11
call fcn.00402130
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 0x10
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408dd7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x6b4], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x408e09
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [edi - 0x10]
mov dword [esp + 0x6b4], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x408e27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0x6ac]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x6a8]
call fcn.0041923c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6a8
ret 4