Function at 0x10058790
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088548
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x10163034]
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 ebx, dword [ebp + 8]
mov ecx, ebx
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x28], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100587e0
sub ecx, edx
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10001fc8
push 2
push 0x10129de0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.100021da
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058810
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.100021da
cmp dword [0x10162a28], 3
jl 0x1005884b
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.AL_lib:__II__Searching__s_n
push dword [0x10164d18]
call fcn.100012cb
add esp, 0xc
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.10001e01
add esp, 8
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2b0], esi
cmp esi, 0xffffffff
je 0x10058a0e
mov ecx, dword [edi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [edi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2ac], eax
nop dword [eax]
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x100588cf
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
add dword [edi + 4], 0x18
jmp 0x100588d7
push eax
mov ecx, edi
call fcn.10002289
mov eax, dword [edi + 4]
lea esi, [eax - 0x18]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100588e2
sub eax, edx
mov ecx, esi
push eax
push ebx
call fcn.10001fc8
push 0x5c
mov ecx, esi
call fcn.100016fe
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.10001c2b
add esp, 8
cmp dword [eax + 0x14], 0x10
mov edx, eax
mov byte [ebp - 4], 2
jb 0x1005891e
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.100021da
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x10058961
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058957
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058a3a
push edx
push ecx
call fcn.10001b8b
add esp, 8
mov esi, dword [ebp - 0x2b0]
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100588b0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [edi]
mov ebx, dword [ebp - 0x2ac]
mov ecx, dword [edi + 4]
sub ecx, edx
push dword [ebp - 0x2ac]
lea eax, [ebx + ebx*2]
lea esi, [edx + eax*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, 0x2aaaaaab
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
sub ecx, ebx
lea ecx, [ecx + ecx*2]
shl ecx, 3
imul ecx
lea edi, [ecx + esi]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
push edi
push esi
call fcn.10001415
add esp, 0x10
cmp esi, edi
je 0x10058a0e
nop dword [eax]
cmp dword [0x10162a28], 3
jl 0x10058a07
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x100589f3
mov eax, dword [esi]
push eax
push str.AL_lib:__II___got__s_n
push dword [0x10164d18]
call fcn.100012cb
add esp, 0xc
add esi, 0x18
cmp esi, edi
jne 0x100589e0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x10058a4a
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10058a40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10058a40
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10001b8b
add esp, 8
mov edx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 0x10
jb 0x10058a94
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10058a8a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10058a8a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10001b8b
add esp, 8
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.10001abe
mov esp, ebp
pop ebp
ret