Function at 0x5852e0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x666541
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x704e7c]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704e7c]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xf8]
mov esi, dword [esp + 0xfc]
mov dword [esp + 0x1c], ecx
call fcn.00585290
xor ebx, ebx
mov eax, esi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x585350
sub eax, edi
push eax
push esi
lea ecx, [esp + 0x7c]
call fcn.00416f50
mov eax, dword [esp + 0x88]
mov dword [esp + 0xf0], ebx
cmp eax, ebx
je 0x5853a8
lea esi, [eax - 1]
cmp esi, eax
jbe 0x585382
call fcn.006111cc
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x585394
lea eax, [esp + 0x78]
mov al, byte [eax + esi]
cmp al, 0x5c
je 0x5853a8
push 0x5c
push 1
lea ecx, [esp + 0x7c]
call fcn.00420810
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0xfc], 1
call fcn.00416bc0
push 3
push 0x6869d4
lea ecx, [esp + 0x60]
call fcn.00416cc0
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
mov esi, 0x10
or dword [edi + 4], esi
lea ecx, [edi + 4]
cmp dword [esp + 0x70], esi
jae 0x5853fe
lea eax, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [edi + 0x144], eax
cmp eax, 0xffffffff
jne 0x585450
cmp dword [esp + 0x70], esi
jb 0x585424
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x58576f
mov edx, dword [esp + 0x78]
push edx
jmp 0x585767
cmp byte [edi + 0x30], 0x2e
lea edx, [edi + 0x30]
je 0x58571d
mov ecx, edi
call fcn.00585230
test al, al
je 0x5854cd
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x585479
lea eax, [esp + 0x78]
push edx
push eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
push ebp
mov ecx, edi
call eax
test al, al
jne 0x58571d
cmp dword [esp + 0x70], esi
jb 0x5854a0
mov edx, dword [esp + 0x5c]
push edx
call fcn.00610458
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x5854c6
mov eax, dword [esp + 0x78]
push eax
call fcn.00610458
add esp, 4
xor al, al
jmp 0x585771
push 0x2e
push edx
call fcn.00615360
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, ebx
je 0x58571d
cmp dword [esp + 0x100], ebx
je 0x5856f6
mov eax, ebp
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x585510
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x98]
call fcn.00416f50
push 1
push ebx
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0xfc], 2
mov byte [esp + 0x20], 0x3b
call fcn.004950e0
mov esi, eax
cmp esi, ebx
push ebp
jle 0x58579b
lea ecx, [esp + 0x40]
call fcn.00417080
push esi
push ebx
lea edx, [esp + 0xd0]
push edx
mov ecx, eax
mov byte [esp + 0xfc], 3
call fcn.00493a60
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0xf0], 5
jb 0x585591
mov eax, dword [esp + 0x40]
push eax
call fcn.00610458
add esp, 4
mov eax, ebp
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5855a6
sub eax, edx
push ebp
lea ecx, [esp + 0x24]
mov edi, eax
call fcn.00417080
push edi
inc esi
push esi
lea ecx, [esp + 0xb4]
push ecx
mov ecx, eax
mov byte [esp + 0xfc], 6
call fcn.00493a60
cmp dword [esp + 0x38], 0x10
mov byte [esp + 0xf0], 8
jb 0x5855f1
mov edx, dword [esp + 0x24]
push edx
call fcn.00610458
add esp, 4
mov esi, dword [esp + 0x18]
inc esi
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x585610
sub eax, edx
push eax
mov eax, dword [esp + 0xe0]
push esi
push eax
push ebx
lea ecx, [esp + 0xd8]
call fcn.0042f960
test eax, eax
je 0x58567f
push esi
lea ecx, [esp + 0xb0]
call fcn.004515e0
test eax, eax
je 0x58567f
lea ecx, [esp + 0xac]
call fcn.0050f430
lea ecx, [esp + 0xc8]
call fcn.0050f430
lea ecx, [esp + 0x90]
mov byte [esp + 0xf0], 1
call fcn.0050f430
mov edi, dword [esp + 0x1c]
mov esi, 0x10
jmp 0x58571d
mov esi, 0x10
cmp dword [esp + 0xc4], esi
jb 0x58569d
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0xc4], edi
mov dword [esp + 0xc0], ebx
mov byte [esp + 0xb0], bl
cmp dword [esp + 0xe0], esi
jb 0x5856cb
mov edx, dword [esp + 0xcc]
push edx
call fcn.00610458
add esp, 4
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0xa8], 0x10
mov byte [esp + 0xf0], 1
jb 0x5856f1
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00610458
add esp, 4
mov esi, 0x10
mov eax, dword [esp + 0x78]
cmp dword [esp + 0x8c], esi
jae 0x585707
lea eax, [esp + 0x78]
mov edx, dword [edi]
lea ecx, [edi + 0x30]
push ecx
push eax
mov eax, dword [edx + 8]
mov ecx, edi
call eax
test al, al
je 0x5857cf
mov ecx, dword [edi + 0x144]
lea eax, [edi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x585450
cmp dword [esp + 0x70], esi
jb 0x585749
mov eax, dword [esp + 0x5c]
push eax
call fcn.00610458
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x58576f
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00610458
add esp, 4
mov al, 1
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.006108ae
add esp, 0xe0
ret 0xc
mov eax, dword [esp + 0x1c]
inc eax
push eax
call fcn.00613de4
add esp, 8
test eax, eax
je 0x5856cf
lea ecx, [esp + 0x90]
mov byte [esp + 0xf0], 1
call fcn.0050f430
mov esi, 0x10
jmp 0x58571d
cmp dword [esp + 0x70], esi
jb 0x5857e2
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00610458
add esp, 4
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x8c], esi
jb 0x5854c6
mov edx, dword [esp + 0x78]
push edx
call fcn.00610458
add esp, 4
xor al, al
jmp 0x585771