Function at 0x46dd40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6ac], ecx
xor eax, eax
mov word [ebp - 0x414], ax
push 0x40e
push 0
lea ecx, [ebp - 0x412]
push ecx
call fcn.004d43c0
add esp, 0xc
push 0x208
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x414]
push eax
call fcn.004dc6cf
add esp, 0xc
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x668], ecx
mov edx, dword [ebp - 0x668]
add edx, 2
mov dword [ebp - 0x69c], edx
mov eax, dword [ebp - 0x668]
mov cx, word [eax]
mov word [ebp - 0x682], cx
add dword [ebp - 0x668], 2
cmp word [ebp - 0x682], 0
jne 0x46ddab
mov edx, dword [ebp - 0x668]
sub edx, dword [ebp - 0x69c]
sar edx, 1
mov dword [ebp - 0x6a0], edx
mov eax, dword [ebp - 0x6a0]
movzx ecx, word [ebp + eax*2 - 0x416]
cmp ecx, 0x5c
je 0x46de09
push 1
push 0x51b3e0
lea edx, [ebp - 0x414]
push edx
call fcn.004de8f9
add esp, 0xc
mov eax, 2
imul ecx, eax, 0x207
mov dword [ebp - 0x690], ecx
cmp dword [ebp - 0x690], 0x410
jae 0x46de28
jmp 0x46de2d
call fcn.004d1984
xor edx, edx
mov eax, dword [ebp - 0x690]
mov word [ebp + eax - 0x414], dx
push 1
push 0x51b3e4
lea ecx, [ebp - 0x414]
push ecx
call fcn.004de8f9
add esp, 0xc
mov dword [ebp - 0x66c], 0
lea edx, [ebp - 0x664]
push edx
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x680], eax
cmp dword [ebp - 0x680], 0xffffffff
jne 0x46de87
xor eax, eax
jmp 0x46e03a
cmp dword [ebp - 0x66c], 0
jne 0x46df34
mov dword [ebp - 0x674], 0x51b3e8
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x670], ecx
mov edx, dword [ebp - 0x670]
mov ax, word [edx]
mov word [ebp - 0x684], ax
mov ecx, dword [ebp - 0x674]
cmp ax, word [ecx]
jne 0x46df10
cmp word [ebp - 0x684], 0
je 0x46df04
mov edx, dword [ebp - 0x670]
mov ax, word [edx + 2]
mov word [ebp - 0x686], ax
mov ecx, dword [ebp - 0x674]
cmp ax, word [ecx + 2]
jne 0x46df10
add dword [ebp - 0x670], 4
add dword [ebp - 0x674], 4
cmp word [ebp - 0x686], 0
jne 0x46deaa
mov dword [ebp - 0x694], 0
jmp 0x46df1b
sbb edx, edx
or edx, 1
mov dword [ebp - 0x694], edx
mov eax, dword [ebp - 0x694]
mov dword [ebp - 0x6a4], eax
cmp dword [ebp - 0x6a4], 0
je 0x46dfd0
mov dword [ebp - 0x67c], 0x51b3ec
lea ecx, [ebp - 0x638]
mov dword [ebp - 0x678], ecx
mov edx, dword [ebp - 0x678]
mov ax, word [edx]
mov word [ebp - 0x688], ax
mov ecx, dword [ebp - 0x67c]
cmp ax, word [ecx]
jne 0x46dfb0
cmp word [ebp - 0x688], 0
je 0x46dfa4
mov edx, dword [ebp - 0x678]
mov ax, word [edx + 2]
mov word [ebp - 0x68a], ax
mov ecx, dword [ebp - 0x67c]
cmp ax, word [ecx + 2]
jne 0x46dfb0
add dword [ebp - 0x678], 4
add dword [ebp - 0x67c], 4
cmp word [ebp - 0x68a], 0
jne 0x46df4a
mov dword [ebp - 0x698], 0
jmp 0x46dfbb
sbb edx, edx
or edx, 1
mov dword [ebp - 0x698], edx
mov eax, dword [ebp - 0x698]
mov dword [ebp - 0x6a8], eax
cmp dword [ebp - 0x6a8], 0
jne 0x46dfe1
mov ecx, dword [ebp - 0x66c]
add ecx, 1
mov dword [ebp - 0x66c], ecx
jmp 0x46e00f
mov edx, dword [ebp - 0x66c]
add edx, 1
mov dword [ebp - 0x66c], edx
mov eax, dword [ebp - 0x664]
and eax, 0x10
je 0x46e00f
mov ecx, dword [ebp - 0x680]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x46e03a
lea edx, [ebp - 0x664]
push edx
mov eax, dword [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46de87
mov ecx, dword [ebp - 0x680]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret 4