Function at 0x10016d80
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x460
push ebx
push ebp
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x36c]
xor esi, esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x36c]
push eax
push ecx
push 5
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], 0x104
call fcn.100163a0
add esp, 0xc
test eax, eax
je 0x100170c6
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
lea edi, [esp + 0x128]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x128]
and ecx, 3
mov ebp, dword [sym.imp.MSVCRT.dll__access]
rep stosb byte es:[edi], al
lea edi, [esp + 0x36c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x10031eec
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x12c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
test eax, eax
jne 0x10016f45
lea ecx, [esp + 0x128]
lea edx, [esp + 0x24]
push ecx
push str._s.
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10016f45
test byte [esp + 0x22c], 0x10
je 0x10016f27
cmp byte [esp + 0x258], 0x2e
je 0x10016f27
lea edx, [esp + 0x258]
lea eax, [esp + 0x128]
push edx
push eax
lea ecx, [esp + 0x2c]
push str._s_s_
push ecx
call ebx
lea edx, [esp + 0x34]
push 0
push edx
call ebp
add esp, 0x18
test eax, eax
jne 0x10016f27
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], eax
inc edx
lea eax, [esp + 0x14]
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10016f27
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push 0
push eax
push ecx
mov ecx, dword [esp + 0x480]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
lea edx, [esp + 0x22c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10016e95
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x18]
xor eax, eax
mov edx, ecx
lea edi, [esp + 0x128]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
lea edx, [esp + 0x128]
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esp + 0x36c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.my_received_files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x128]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push edi
push eax
call ebp
add esp, 8
test eax, eax
jne 0x100170b7
lea ecx, [esp + 0x128]
lea edx, [esp + 0x24]
push ecx
push str._s.
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0x22c]
lea ecx, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x100170b7
test byte [esp + 0x22c], 0x10
je 0x10017099
cmp byte [esp + 0x258], 0x2e
je 0x10017099
lea edx, [esp + 0x258]
lea eax, [esp + 0x128]
push edx
push eax
lea ecx, [esp + 0x2c]
push str._s_shistory
push ecx
call ebx
lea edx, [esp + 0x34]
push edi
push edx
call ebp
add esp, 0x18
test eax, eax
jne 0x10017099
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
inc edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], edx
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov dword [esp + 0x20], edi
call fcn.10016000
add esp, 0xc
test eax, eax
je 0x10017099
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x480]
lea eax, [esp + 0x30]
push edx
push eax
push ecx
call fcn.10016090
add esp, 0x18
lea edx, [esp + 0x22c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10017009
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x460
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x460
ret