Function at 0x4d7094
Capabilities:
Enumerate files on windows

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x3b0
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov r13, r8
mov rbp, rdx
mov rbx, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x4d70de
test rcx, rcx
je 0x4d70de
call qword [sym.imp.USER32.dll_DestroyMenu]
test eax, eax
je 0x4d70de
and qword [rbx], 0
call qword [sym.imp.USER32.dll_CreatePopupMenu]
mov qword [rbx], rax
and dword [rbx + 0x20], 0
lea r9, [0x0079b3a8]
mov edi, 0x8fc
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_AppendMenuW]
mov r12, qword [rsp + 0x400]
mov rax, qword [r12 + 0x20]
mov rcx, qword [r12 + 0x28]
sub rax, rcx
cmp rax, 8
jne 0x4d713d
mov rax, qword [rcx]
cmp rax, qword [str.Disabled]
jne 0x4d713d
mov r8d, 8
mov edx, edi
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_CheckMenuItem]
lea r8, str.EmoPacks.xml
lea rdx, [0x0085e988]
lea rcx, [rsp + 0xd8]
call fcn.00402658
nop
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.00401f00
lea rdx, [rsp + 0x160]
mov rcx, qword [rax + 0x48]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rsi, rax
lea rax, [rsp + 0x108]
mov r15d, 0x100
mov rcx, qword [rsp + 0x150]
cmp rcx, rax
je 0x4d71c1
test rcx, rcx
je 0x4d71c1
mov rdx, qword [rsp + 0x108]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
cmp rdx, r15
jbe 0x4d71bb
call fcn.006a4944
jmp 0x4d71c1
call fcn.006a3610
nop
lea rax, [rsp + 0xd8]
mov rcx, qword [rsp + 0x100]
cmp rcx, rax
je 0x4d71f7
test rcx, rcx
je 0x4d71f7
mov rdx, qword [rsp + 0xd8]
sub rdx, rcx
cmp rdx, r15
jbe 0x4d71f2
call fcn.006a4944
jmp 0x4d71f7
call fcn.006a3610
cmp rsi, 0xffffffffffffffff
je 0x4d73ec
lea r8, [rsp + 0x3f8]
lea rdx, [rsp + 0x18c]
lea rcx, [rsp + 0x30]
call fcn.004023b4
nop
mov edx, 0x2e
or r8, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
call fcn.0044725c
mov r9, rax
xor r8d, r8d
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x30]
call fcn.00421328
nop
lea rcx, [rsp + 0x30]
cmp rax, rcx
je 0x4d7265
mov r8, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
lea rcx, [rsp + 0x30]
call fcn.00406d38
nop
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0xd0]
cmp rcx, rax
je 0x4d72a2
test rcx, rcx
je 0x4d72a2
mov rax, qword [rsp + 0x88]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r15
jbe 0x4d729d
call fcn.006a4944
jmp 0x4d72a2
call fcn.006a3610
inc dword [rbx + 0x20]
mov eax, dword [rbx + 0x20]
add eax, 0x8fc
movsxd r8, eax
mov r9, qword [rsp + 0x78]
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_AppendMenuW]
mov rdx, r12
lea rcx, [rsp + 0x88]
call fcn.00401f00
mov rcx, qword [rax + 0x40]
mov rdx, qword [rax + 0x48]
mov r9, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
sub r9, r8
sar r9, 1
sub rcx, rdx
sar rcx, 1
cmp r9, rcx
jne 0x4d732a
mov rcx, r8
test r9, r9
je 0x4d731f
movzx eax, word [rdx]
cmp word [rcx], ax
jne 0x4d7313
add rcx, 2
add rdx, 2
sub r9, 1
jne 0x4d72fb
jmp 0x4d731f
cmp word [rcx], ax
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x4d7321
xor eax, eax
test eax, eax
jne 0x4d732a
mov dil, 1
jmp 0x4d732d
xor dil, dil
lea rax, [rsp + 0x88]
mov rcx, qword [rsp + 0xd0]
cmp rcx, rax
je 0x4d7374
test rcx, rcx
je 0x4d7374
mov rax, qword [rsp + 0x88]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
cmp rdx, r15
jbe 0x4d736a
call fcn.006a4944
mov r8, qword [rsp + 0x78]
jmp 0x4d7374
call fcn.006a3610
mov r8, qword [rsp + 0x78]
test dil, dil
je 0x4d7396
mov edx, dword [rbx + 0x20]
add edx, 0x8fc
mov r8d, 8
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_CheckMenuItem]
mov r8, qword [rsp + 0x78]
lea rax, [rsp + 0x30]
cmp r8, rax
je 0x4d73ca
test r8, r8
je 0x4d73ca
mov rdx, qword [rsp + 0x30]
sub rdx, r8
sar rdx, 1
add rdx, rdx
cmp rdx, r15
jbe 0x4d73c2
mov rcx, r8
call fcn.006a4944
jmp 0x4d73ca
mov rcx, r8
call fcn.006a3610
lea rdx, [rsp + 0x160]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d7201
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov byte [rsp + 0x20], 0
lea r9, [0x0087eb80]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call fcn.004d6414
cmp dword [rbx + 0x20], 0
jle 0x4d7430
and qword [rsp + 0x28], 0
mov rax, qword [r13]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 4]
mov r8d, dword [rbp]
mov edx, 2
mov rcx, rbx
call fcn.00406524
mov edi, 0x400
mov r8d, edi
xor edx, edx
mov rcx, rbx
call fcn.004d656c
mov r8d, edi
xor edx, edx
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_RemoveMenu]
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rsi
ret