Function at 0x21651ff20
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb8
xor eax, eax
lea rsi, [rsp + 0x30]
mov rbx, rcx
mov ecx, 0x10
mov r15, rdx
mov rdi, rsi
mov r13, r8
mov r12d, r9d
rep stosq qword [rdi], rax
test rbx, rbx
je 0x21651ff5d
cmp word [rbx], 0x5a4d
je 0x21651ff80
xor r12d, r12d
mov rax, r12
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
cmp dword [rdi], 0x4550
jne 0x21651ff5d
mov edx, 0x34be08c6
lea rcx, [0x216602ba0]
call fcn.21651f890
test byte [rdi + 0x17], 0x20
je 0x21651ff5d
mov edx, 0x649101c6
lea rcx, [0x216602b80]
call fcn.21651f890
movsxd rdx, dword [rbx + 0x3c]
add rdx, rbx
movdqu xmm0, xmmword [rdx + 0x88]
movdqu xmm1, xmmword [rdx + 0x98]
movdqu xmm2, xmmword [rdx + 0xa8]
movdqu xmm3, xmmword [rdx + 0xb8]
movups xmmword [rsi], xmm0
movdqu xmm4, xmmword [rdx + 0xc8]
movdqu xmm5, xmmword [rdx + 0xd8]
movdqu xmm0, xmmword [rdx + 0xe8]
movups xmmword [rsi + 0x10], xmm1
mov eax, dword [rsp + 0x34]
movdqu xmm1, xmmword [rdx + 0xf8]
movups xmmword [rsi + 0x20], xmm2
movups xmmword [rsi + 0x30], xmm3
movups xmmword [rsi + 0x40], xmm4
movups xmmword [rsi + 0x50], xmm5
movups xmmword [rsi + 0x60], xmm0
movups xmmword [rsi + 0x70], xmm1
test eax, eax
je 0x21651ff5d
movsxd rax, dword [rsp + 0x30]
test eax, eax
je 0x21651ff5d
lea rsi, [rax + rbx]
mov edx, 0x1645caa2
lea rcx, [0x216602ac0]
call fcn.21651f890
movsxd rbp, dword [rsi + 0x1c]
lea rax, [0x21658c660]
add rbp, rbx
cmp r15, rax
je 0x21652014f
test r15, r15
je 0x216520071
cmp byte [r15], 0
je 0x21652014f
mov r13d, dword [rsi + 0x18]
test r13d, r13d
js 0x2165201a5
mov eax, dword [rbp]
xor edi, edi
mov dword [rsp + 0x28], eax
movsxd rax, dword [rsi + 0x20]
mov esi, dword [rax + rbx]
jmp 0x2165200e9
mov r9d, dword [rbp + 4]
add rbp, 4
mov edx, 1
test r14, r14
jne 0x21652017e
add esi, edx
cmp r15, r14
je 0x2165201bb
test r15, r15
je 0x2165200d8
test r14, r14
je 0x2165200d8
mov rdx, r14
mov rcx, r15
mov dword [rsp + 0x2c], r9d
call sub.msvcrt.dll_strcmp
mov r9d, dword [rsp + 0x2c]
test eax, eax
je 0x2165201bb
add edi, 1
cmp r13d, edi
jl 0x2165201a5
mov dword [rsp + 0x28], r9d
mov edx, 0x31ddfd06
lea rcx, [0x216602a80]
call fcn.21651f890
movsxd r8, esi
mov edx, 0x6755062
lea rcx, [0x216602a60]
lea r14, [r8 + rbx]
call fcn.21651f890
lea rdx, [0x21658c660]
test rax, rax
je 0x216520131
lea rdx, [rax + 0x10]
cmp qword [rax], 0
lea rax, [0x21658c660]
cmove rdx, rax
mov rcx, r14
call fcn.21651fe30
test eax, eax
je 0x216520090
mov r9d, dword [rsp + 0x28]
add r13d, 1
jmp 0x216520098
mov edx, 0x2cff3346
lea rcx, [0x216602860]
call fcn.21651f890
movsxd r12, dword [rbp + r13*4 - 4]
add r12, rbx
mov edx, 0x1bbdb722
lea rcx, [0x2166027e0]
call fcn.21651f890
jmp 0x21651ff60
xor eax, eax
cmp byte [r14], 0
lea rcx, [r14 + 1]
je 0x2165200a6
nop
lea rdx, [rcx + rax]
add rax, 1
cmp byte [rdx], 0
jne 0x216520190
lea edx, [rax + 1]
jmp 0x2165200a6
mov edx, 0x1bbdb722
lea rcx, [0x2166027e0]
call fcn.21651f890
jmp 0x21651ff5d
mov ecx, r12d
mov dword [rsp + 0x2c], r9d
call fcn.216519240
mov r9d, dword [rsp + 0x2c]
test al, al
jne 0x216520284
mov ecx, dword [0x21769db7c]
mov dword [rsp + 0x2c], r9d
call fcn.216519240
mov r9d, dword [rsp + 0x2c]
mov edx, 0x3b30ac22
lea rcx, [0x2166029e0]
mov dword [rsp + 0x2c], r9d
call fcn.21651f890
mov edx, 0x4f9ef986
lea rcx, [0x2166029a0]
call fcn.21651f890
mov edx, 0x5d42cde2
lea rcx, [0x216602980]
call fcn.21651f890
mov edx, 0x322a1ac6
lea rcx, [0x216602940]
call fcn.21651f890
mov edx, 0x3e4825a2
lea rcx, [0x216602900]
call fcn.21651f890
mov edx, 0x2d933e06
lea rcx, [0x2166028e0]
call fcn.21651f890
mov edx, 0x44caa362
lea rcx, [0x2166028a0]
call fcn.21651f890
mov ecx, r12d
call fcn.216519240
movsxd r9, dword [rsp + 0x2c]
test al, al
jne 0x2165202bc
movsxd r12, dword [rsp + 0x28]
add r12, rbx
jmp 0x216520168
mov ecx, dword [0x21769db7c]
mov dword [rsp + 0x2c], r9d
call fcn.216519240
mov r9d, dword [rsp + 0x2c]
test al, al
je 0x2165201ea
mov edx, 0xcad8a46
lea rcx, [0x216602a00]
call fcn.21651f890
mov r9d, dword [rsp + 0x2c]
jmp 0x2165201ea
lea r12, [r9 + rbx]
jmp 0x216520168