Function at 0x46a3e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b6c1
mov eax, dword fs:[0]
push eax
sub esp, 0x8f8
mov eax, dword [0x5f11e4]
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 dword [ebp - 0x904], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x46a7be
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push 0xfde9
call edi
cmp eax, 1
jle 0x46a7be
mov ecx, dword [ebp - 0x904]
push esi
call fcn.0046a7f0
cmp al, 1
je 0x46a7ba
push 0x104
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.00504ee0
lea eax, [ebp - 0x154]
push ebx
push eax
call fcn.0045dbf0
push 1
push 0x5c41ec
lea eax, [ebp - 0x154]
push 0x104
push eax
call fcn.00519d15
push 3
push 0x5c5250
lea eax, [ebp - 0x154]
push 0x104
push eax
call fcn.00519d15
add esp, 0x34
mov dword [ebp - 0x66c], 0xf
mov dword [ebp - 0x670], ebx
mov byte [ebp - 0x680], bl
cmp byte [ebp - 0x154], bl
jne 0x46a4c5
xor ecx, ecx
jmp 0x46a4d9
lea ecx, [ebp - 0x154]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46a4d0
sub ecx, edx
push ecx
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x680]
call fcn.00448910
push 2
push 0x5c53ac
lea ecx, [ebp - 0x680]
mov dword [ebp - 4], 0
call fcn.00445bf0
push 0x208
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.00504ee0
push 0x208
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.00504ee0
add esp, 0x18
lea ecx, [ebp - 0x668]
cmp dword [ebp - 0x66c], 0x10
lea eax, [ebp - 0x680]
cmovae eax, dword [ebp - 0x680]
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call edi
push 0x104
lea eax, [ebp - 0x460]
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call edi
lea eax, [ebp - 0x900]
push eax
lea eax, [ebp - 0x668]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46a597
mov ebx, 5
jmp 0x46a79c
push 0x5c3d00
lea ecx, [ebp - 0x698]
call fcn.0044bd60
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp word [ebp - 0x8d4], 0
jne 0x46a5bf
xor eax, eax
jmp 0x46a5df
lea eax, [ebp - 0x8d4]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46a5d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x8d4]
push eax
lea ecx, [ebp - 0x698]
call fcn.0044c2c0
cmp word [ebp - 0x460], 0
jne 0x46a600
xor ecx, ecx
jmp 0x46a61f
lea ecx, [ebp - 0x460]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46a610
sub ecx, edx
sar ecx, 1
push ecx
push 0
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x698]
call fcn.0046b140
cmp eax, 0xffffffff
jne 0x46a653
lea eax, [ebp - 0x900]
push eax
push edi
call esi
test eax, eax
jne 0x46a5b1
lea ebx, [eax + 5]
jmp 0x46a78a
push 0
push 0x5c4cf8
lea ecx, [ebp - 0x698]
call fcn.0046b020
push eax
push 0
lea eax, [ebp - 0x6b0]
push eax
lea ecx, [ebp - 0x698]
call fcn.00466a70
push 0x40
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 2
push 0
push eax
call fcn.00504ee0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [ebp - 0x50]
add esp, 0xc
lea eax, [ebp - 0x6b0]
cmp dword [ebp - 0x69c], 8
cmovae eax, dword [ebp - 0x6b0]
push 0
push 0
push 0x40
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
mov ecx, dword [ebp - 0x904]
lea eax, [ebp - 0x50]
push eax
call fcn.0046a7f0
cmp al, 1
je 0x46a77f
push 0x104
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.00504ee0
add esp, 0xc
lea ecx, [ebp - 0x258]
cmp dword [ebp - 0x684], 8
lea eax, [ebp - 0x698]
cmovae eax, dword [ebp - 0x698]
push 0
push 0
push 0x104
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 1
push 0x5c41ec
lea eax, [ebp - 0x154]
push 0x104
push eax
call fcn.00519d15
lea ecx, [ebp - 0x258]
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46a740
sub ecx, edx
lea eax, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x154]
push 0x104
push eax
call fcn.00519d15
mov ecx, dword [ebp - 0x904]
lea eax, [ebp - 0x154]
add esp, 0x10
push 1
push 0
push 0
push eax
call fcn.00466de0
mov ebx, eax
lea ecx, [ebp - 0x6b0]
call fcn.0044bd20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x698]
call fcn.0044bd20
mov eax, dword [ebp - 0x66c]
cmp eax, 0x10
jb 0x46a7ba
inc eax
lea ecx, [ebp - 0x680]
push eax
push dword [ebp - 0x680]
call fcn.00445e20
mov eax, ebx
jmp 0x46a7c3
mov eax, 4
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.004feb45
mov esp, ebp
pop ebp
ret 4