Function at 0x4165e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4b2a8c]
xor eax, esp
mov dword [esp + 0x150], eax
push ebx
push esi
push edi
call fcn.00405680
movzx edx, word [0x260dd88]
mov edi, eax
movzx eax, word [edi + 0x20c]
movzx ecx, word [edi + 0x20a]
shl eax, 4
lea ebx, [eax + ecx + 0x4b9000]
mov eax, dword [0x260de70]
push 0
lea ecx, [edx + eax + 0x4b9000]
push 0
push ecx
call fcn.00405f50
movzx edx, word [0x4b8be8]
add esp, 0xc
push edx
mov esi, 0x10fff0
mov dword [esp + 0x14], eax
call fcn.004057b0
mov esi, eax
sub eax, 0x4b83c0
sar eax, 4
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebx], 0x46696e64
call fcn.004074f0
add edi, 0x214
mov dword [esp + 0x14], edi
mov edx, edi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x416680
mov cl, byte [0x260dd84]
mov al, cl
mov dl, cl
and dl, 0x3f
mov byte [esi + 8], cl
cmp dl, 0x3f
jne 0x4166a4
and al, 0xf7
mov byte [esi + 8], al
mov al, byte [esi + 8]
cmp al, 8
sete byte [esp + 0xf]
test al, 8
je 0x4166cc
mov eax, edi
call fcn.00407550
mov ecx, dword [esp + 0x10]
mov edi, eax
call fcn.00406400
test al, al
jne 0x4166cc
and byte [esi + 8], 0xf7
cmp byte [esp + 0xf], 0
jne 0x41674d
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x41674d
jmp 0x4166f0
movzx eax, byte [esi + 8]
mov cl, byte [esp + 0x18]
test al, 8
je 0x416701
test cl, 0x10
je 0x416729
test al, 2
jne 0x41670a
test cl, 2
jne 0x416729
test al, 4
jne 0x416713
test cl, 4
jne 0x416729
test al, 0x10
jne 0x41671c
test cl, 0x10
jne 0x416729
lea edi, [esp + 0x18]
call fcn.00407d50
test eax, eax
jne 0x41674d
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4166f0
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esi + 0xc], 0xffffffff
cmp dword [esi + 0xc], 0xffffffff
je 0x4167b8
mov dl, byte [esp + 0x18]
and dl, 0x3f
lea esi, [esp + 0x18]
mov byte [ebx + 0x15], dl
call fcn.00407db0
lea eax, [ebx + 0x16]
push eax
lea ecx, [ebx + 0x18]
push ecx
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
mov eax, dword [esp + 0x38]
mov ecx, esi
mov dword [ebx + 0x1a], eax
call fcn.00406750
lea edx, [ebx + 0x1e]
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x416790
xor ecx, ecx
mov word [0x260dd80], cx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00482caa
mov esp, ebp
pop ebp
ret
test byte [esi + 8], 8
je 0x416801
mov eax, dword [esp + 0x14]
mov byte [ebx + 0x15], 8
mov dword [ebx + 0x1a], 0
call fcn.00407550
lea edx, [ebx + 0x1e]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x4167d5
and byte [esi + 8], 0xf7
xor edx, edx
mov word [0x260dd80], dx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x150]
xor ecx, esp
call fcn.00482caa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x15c]
or word [0x260ddac], 1
pop edi
pop esi
pop ebx
mov eax, 0x12
xor ecx, esp
mov word [0x260dd80], ax
call fcn.00482caa
mov esp, ebp
pop ebp
ret