Function at 0x10110270
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.101704b0
mov eax, dword [0x101f2700]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10110515
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x10110515
call dword [sym.imp.MSVCR120.dll__errno]
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
jne 0x1011047d
mov esi, ebx
lea ecx, [esi + 1]
jmp 0x101102c0
mov al, byte [esi]
inc esi
test al, al
jne 0x101102c0
sub esi, ecx
je 0x1011046b
cmp esi, 0x7ffffffc
ja 0x1011046b
push 0x354
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [edi], eax
test eax, eax
jne 0x10110301
mov eax, dword [sym.imp.MSVCR120.dll__errno]
call eax
mov dword [eax], 0xc
jmp 0x10110521
push 0x354
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x10], 0xfde9
inc esi
push 0
push 0
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
test eax, eax
jg 0x10110390
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x1011035c
push 0
push 0
push esi
push ebx
push 0
push 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
jmp 0x1011035f
mov eax, dword [ebp - 8]
test eax, eax
jg 0x10110390
lea eax, [esi*2 + 4]
mov dword [ebp - 8], esi
call fcn.10170e20
mov edx, esp
xor ecx, ecx
mov dword [ebp - 0xc], edx
test esi, esi
je 0x101103d7
lea ecx, [ecx]
movsx ax, byte [ecx + ebx]
mov word [edx + ecx*2], ax
inc ecx
cmp ecx, esi
jb 0x10110380
jmp 0x101103d7
lea eax, [eax*2 + 4]
call fcn.10170e20
mov eax, dword [ebp - 8]
mov ecx, esp
push eax
push ecx
push esi
push ebx
push 0
push dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x101103d4
push dword [edi]
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [sym.imp.MSVCR120.dll__errno]
add esp, 4
mov dword [edi], 0
call eax
jmp 0x1011051b
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
dec eax
lea edx, [edx + eax*2]
movzx eax, word [edx - 2]
cmp eax, 0x2a
je 0x10110430
cmp eax, 0x2f
je 0x10110412
cmp eax, 0x5c
je 0x10110412
mov ecx, 0x101a3a88
sub edx, ecx
jmp 0x10110400
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10110400
jmp 0x10110430
mov ecx, 0x101a3a90
sub edx, ecx
lea esp, [esp]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x10110420
push dword [edi]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [edi]
mov dword [ecx + 0x250], eax
mov eax, dword [edi]
cmp dword [eax + 0x250], 0xffffffff
jne 0x10110492
push eax
call dword [sym.imp.MSVCR120.dll_free]
mov eax, dword [sym.imp.MSVCR120.dll__errno]
add esp, 4
mov dword [edi], 0
call eax
jmp 0x1011051b
mov eax, dword [sym.imp.MSVCR120.dll__errno]
call eax
mov dword [eax], 2
jmp 0x10110521
push eax
push dword [eax + 0x250]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10110521
mov eax, dword [edi]
xor esi, esi
cmp word [eax + 0x2c], si
lea ebx, [eax + 0x2c]
je 0x101104b0
nop
cmp esi, 0xff
jae 0x101104b0
inc esi
cmp word [ebx + esi*2], 0
jne 0x101104a0
push 0
push 0
push pe_nt_image_headers32
add eax, 0x254
inc esi
push eax
push esi
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x101104f1
xor edx, edx
test esi, esi
je 0x101104f1
lea esp, [esp]
mov ecx, dword [edi]
mov al, byte [ebx + edx*2]
mov byte [ecx + edx + 0x254], al
inc edx
cmp edx, esi
jb 0x101104e0
mov eax, dword [edi]
mov byte [eax + 0x353], 0
mov eax, dword [edi]
add eax, 0x254
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101704a0
mov esp, ebp
pop ebp
ret
call dword [sym.imp.MSVCR120.dll__errno]
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101704a0
mov esp, ebp
pop ebp
ret