Function at 0x140050670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rdi
push r12
sub rsp, 0x50
mov rax, qword [0x14018e398]
xor ebx, ebx
mov r12d, ebx
mov edi, ebx
test rax, rax
je 0x140050d88
cmp qword [0x14018e3b0], rbx
je 0x140050d88
mov qword [r11 + 0x20], rbp
lea rdx, [r11 + 0x18]
mov qword [r11 - 0x20], rsi
mov r9d, 2
mov qword [r11 - 0x28], r13
xor r8d, r8d
mov qword [r11 - 0x30], r14
xor ecx, ecx
mov dword [rsp + 0x28], ebx
mov qword [r11 - 0x38], r15
mov dword [r11 + 0x18], ebx
mov dword [rsp + 0x20], 8
call rax
mov r8d, dword [rsp + 0x80]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x80]
mov rcx, rax
mov dword [rsp + 0x20], 8
mov r9d, 2
xor r8d, r8d
mov r14, rax
call qword [0x14018e398]
test eax, eax
jne 0x140050728
mov r12d, dword [r14]
jmp 0x14005073d
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, rbx
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x80]
mov r9d, 0x17
mov dword [rsp + 0x20], 8
xor r8d, r8d
mov dword [rsp + 0x80], ebx
xor ecx, ecx
call qword [0x14018e398]
cmp dword [sym.4yUlCM3HuVsHzW5CaCX.exe_WindowsVersion], 0x33
mov eax, dword [rsp + 0x80]
ja 0x1400507ad
cmp eax, 8
jb 0x1400507ad
add eax, 0xfffffff8
mov ecx, eax
movabs rax, 0x2492492492492493
mul rcx
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
lea eax, [rcx + rcx*2]
shl eax, 6
add eax, 8
mov dword [rsp + 0x80], eax
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov r8d, eax
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x80]
mov rcx, rax
mov dword [rsp + 0x20], 8
mov r9d, 0x17
xor r8d, r8d
mov r15, rax
call qword [0x14018e398]
test eax, eax
jne 0x1400507f4
add r12d, dword [r15]
jmp 0x140050809
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15, rbx
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x80]
mov r9d, 2
mov dword [rsp + 0x20], 2
xor r8d, r8d
mov dword [rsp + 0x80], ebx
xor ecx, ecx
call qword [0x14018e3b0]
mov r8d, dword [rsp + 0x80]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x80]
mov rcx, rax
mov dword [rsp + 0x20], 2
mov r9d, 2
xor r8d, r8d
mov rsi, rax
call qword [0x14018e3b0]
test eax, eax
jne 0x140050881
add r12d, dword [rsi]
jmp 0x140050896
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, rbx
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x80]
mov r9d, 0x17
mov dword [rsp + 0x20], 2
xor r8d, r8d
mov dword [rsp + 0x80], ebx
xor ecx, ecx
call qword [0x14018e3b0]
mov r8d, dword [rsp + 0x80]
mov edx, 4
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x80]
mov rcx, rax
mov dword [rsp + 0x20], 2
mov r9d, 0x17
xor r8d, r8d
mov rbp, rax
call qword [0x14018e3b0]
test eax, eax
jne 0x14005090f
add r12d, dword [rbp]
jmp 0x140050924
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rbp, rbx
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov edx, 4
mov eax, r12d
imul rbx, rax, 0xc8
mov r8, rbx
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r13, rax
call fcn.140131400
xor ebx, ebx
test r14, r14
je 0x140050a67
mov r8d, ebx
cmp dword [r14], ebx
jbe 0x140050a55
nop word [rax + rax]
mov eax, edi
inc edi
imul rdx, rax, 0xc8
mov eax, r8d
inc r8d
add rdx, r13
lea rcx, [rax + rax*4]
shl rcx, 5
mov dword [rdx], 0x11
mov dword [rdx + 4], 1
mov eax, dword [rcx + r14 + 0xc]
mov dword [rdx + 8], eax
movzx eax, word [rcx + r14 + 0x10]
mov dword [rdx + 0x1c], 1
ror ax, 8
movzx eax, ax
mov dword [rdx + 0x18], eax
mov eax, dword [rcx + r14 + 0x14]
mov dword [rdx + 0x20], eax
movzx eax, word [rcx + r14 + 0x18]
ror ax, 8
movzx eax, ax
mov dword [rdx + 0x30], eax
mov eax, dword [rcx + r14 + 8]
mov dword [rdx + 0x34], eax
mov eax, dword [rcx + r14 + 0x1c]
mov qword [rdx + 0x38], rax
mov rax, qword [rcx + r14 + 0x20]
mov qword [rdx + 0x40], rax
movups xmm0, xmmword [rcx + r14 + 0x28]
movups xmmword [rdx + 0x48], xmm0
movups xmm1, xmmword [rcx + r14 + 0x38]
movups xmmword [rdx + 0x58], xmm1
movups xmm0, xmmword [rcx + r14 + 0x48]
movups xmmword [rdx + 0x68], xmm0
movups xmm1, xmmword [rcx + r14 + 0x58]
movups xmmword [rdx + 0x78], xmm1
movups xmm0, xmmword [rcx + r14 + 0x68]
movups xmmword [rdx + 0x88], xmm0
movups xmm1, xmmword [rcx + r14 + 0x78]
movups xmmword [rdx + 0x98], xmm1
movups xmm0, xmmword [rcx + r14 + 0x88]
movups xmmword [rdx + 0xa8], xmm0
movups xmm1, xmmword [rcx + r14 + 0x98]
movups xmmword [rdx + 0xb8], xmm1
cmp r8d, dword [r14]
jb 0x140050970
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r14, qword [rsp + 0x38]
test r15, r15
je 0x140050b83
cmp dword [r15], 0
mov r8d, ebx
jbe 0x140050b71
mov eax, edi
inc edi
imul rdx, rax, 0xc8
mov eax, r8d
inc r8d
add rdx, r13
lea rcx, [rax + rax*2]
shl rcx, 6
mov dword [rdx], 0x12
mov dword [rdx + 4], 2
movups xmm0, xmmword [rcx + r15 + 8]
movups xmmword [rdx + 8], xmm0
movzx eax, word [rcx + r15 + 0x1c]
mov dword [rdx + 0x1c], 2
ror ax, 8
movzx eax, ax
mov dword [rdx + 0x18], eax
movups xmm0, xmmword [rcx + r15 + 0x20]
movups xmmword [rdx + 0x20], xmm0
movzx eax, word [rcx + r15 + 0x34]
ror ax, 8
movzx eax, ax
mov dword [rdx + 0x30], eax
mov eax, dword [rcx + r15 + 0x38]
mov dword [rdx + 0x34], eax
mov eax, dword [rcx + r15 + 0x3c]
mov qword [rdx + 0x38], rax
mov rax, qword [rcx + r15 + 0x40]
mov qword [rdx + 0x40], rax
movups xmm0, xmmword [rcx + r15 + 0x48]
movups xmmword [rdx + 0x48], xmm0
movups xmm1, xmmword [rcx + r15 + 0x58]
movups xmmword [rdx + 0x58], xmm1
movups xmm0, xmmword [rcx + r15 + 0x68]
movups xmmword [rdx + 0x68], xmm0
movups xmm1, xmmword [rcx + r15 + 0x78]
movups xmmword [rdx + 0x78], xmm1
movups xmm0, xmmword [rcx + r15 + 0x88]
movups xmmword [rdx + 0x88], xmm0
movups xmm1, xmmword [rcx + r15 + 0x98]
movups xmmword [rdx + 0x98], xmm1
movups xmm0, xmmword [rcx + r15 + 0xa8]
movups xmmword [rdx + 0xa8], xmm0
movups xmm1, xmmword [rcx + r15 + 0xb8]
movups xmmword [rdx + 0xb8], xmm1
cmp r8d, dword [r15]
jb 0x140050a82
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15, qword [rsp + 0x30]
test rsi, rsi
je 0x140050c6b
cmp dword [rsi], 0
mov r8d, ebx
jbe 0x140050c59
nop dword [rax]
mov eax, edi
inc edi
imul rdx, rax, 0xc8
mov eax, r8d
inc r8d
add rdx, r13
lea rcx, [rax + rax*4]
shl rcx, 5
mov dword [rdx], 0x21
mov dword [rdx + 4], 1
mov eax, dword [rcx + rsi + 8]
mov dword [rdx + 8], eax
movzx eax, word [rcx + rsi + 0xc]
mov dword [rdx + 0x1c], ebx
mov dword [rdx + 0x34], ebx
ror ax, 8
movzx eax, ax
mov dword [rdx + 0x18], eax
mov eax, dword [rcx + rsi + 0x10]
mov qword [rdx + 0x38], rax
mov rax, qword [rcx + rsi + 0x18]
mov qword [rdx + 0x40], rax
movups xmm0, xmmword [rcx + rsi + 0x28]
movups xmmword [rdx + 0x48], xmm0
movups xmm1, xmmword [rcx + rsi + 0x38]
movups xmmword [rdx + 0x58], xmm1
movups xmm0, xmmword [rcx + rsi + 0x48]
movups xmmword [rdx + 0x68], xmm0
movups xmm1, xmmword [rcx + rsi + 0x58]
movups xmmword [rdx + 0x78], xmm1
movups xmm0, xmmword [rcx + rsi + 0x68]
movups xmmword [rdx + 0x88], xmm0
movups xmm1, xmmword [rcx + rsi + 0x78]
movups xmmword [rdx + 0x98], xmm1
movups xmm0, xmmword [rcx + rsi + 0x88]
movups xmmword [rdx + 0xa8], xmm0
movups xmm1, xmmword [rcx + rsi + 0x98]
movups xmmword [rdx + 0xb8], xmm1
cmp r8d, dword [rsi]
jb 0x140050ba0
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rsi, qword [rsp + 0x48]
test rbp, rbp
je 0x140050d60
cmp dword [rbp], 0
mov r8d, ebx
jbe 0x140050d4e
nop word [rax + rax]
mov eax, edi
inc edi
imul rdx, rax, 0xc8
mov eax, r8d
inc r8d
add rdx, r13
imul rcx, rax, 0xb0
mov dword [rdx], 0x22
mov dword [rdx + 4], 2
movups xmm0, xmmword [rcx + rbp + 8]
movups xmmword [rdx + 8], xmm0
movzx eax, word [rcx + rbp + 0x1c]
mov dword [rdx + 0x1c], ebx
mov dword [rdx + 0x34], ebx
ror ax, 8
movzx eax, ax
mov dword [rdx + 0x18], eax
mov eax, dword [rcx + rbp + 0x20]
mov qword [rdx + 0x38], rax
mov rax, qword [rcx + rbp + 0x28]
mov qword [rdx + 0x40], rax
movups xmm0, xmmword [rcx + rbp + 0x38]
movups xmmword [rdx + 0x48], xmm0
movups xmm1, xmmword [rcx + rbp + 0x48]
movups xmmword [rdx + 0x58], xmm1
movups xmm0, xmmword [rcx + rbp + 0x58]
movups xmmword [rdx + 0x68], xmm0
movups xmm1, xmmword [rcx + rbp + 0x68]
movups xmmword [rdx + 0x78], xmm1
movups xmm0, xmmword [rcx + rbp + 0x78]
movups xmmword [rdx + 0x88], xmm0
movups xmm1, xmmword [rcx + rbp + 0x88]
movups xmmword [rdx + 0x98], xmm1
movups xmm0, xmmword [rcx + rbp + 0x98]
movups xmmword [rdx + 0xa8], xmm0
movups xmm1, xmmword [rcx + rbp + 0xa8]
movups xmmword [rdx + 0xb8], xmm1
cmp r8d, dword [rbp]
jb 0x140050c90
mov rcx, qword [sym.4yUlCM3HuVsHzW5CaCX.exe_PhHeapHandle]
mov r8, rbp
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x88]
mov dword [rax], r12d
mov rax, qword [rsp + 0x70]
mov qword [rax], r13
mov al, 1
mov r13, qword [rsp + 0x40]
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret
xor al, al
add rsp, 0x50
pop r12
pop rdi
pop rbx
ret