Function at 0x10117030
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014f91d
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x1024b600]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0x10]
mov ecx, edx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2b4], edx
mov dword [ebp - 0x2bc], esi
lea eax, [ecx + 1]
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x2b0], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10117092
sub ecx, dword [ebp - 0x2b0]
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.100035e8
push 2
push 0x10209f5c
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.100051f2
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101170c4
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x28]
call fcn.100051f2
cmp dword [0x1024c0b8], 3
jl 0x10117101
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
push str.Searching__s_n
push dword [0x10252af0]
push 3
call fcn.100de910
add esp, 0x10
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
cmova eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.1010baf0
add esp, 8
cmp dword [ebp - 0x2c], 7
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
cmova eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x2c4], edi
cmp edi, 0xffffffff
je 0x101173e6
mov ecx, dword [esi + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [esi]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2b8], eax
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x10117188
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
add dword [esi + 4], 0x18
jmp 0x10117190
push eax
mov ecx, esi
call fcn.10115b40
mov edi, dword [esi + 4]
mov esi, dword [ebp - 0x2b4]
sub edi, 0x18
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x101171a0
mov edx, dword [edi + 0x14]
sub esi, ecx
mov dword [ebp - 0x2c0], edx
cmp esi, edx
ja 0x101171ed
mov dword [ebp - 0x2ac], edi
mov eax, edi
cmp edx, 0xf
jbe 0x101171cb
mov eax, dword [edi]
mov dword [ebp - 0x2ac], eax
push esi
push dword [ebp - 0x2b4]
mov dword [edi + 0x10], esi
push eax
call fcn.1006f830
mov eax, dword [ebp - 0x2ac]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x101172bd
cmp esi, 0x7fffffff
ja 0x10117480
mov ecx, esi
or ecx, 0xf
cmp ecx, 0x7fffffff
jbe 0x1011720d
mov ecx, 0x7fffffff
jmp 0x1011723a
mov eax, edx
shr eax, 1
mov dword [ebp - 0x2ac], eax
mov eax, 0x7fffffff
sub eax, dword [ebp - 0x2ac]
cmp edx, eax
jbe 0x1011722d
mov ecx, 0x7fffffff
jmp 0x1011723a
mov eax, dword [ebp - 0x2ac]
add eax, edx
cmp ecx, eax
cmovb ecx, eax
lea eax, [ebp - 0x2ac]
mov dword [ebp - 0x2ac], ecx
push eax
push edi
call fcn.1000368f
mov ecx, dword [ebp - 0x2ac]
push esi
push dword [ebp - 0x2b4]
mov dword [ebp - 0x2b0], eax
push eax
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], ecx
call fcn.1006f830
mov ecx, dword [ebp - 0x2b0]
add esp, 0x14
mov eax, dword [ebp - 0x2c0]
mov byte [ecx + esi], 0
cmp eax, 0xf
jbe 0x101172bb
mov ecx, dword [edi]
lea edx, [eax + 1]
cmp edx, 0x1000
jb 0x101172a7
mov esi, dword [ecx - 4]
add edx, 0x23
sub ecx, esi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1011747b
mov ecx, esi
push edx
push ecx
call fcn.1006dd11
mov eax, dword [ebp - 0x2b0]
add esp, 8
mov dword [edi], eax
jmp 0x101172bd
mov dword [edi], ecx
push 0x5c
mov ecx, edi
call fcn.1003ff40
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.1010bc10
add esp, 8
cmp dword [eax + 0x14], 0xf
mov ecx, eax
mov byte [ebp - 4], 2
jbe 0x101172e7
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.100051f2
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp ecx, 0xf
jbe 0x1011732a
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10117320
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011747b
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov edi, dword [ebp - 0x2c4]
lea eax, [ebp - 0x2a8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x1011734d
mov esi, dword [ebp - 0x2bc]
jmp 0x10117163
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x2bc]
mov edi, dword [ebp - 0x2b8]
mov byte [ebp - 0x2b8], 0
push dword [ebp - 0x2b8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
lea eax, [edi + edi*2]
sub ecx, edx
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, edi
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.10116c40
add esp, 0x10
cmp esi, edi
je 0x101173e6
cmp dword [0x1024c0b8], 3
jl 0x101173df
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x101173c9
mov eax, dword [esi]
push eax
push str._got__s_n
push dword [0x10252af0]
push 3
call fcn.100de910
add esp, 0x10
add esi, 0x18
cmp esi, edi
jne 0x101173b6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 7
jbe 0x1011741c
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10117412
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011747b
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 0xf
jbe 0x10117460
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10117456
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011747b
push ecx
push edx
call fcn.1006dd11
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006d7ba
mov esp, ebp
pop ebp
ret
call fcn.100735b5
call fcn.1000281b
int3