Function at 0x1016f23
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x1029004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push 0x24c
lea eax, [ebp - 0x660]
push ebx
push eax
mov dword [ebp - 0x66c], ecx
mov dword [ebp - 0x664], ebx
call sub.msvcrt.dll_memset
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x668], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
mov dword [ebp - 0x670], ebx
mov dword [ebp - 0x678], 1
mov dword [ebp - 0x674], ebx
cmp edi, ebx
je 0x10174cb
cmp word [edi], bx
je 0x10174cb
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100891e
mov edi, eax
test edi, edi
jge 0x1017011
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x1017500
test byte [eax + 0x1c], 4
je 0x1017500
push edi
push 0x1003c04
push 0x1003d58
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a721
jmp 0x1017500
lea eax, [ebp - 0x670]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bf6f
mov edi, eax
test edi, edi
jge 0x1017054
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x1017500
test byte [eax + 0x1c], 4
je 0x1017500
push edi
push 0x1003e58
push 0x1003d58
push 0x26
jmp 0x1017001
mov esi, dword [ebp - 0x670]
test esi, esi
jbe 0x1017077
cmp word [ebp + esi*2 - 0x20e], 0x5c
jne 0x1017077
push 0
dec esi
pop eax
mov word [ebp + esi*2 - 0x20c], ax
jne 0x101705e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
jne 0x10170b9
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10170af
test byte [eax + 0x1c], 4
je 0x10170af
push 0x1003d58
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6cf
mov edi, 0x80070057
jmp 0x1017500
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
inc eax
pop ecx
inc eax
pop ecx
mov dword [ebp - 0x67c], eax
lea eax, [ebp - 0x20c]
push eax
push ebx
lea eax, [ebp - 0x414]
push eax
call fcn.0100891e
mov edi, eax
test edi, edi
jge 0x1017117
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x1017500
test byte [eax + 0x1c], 4
je 0x1017500
push edi
push 0x1003c04
push 0x1003d58
push 0x28
jmp 0x1017001
mov ecx, dword [ebp - 0x66c]
push 1
push 0
push dword [ebp - 0x67c]
lea eax, [ebp - 0x20c]
push eax
call fcn.01016bb3
mov edi, eax
test edi, edi
jge 0x101738a
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x1017500
test byte [eax + 0x1c], 4
je 0x1017500
push edi
push 0x1003e28
push 0x1003d58
push 0x29
jmp 0x1017001
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x20c], ax
push 0x2a
inc esi
pop eax
mov word [ebp + esi*2 - 0x20c], ax
xor eax, eax
inc esi
cmp dword [ebp - 0x668], 0
mov word [ebp + esi*2 - 0x20c], ax
lea eax, [ebp - 0x664]
push eax
je 0x10171af
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x678], eax
jmp 0x10171cb
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x10173c3
dec esi
mov dword [ebp - 0x670], esi
cmp dword [ebp - 0x678], 0
je 0x1017270
mov ecx, dword [ebp - 0x66c]
lea eax, [ebp - 0x638]
push eax
call fcn.01016900
test eax, eax
jne 0x101724f
mov word [ebp + esi*2 - 0x20c], ax
lea eax, [ebp - 0x638]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01016b59
mov edi, eax
test edi, edi
jl 0x1017412
mov ecx, dword [ebp - 0x66c]
push 0
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x67c]
lea eax, [ebp - 0x20c]
push eax
call fcn.01016bb3
mov edi, eax
test edi, edi
jl 0x101743b
test byte [ebp - 0x664], 0x10
jne 0x10172c6
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x678], eax
test eax, eax
jne 0x10171d2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x1017492
dec esi
xor eax, eax
mov word [ebp + esi*2 - 0x20c], ax
lea ecx, [ebp - 0x414]
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1017338
test dx, dx
je 0x10172c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1017338
add eax, 4
add ecx, 4
test dx, dx
jne 0x1017298
xor eax, eax
jmp 0x101733d
mov eax, dword [0x1029018]
mov esi, 0x1029018
cmp eax, esi
je 0x10172f3
test byte [eax + 0x1c], 2
je 0x10172f3
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003d58
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100c249
lea eax, [ebp - 0x670]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bf6f
mov ecx, dword [ebp - 0x66c]
mov edi, eax
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x668]
call fcn.01016b02
test eax, eax
je 0x101746b
and dword [ebp - 0x668], 0
mov esi, dword [ebp - 0x670]
jmp 0x101738a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101748e
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
pop ecx
pop ecx
push dword [ebp - 0x668]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x20c]
sub eax, ecx
sar eax, 1
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x66c]
lea eax, [ebp - 0x674]
push eax
call fcn.01016983
mov dword [ebp - 0x668], eax
lea eax, [esi + 3]
cmp eax, ebx
jbe 0x1017169
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10173b9
test byte [eax + 0x1c], 4
je 0x10173b9
push 0x1003d58
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6cf
mov edi, 0x8007007a
jmp 0x10174d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10173d7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10174d9
test byte [eax + 0x1c], 4
je 0x10174d9
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003d58
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a721
jmp 0x10174d9
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10174d0
test byte [eax + 0x1c], 4
je 0x10174d0
push edi
push 0x1003df8
push 0x1003d58
push 0x2c
jmp 0x101745e
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10174d0
test byte [eax + 0x1c], 4
je 0x10174d0
push edi
push 0x1003e28
push 0x1003d58
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a721
jmp 0x10174d0
mov eax, dword [0x1029018]
cmp eax, esi
je 0x10174d0
test byte [eax + 0x1c], 4
je 0x10174d0
push 0x1003d58
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6cf
jmp 0x10174d0
xor edi, edi
jmp 0x10174d0
call edi
test eax, eax
jle 0x10174a2
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x10174d0
test byte [eax + 0x1c], 4
je 0x10174d0
push edi
push 0x1003d58
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6f5
jmp 0x10174d0
mov edi, 0x80070057
cmp dword [ebp - 0x668], 0
je 0x10174e5
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x674], 0
je 0x1017500
mov ecx, dword [ebp - 0x66c]
lea eax, [ebp - 0x674]
push eax
call fcn.010169ad
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a217
leave
ret 4