Function at 0x10173410
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x38
call fcn.101d14f0
mov eax, dword [0x10274398]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push esi
cmp dword [ebp + 8], 0
je 0x10173434
cmp dword [ebp + 0xc], 0
jne 0x10173446
call fcn.101d5432
mov dword [eax], 0x16
xor eax, eax
jmp 0x1017386c
call fcn.101d5432
mov dword [eax], 0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10173765
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.101d3d10
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1017347b
cmp dword [ebp - 4], 0x7ffffffc
jbe 0x1017348d
call fcn.101d5432
mov dword [eax], 2
xor eax, eax
jmp 0x1017386c
push 0x354
call fcn.101d2044
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x101734b9
call fcn.101d5432
mov dword [eax], 0xc
xor eax, eax
jmp 0x1017386c
push 0x354
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.101d19d0
add esp, 0xc
mov eax, 1
test eax, eax
je 0x10173690
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0xfde9
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jg 0x1017352e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
je 0x10173530
jmp 0x10173556
mov dword [ebp - 0xc], 0
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x18], eax
xor edx, edx
jne 0x101734f9
cmp dword [ebp - 0x18], 0
jle 0x101735bc
mov eax, dword [ebp - 0x18]
lea eax, [eax + eax + 4]
call fcn.101d8550
mov dword [ebp - 0x30], esp
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x101735ba
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.101d1bfb
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
call fcn.101d5432
mov dword [eax], 0x16
xor eax, eax
jmp 0x1017386c
jmp 0x10173607
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
lea eax, [edx + edx + 4]
call fcn.101d8550
mov dword [ebp - 0x34], esp
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], 0
jmp 0x101735e9
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x10]
jae 0x10173607
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 0x14]
movsx cx, byte [eax]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
mov word [eax + edx*2], cx
jmp 0x101735e0
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x2a
je 0x10173670
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x2f
je 0x10173659
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x5c
je 0x10173659
push 0x102484a0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.101d49ed
add esp, 8
jmp 0x10173670
push 0x101f1938
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx*2]
push ecx
call fcn.101d49ed
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov dword [ecx + 0x250], eax
jmp 0x1017372c
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 4]
movsx eax, byte [edx - 1]
cmp eax, 0x2a
je 0x10173711
mov eax, dword [ebp - 4]
add eax, 3
call fcn.101d8550
mov dword [ebp - 0x38], esp
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.101d7a60
add esp, 8
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 4]
movsx edx, byte [ecx - 1]
cmp edx, 0x2f
je 0x101736f7
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 4]
movsx ecx, byte [eax - 1]
cmp ecx, 0x5c
je 0x101736f7
push 0x1024849c
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 4]
push edx
call fcn.101d7a60
add esp, 8
jmp 0x1017370b
push 0x10248498
mov eax, dword [ebp - 0x1c]
add eax, dword [ebp - 4]
push eax
call fcn.101d7a60
add esp, 8
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
mov dword [ecx + 0x250], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp dword [eax + 0x250], 0xffffffff
jne 0x10173763
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.101d1bfb
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
call fcn.101d5432
mov dword [eax], 0x16
xor eax, eax
jmp 0x1017386c
jmp 0x10173788
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10173788
xor eax, eax
jmp 0x1017386c
mov eax, 1
test eax, eax
je 0x10173835
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, 0x2c
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
movzx edx, word [ecx + eax*2]
test edx, edx
je 0x101737c9
cmp dword [ebp - 0x24], 0xff
jae 0x101737c9
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x101737a7
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
push 0
push 0
push 0x100
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, 0x254
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10173833
mov dword [ebp - 0x28], 0
jmp 0x10173811
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp - 0x24]
jae 0x10173833
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x20]
mov dl, byte [esi + edx*2]
mov byte [eax + ecx + 0x254], dl
jmp 0x10173808
jmp 0x10173856
push 0xff
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 0x2c
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add eax, 0x254
push eax
call fcn.101d65a0
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov byte [edx + 0x353], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 0x254
lea esp, [ebp - 0x3c]
pop esi
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.101d14d7
mov esp, ebp
pop ebp
ret