Function at 0x466970
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a47d
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x4b31cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x280], ebx
mov eax, dword [ebx]
mov edi, dword [ebp + 8]
push dword [eax + 4]
call fcn.00418b90
mov eax, dword [ebx]
push 0x5c
push edi
mov dword [eax + 4], eax
mov eax, dword [ebx]
mov dword [eax], eax
mov eax, dword [ebx]
mov dword [eax + 8], eax
mov dword [ebx + 4], 0
call fcn.0046f665
add esp, 8
test eax, eax
je 0x4669e2
add eax, 2
mov dword [ebp - 0x264], eax
jmp 0x4669ea
mov eax, edi
mov dword [ebp - 0x264], edi
push 0x2e
push eax
call fcn.0046f665
mov ebx, eax
add esp, 8
mov dword [ebp - 0x26c], ebx
mov esi, ebx
test ebx, ebx
je 0x466a3d
cmp ebx, edi
jbe 0x466a2e
mov ebx, edi
lea esp, [esp]
movzx eax, word [esi - 2]
push eax
call fcn.004704d7
add esp, 4
test eax, eax
je 0x466a28
add esi, 0xfffffffe
cmp esi, ebx
ja 0x466a10
mov ebx, dword [ebp - 0x26c]
cmp word [esi - 2], 0x2d
lea eax, [esi - 2]
mov esi, ebx
cmove esi, eax
jmp 0x466a51
push 0
push dword [ebp - 0x264]
call fcn.0046f665
mov ebx, eax
add esp, 8
mov esi, ebx
mov eax, esi
sub eax, edi
sar eax, 1
push eax
lea eax, [ebp - 0x270]
push edi
push eax
call fcn.00433af0
push ebx
mov dword [ebp - 4], 0
call fcn.00468d70
push eax
push ebx
call fcn.00468f00
mov dword [ebp - 0x278], eax
push 0x4940e8
mov byte [ebp - 4], 1
call fcn.00468d70
push eax
push 0x4940e8
call fcn.00468f00
add esp, 0x24
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x268]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x284]
push eax
lea ecx, [ebp - 0x270]
call fcn.00468a70
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x274]
push ecx
mov ecx, eax
call fcn.00468a70
mov ecx, dword [ebp - 0x284]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x466aea
call fcn.00468f40
mov ecx, dword [ebp - 0x268]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x466afd
call fcn.00468f40
mov ecx, dword [ebp - 0x278]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x466b10
call fcn.00468f40
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x274]
call fcn.004689b0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
je 0x466c31
sub esi, dword [ebp - 0x264]
lea edi, [ebp - 0x234]
sar esi, 1
lea edi, [edi + esi*2]
lea esp, [esp]
mov esi, edi
cmp word [esi], 0x2d
jne 0x466b84
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004704d7
add esp, 4
test eax, eax
je 0x466b84
lea esp, [esp]
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004704d7
add esp, 4
test eax, eax
jne 0x466b70
push ebx
push esi
call fcn.0046dac3
add esp, 8
test eax, eax
jne 0x466c0e
push edi
call fcn.00468d70
push eax
push edi
call fcn.00468f00
add esp, 0xc
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x264]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x270]
call fcn.00468a70
mov ecx, dword [ebp - 0x264]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x466bd8
call fcn.00468f40
movzx eax, byte [0x4ba720]
mov ecx, dword [ebp - 0x280]
push eax
lea eax, [ebp - 0x26c]
push eax
push 0
lea eax, [ebp - 0x28c]
push eax
call fcn.00464ac0
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 7
test ecx, ecx
je 0x466c0e
call fcn.00468f40
mov esi, dword [ebp - 0x27c]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x466b50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x274]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x466c44
call fcn.00468f40
mov ecx, dword [ebp - 0x270]
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x466c5a
call fcn.00468f40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret 4