Function at 0x1016e01
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x67c
mov eax, dword [0x1028004]
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 0x10173a9
cmp word [edi], bx
je 0x10173a9
push edi
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.010087e8
mov edi, eax
test edi, edi
jge 0x1016eef
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173de
test byte [eax + 0x1c], 4
je 0x10173de
push edi
push 0x1003bdc
push 0x1003d30
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a697
jmp 0x10173de
lea eax, [ebp - 0x670]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bce6
mov edi, eax
test edi, edi
jge 0x1016f32
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173de
test byte [eax + 0x1c], 4
je 0x10173de
push edi
push 0x1003e30
push 0x1003d30
push 0x26
jmp 0x1016edf
mov esi, dword [ebp - 0x670]
test esi, esi
jbe 0x1016f55
cmp word [ebp + esi*2 - 0x20e], 0x5c
jne 0x1016f55
push 0
dec esi
pop eax
mov word [ebp + esi*2 - 0x20c], ax
jne 0x1016f3c
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
test eax, eax
jne 0x1016f97
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x1016f8d
test byte [eax + 0x1c], 4
je 0x1016f8d
push 0x1003d30
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a63f
mov edi, 0x80070057
jmp 0x10173de
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.010087e8
mov edi, eax
test edi, edi
jge 0x1016ff5
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173de
test byte [eax + 0x1c], 4
je 0x10173de
push edi
push 0x1003bdc
push 0x1003d30
push 0x28
jmp 0x1016edf
mov ecx, dword [ebp - 0x66c]
push 1
push 0
push dword [ebp - 0x67c]
lea eax, [ebp - 0x20c]
push eax
call fcn.01016a91
mov edi, eax
test edi, edi
jge 0x1017268
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173de
test byte [eax + 0x1c], 4
je 0x10173de
push edi
push 0x1003e00
push 0x1003d30
push 0x29
jmp 0x1016edf
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 0x101708d
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x678], eax
jmp 0x10170a9
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x10172a1
dec esi
mov dword [ebp - 0x670], esi
cmp dword [ebp - 0x678], 0
je 0x101714e
mov ecx, dword [ebp - 0x66c]
lea eax, [ebp - 0x638]
push eax
call fcn.010167de
test eax, eax
jne 0x101712d
mov word [ebp + esi*2 - 0x20c], ax
lea eax, [ebp - 0x638]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.01016a37
mov edi, eax
test edi, edi
jl 0x10172f0
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.01016a91
mov edi, eax
test edi, edi
jl 0x1017319
test byte [ebp - 0x664], 0x10
jne 0x10171a4
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 0x10170b0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x1017370
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 0x1017216
test dx, dx
je 0x10171a0
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1017216
add eax, 4
add ecx, 4
test dx, dx
jne 0x1017176
xor eax, eax
jmp 0x101721b
mov eax, dword [0x1028018]
mov esi, 0x1028018
cmp eax, esi
je 0x10171d1
test byte [eax + 0x1c], 2
je 0x10171d1
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003d30
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bfba
lea eax, [ebp - 0x670]
push eax
push ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0100bce6
mov ecx, dword [ebp - 0x66c]
mov edi, eax
lea eax, [ebp - 0x674]
push eax
push dword [ebp - 0x668]
call fcn.010169e0
test eax, eax
je 0x1017349
and dword [ebp - 0x668], 0
mov esi, dword [ebp - 0x670]
jmp 0x1017268
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x101736c
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.01016861
mov dword [ebp - 0x668], eax
lea eax, [esi + 3]
cmp eax, ebx
jbe 0x1017047
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x1017297
test byte [eax + 0x1c], 4
je 0x1017297
push 0x1003d30
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a63f
mov edi, 0x8007007a
jmp 0x10173ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10172b5
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173b7
test byte [eax + 0x1c], 4
je 0x10173b7
push edi
lea ecx, [ebp - 0x20c]
push ecx
push 0x1003d30
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a697
jmp 0x10173b7
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173ae
test byte [eax + 0x1c], 4
je 0x10173ae
push edi
push 0x1003dd0
push 0x1003d30
push 0x2c
jmp 0x101733c
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173ae
test byte [eax + 0x1c], 4
je 0x10173ae
push edi
push 0x1003e00
push 0x1003d30
push 0x2d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a697
jmp 0x10173ae
mov eax, dword [0x1028018]
cmp eax, esi
je 0x10173ae
test byte [eax + 0x1c], 4
je 0x10173ae
push 0x1003d30
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a63f
jmp 0x10173ae
xor edi, edi
jmp 0x10173ae
call edi
test eax, eax
jle 0x1017380
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [0x1028018]
cmp eax, 0x1028018
je 0x10173ae
test byte [eax + 0x1c], 4
je 0x10173ae
push edi
push 0x1003d30
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100bf8e
jmp 0x10173ae
mov edi, 0x80070057
cmp dword [ebp - 0x668], 0
je 0x10173c3
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x674], 0
je 0x10173de
mov ecx, dword [ebp - 0x66c]
lea eax, [ebp - 0x674]
push eax
call fcn.0101688b
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100a18b
leave
ret 4