Function at 0x585570
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6cdbc7
mov eax, dword fs:[0]
push eax
sub esp, 0x944
mov eax, dword [0x7f3784]
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 dword [ebp - 0x93c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x944], edi
test edi, edi
je 0x585daf
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, 1
jle 0x585daf
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
push ebx
push 0xfde9
mov dword [ebp - 0x934], ebx
call eax
cmp eax, 1
jle 0x585da8
push edi
mov ecx, esi
call fcn.00587280
cmp al, 1
je 0x585ba4
push 0x104
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00651620
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004cfcc0
push 1
push 0x71880c
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004cfb50
push 3
push 0x73c110
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004cfb50
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x670], ebx
add esp, 0x34
mov dword [ebp - 0x66c], 0xf
mov byte [ebp - 0x680], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585678
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x680]
call fcn.0049f3b0
push 2
push 0x73c268
lea ecx, [ebp - 0x680]
mov dword [ebp - 4], 0
call fcn.0049f250
push 0x208
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.00651620
push 0x208
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.00651620
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x668]
add esp, 0x18
lea eax, [ebp - 0x680]
cmp dword [ebp - 0x66c], 0x10
cmovae eax, dword [ebp - 0x680]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call ebx
push 0x104
lea eax, [ebp - 0x460]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call ebx
lea eax, [ebp - 0x930]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x938], eax
cmp eax, 0xffffffff
jne 0x58574f
mov ebx, 5
mov dword [ebp - 0x934], ebx
jmp 0x585890
push 0x718a28
lea ecx, [ebp - 0x698]
call fcn.0049ece0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x904]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x585770
sub ecx, edx
lea eax, [ebp - 0x904]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x698]
call fcn.0049f4a0
lea ebx, [ebp - 0x460]
lea ecx, [ebx + 2]
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x5857a0
mov eax, dword [ebp - 0x688]
sub ebx, ecx
sar ebx, 1
lea ecx, [ebp - 0x698]
cmp dword [ebp - 0x684], 8
cmovae ecx, dword [ebp - 0x698]
mov dword [ebp - 0x948], ecx
cmp ebx, eax
ja 0x585847
test ebx, ebx
je 0x5858e2
sub eax, ebx
inc eax
lea edx, [ecx + eax*2]
mov eax, ecx
mov dword [ebp - 0x940], edx
nop dword [eax]
mov ecx, edx
sub ecx, eax
sar ecx, 1
je 0x585847
mov dx, word [ebp - 0x460]
nop
cmp word [eax], dx
je 0x58580f
add eax, 2
sub ecx, 1
jne 0x585800
jmp 0x585847
lea edx, [ebp - 0x460]
mov esi, ebx
test ebx, ebx
je 0x585836
mov edi, eax
mov ecx, edx
sub edi, ecx
mov cx, word [edi + edx]
cmp cx, word [edx]
jne 0x5858d4
add edx, 2
sub esi, 1
jne 0x585821
sub eax, dword [ebp - 0x948]
sar eax, 1
cmp eax, 0xffffffff
jne 0x5858e2
lea eax, [ebp - 0x930]
push eax
push dword [ebp - 0x938]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x585763
mov ebx, 5
mov dword [ebp - 0x934], ebx
push dword [ebp - 0x938]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x698]
call fcn.00488f90
mov edi, dword [ebp - 0x944]
mov esi, dword [ebp - 0x93c]
mov edx, dword [ebp - 0x66c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x585ba4
mov ecx, dword [ebp - 0x680]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x585b9a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x585dd4
jmp 0x585b9a
mov edx, dword [ebp - 0x940]
add eax, 2
jmp 0x5857f0
push 0
push 0x71a32c
lea ecx, [ebp - 0x698]
call fcn.00587770
push eax
push 0
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x698]
call fcn.00494250
push 0x40
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00651620
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x154]
add esp, 0xc
lea eax, [ebp - 0x6b0]
cmp dword [ebp - 0x69c], 8
cmovae eax, dword [ebp - 0x6b0]
push 0
push 0
push 0x40
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov edi, dword [ebp - 0x93c]
lea eax, [ebp - 0x154]
push eax
mov ecx, edi
call fcn.00587280
cmp al, 1
je 0x585b84
push 0x104
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.00651620
add esp, 0xc
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x684], 8
lea eax, [ebp - 0x698]
cmovae eax, dword [ebp - 0x698]
push 0
push 0
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 1
push 0x71880c
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004cfb50
lea ecx, [ebp - 0x258]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5859e0
sub ecx, edx
lea eax, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004cfb50
add esp, 0x10
lea eax, [ebp - 0x114]
push 0
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0xfde9
call eax
cmp eax, 1
jg 0x585a45
lea ecx, [ebp - 0x6b0]
mov dword [ebp - 0x934], 4
call fcn.00488f90
mov ebx, dword [ebp - 0x934]
jmp 0x58586d
lea eax, [ebp - 0x114]
push eax
call fcn.004cf390
add esp, 4
test eax, eax
jne 0x585a78
lea ecx, [ebp - 0x6b0]
mov dword [ebp - 0x934], 5
call fcn.00488f90
mov ebx, dword [ebp - 0x934]
jmp 0x58586d
push 1
push 0x40
call fcn.00665379
add esp, 8
mov dword [ebp - 0x940], eax
test eax, eax
jne 0x585aae
lea ecx, [ebp - 0x6b0]
mov dword [ebp - 0x934], 3
call fcn.00488f90
mov ebx, dword [ebp - 0x934]
jmp 0x58586d
lea eax, [ebp - 0x940]
mov ecx, edi
push eax
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.00584d00
mov esi, dword [ebp - 0x940]
mov ebx, eax
mov dword [ebp - 0x934], ebx
test ebx, ebx
jne 0x585b7b
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x6d0], 0
mov dword [ebp - 0x6cc], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x6e0], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585b00
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x6e0]
call fcn.0049f3b0
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x6b8], 0
mov dword [ebp - 0x6b4], 0xf
mov byte [ebp - 0x6c8], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585b40
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x6c8]
call fcn.0049f3b0
lea eax, [ebp - 0x6e0]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x94c]
push eax
lea ecx, [edi + 0x18]
call fcn.0057faf0
lea ecx, [ebp - 0x6e0]
call fcn.004c4fa0
push esi
call fcn.00665390
add esp, 4
lea ecx, [ebp - 0x6b0]
call fcn.00488f90
mov ebx, dword [ebp - 0x934]
jmp 0x58586d
push edx
push ecx
call fcn.0063bb18
add esp, 8
test ebx, ebx
jne 0x585da8
mov eax, dword [ebp - 0x93c]
mov esi, dword [esi]
cmp esi, dword [eax + 4]
je 0x585db4
nop dword [eax]
mov ecx, edi
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], 0xf
mov byte [ebp - 0x680], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585be0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x680]
call fcn.0049f3b0
mov eax, dword [esi]
mov ecx, esi
mov dword [ebp - 0x938], eax
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x950]
push eax
call fcn.0056e880
mov ebx, dword [ebp - 0x948]
mov edi, dword [ebp - 0x680]
cmp byte [ebx + 0xd], 0
jne 0x585c58
cmp dword [ebx + 0x24], 0x10
lea edx, [ebx + 0x10]
jb 0x585c31
mov edx, dword [ebx + 0x10]
push dword [ebx + 0x20]
cmp dword [ebp - 0x66c], 0x10
lea eax, [ebp - 0x680]
push edx
push dword [ebp - 0x670]
cmovae eax, edi
push eax
call fcn.004a14b0
add esp, 0x10
test eax, eax
jns 0x585c5e
mov ebx, dword [ebp - 0x938]
mov eax, dword [ebp - 0x66c]
cmp eax, 0x10
jb 0x585c94
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x585c8a
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x585dd9
push ecx
push edi
call fcn.0063bb18
add esp, 8
mov edi, dword [ebp - 0x944]
cmp ebx, dword [ebp - 0x938]
jne 0x585cbf
mov eax, dword [ebp - 0x93c]
add esi, 8
cmp esi, dword [eax + 4]
jne 0x585bc0
mov ebx, dword [ebp - 0x934]
jmp 0x585db4
mov ecx, edi
mov dword [ebp - 0x670], 0
mov dword [ebp - 0x66c], 0xf
mov byte [ebp - 0x680], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x585ce0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x680]
call fcn.0049f3b0
lea eax, [ebp - 0x680]
mov ecx, esi
push eax
lea eax, [ebp - 0x950]
push eax
call fcn.0056e880
mov edi, dword [ebp - 0x948]
mov ebx, dword [ebp - 0x680]
cmp byte [edi + 0xd], 0
jne 0x585d50
cmp dword [edi + 0x24], 0x10
lea edx, [edi + 0x10]
jb 0x585d29
mov edx, dword [edi + 0x10]
push dword [edi + 0x20]
cmp dword [ebp - 0x66c], 0x10
lea eax, [ebp - 0x680]
push edx
push dword [ebp - 0x670]
cmovae eax, ebx
push eax
call fcn.004a14b0
add esp, 0x10
test eax, eax
jns 0x585d52
mov edi, dword [esi]
mov esi, dword [edi + 0x28]
add edi, 0x28
mov ecx, edi
push dword [esi + 4]
push edi
call fcn.004c72e0
mov eax, dword [ebp - 0x66c]
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
mov dword [edi + 4], 0
cmp eax, 0x10
jb 0x585da4
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x585d9a
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x585dd9
push ecx
push ebx
call fcn.0063bb18
add esp, 8
xor ebx, ebx
jmp 0x585db4
mov ebx, 0xa
jmp 0x585db4
mov ebx, 4
mov eax, ebx
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.0063bad7
mov esp, ebp
pop ebp
ret 4
call fcn.0065a824
call fcn.0065a824
int3