Function at 0x46c65b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x52e030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], eax
mov cl, byte [edi]
test cl, cl
jne 0x46c75f
cmp dword [edi + 0x2a8], 0
je 0x46c877
test cl, cl
jne 0x46c75f
lea ebx, [edi + 0x298]
mov ecx, ebx
lea esi, [edi + 0x258]
call fcn.0046d213
push esi
call fcn.00431857
call fcn.0046d291
push esi
lea esi, [ebp - 0x20]
call fcn.00402b5c
cmp dword [edi + 0x28c], 0
jne 0x46c702
push 0x50bf8c
lea esi, [ebp - 0x58]
call fcn.00402b82
mov eax, esi
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043221c
lea ecx, [ebp - 0x20]
push ecx
call fcn.00431857
push 1
xor edi, edi
lea esi, [ebp - 0x74]
call fcn.00402efe
lea esi, [ebp - 0x58]
jmp 0x46c722
add edi, 0x27c
push edi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0043221c
lea ecx, [ebp - 0x20]
push ecx
call fcn.00431857
lea esi, [ebp - 0x74]
push 1
xor edi, edi
call fcn.00402efe
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x46c737
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x78]
lea ebx, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi + 0x254], eax
mov byte [esi], 1
push 1
xor edi, edi
lea esi, [ebp - 0x20]
call fcn.00402efe
mov edi, dword [ebp - 0x78]
jmp 0x46c786
lea ebx, [edi + 4]
push ebx
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46c786
push dword [edi + 0x254]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [edi + 0x254], 0xffffffff
cmp dword [edi + 0x254], 0xffffffff
jne 0x46c7c7
and dword [ebp - 0x10], 0
xor eax, eax
mov word [ebp - 0x20], ax
lea eax, [edi + 0x27c]
lea ebx, [ebp - 0x20]
mov byte [edi], 0
mov dword [ebp - 0xc], 7
call fcn.0042c022
mov esi, ebx
xor edi, edi
push 1
call fcn.00402efe
mov eax, dword [ebp - 0x7c]
mov edi, dword [ebp - 0x78]
jmp 0x46c67c
add edi, 0x30
push edi
lea esi, [ebp - 0x58]
mov dword [ebp - 0x80], edi
call fcn.00402b82
mov eax, esi
push eax
lea esi, [ebp - 0x3c]
call fcn.00402b5c
push 1
xor edi, edi
lea esi, [ebp - 0x58]
call fcn.00402efe
mov edi, dword [ebp - 0x78]
push edi
lea ecx, [ebp - 0x3c]
call fcn.004710d5
test al, al
jne 0x46c86f
push dword [ebp - 0x80]
lea esi, [ebp - 0x58]
call fcn.00402b82
mov eax, esi
push eax
lea eax, [ebp - 0x74]
push eax
add edi, 0x258
push edi
call fcn.0043221c
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00431857
push 1
xor edi, edi
lea esi, [ebp - 0x74]
call fcn.00402efe
push 1
lea esi, [ebp - 0x58]
call fcn.00402efe
test byte [ebx], 0x10
je 0x46c863
mov esi, dword [ebp - 0x78]
cmp byte [esi + 0x274], 0
je 0x46c85a
lea eax, [ebp - 0x3c]
push eax
lea eax, [esi + 0x298]
call fcn.0046d23f
test byte [esi + 0x278], 2
jmp 0x46c86d
mov eax, dword [ebp - 0x78]
test byte [eax + 0x278], 1
jne 0x46c889
lea esi, [ebp - 0x3c]
jmp 0x46c7b3
and dword [eax + 0x10], 0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
jmp 0x46c8a4
mov esi, dword [ebp - 0x7c]
lea eax, [ebp - 0x3c]
push eax
call fcn.00402b5c
push 1
xor edi, edi
lea esi, [ebp - 0x3c]
call fcn.00402efe
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475360
leave
ret 4