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

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov dword [r11 + 0x18], r8d
push rbx
push r14
sub rsp, 0x78
mov qword [r11 - 0x20], rsi
xor eax, eax
mov qword [r11 - 0x28], rdi
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
mov rbx, rcx
mov qword [r11 - 0x30], r12
mov r12d, r9d
cmp r8d, r12d
mov qword [r11 - 0x38], r13
lea r9, [r11 + 0x10]
mov qword [r11 - 0x40], r15
mov r13d, r8d
mov dword [r11 + 0x10], eax
cmove r9, rax
lea r8d, [rax + 3]
call fcn.14004ffa0
mov rcx, rsi
mov r14d, eax
call fcn.14004da60
movzx ecx, byte [rbx + 0x1f]
inc dword [rbx + 0x70]
mov byte [rsp + 0x90], al
test cl, cl
jne 0x140050b96
inc dword [rbx + 0x54]
mov r15d, dword [rbx + 0x54]
jmp 0x140050ba3
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0x24]
mov rdx, qword [rsi + 0x10]
mov r8d, r15d
mov rcx, rbx
mov qword [rsp + 0x70], rbp
call fcn.140052c90
cmp r14d, 5
jne 0x140050f0b
mov rdx, qword [rsi + 0x10]
mov rcx, rbx
mov r14, qword [rsi + 0x20]
call fcn.14004d880
mov rcx, rdi
mov qword [rsp + 0x38], rax
call fcn.140038130
xor esi, esi
mov dword [rsp + 0x30], eax
mov ebp, eax
cmp r12d, r13d
je 0x140050c1e
movzx ecx, byte [rbx + 0x1f]
test cl, cl
jne 0x140050bfb
inc dword [rbx + 0x54]
mov esi, dword [rbx + 0x54]
jmp 0x140050c07
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0x24]
mov r9d, r15d
mov dword [rsp + 0x20], esi
mov r8d, r15d
mov edx, 0x55
mov rcx, rdi
call fcn.140037d60
xor r12d, r12d
cmp dword [r14], r12d
jle 0x140050e09
xor r13d, r13d
nop dword [rax]
mov rdx, qword [r14 + 8]
lea r8, [rsp + 0x34]
mov rcx, rbx
mov rdx, qword [rdx + r13]
call fcn.140052b30
mov ebp, eax
test esi, esi
je 0x140050cc7
mov rcx, qword [r14 + 8]
mov r8, qword [rcx + r13]
movzx ecx, byte [r8]
add cl, 0x63
cmp cl, 1
ja 0x140050c65
mov r8, qword [r8 + 0x10]
jmp 0x140050c53
movzx eax, byte [r8]
cmp al, 0x9f
jne 0x140050c72
movzx eax, byte [r8 + 0x36]
cmp al, 0x61
je 0x140050cc7
cmp al, 0x83
jbe 0x140050cb0
cmp al, 0x86
jbe 0x140050cc7
cmp al, 0x9a
jne 0x140050cb0
test dword [r8 + 4], 0x100000
jne 0x140050cb0
movzx eax, word [r8 + 0x30]
test ax, ax
js 0x140050cc7
movsx rax, ax
lea rdx, [rax + rax*2]
mov rax, qword [r8 + 0x40]
add rdx, rdx
mov rcx, qword [rax + 8]
cmp byte [rcx + rdx*8 + 0x28], 0
jne 0x140050cc7
mov r9d, ebp
mov dword [rsp + 0x20], esi
mov r8d, esi
mov edx, 0x55
mov rcx, rdi
call fcn.140037d60
mov eax, dword [r14]
dec eax
cmp r12d, eax
jl 0x140050d4f
mov eax, dword [rsp + 0xa0]
cmp dword [rsp + 0xa8], eax
jne 0x140050d4f
mov r9d, eax
mov dword [rsp + 0x20], ebp
mov r8d, r15d
mov edx, 0x4e
mov rcx, rdi
call fcn.140037d60
mov r8, qword [rsp + 0x38]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, rdi
call fcn.1400387d0
mov rax, qword [rdi]
movzx edx, byte [rsp + 0x90]
mov ecx, dword [rdi + 0x3c]
or dl, 0x10
dec ecx
cmp byte [rax + 0x51], 0
je 0x140050d36
mov ebp, dword [rsp + 0x30]
lea rax, [0x140120b10]
mov byte [rax + 3], dl
jmp 0x140050db0
mov ebp, dword [rsp + 0x30]
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov byte [rax + rcx*8 + 3], dl
lea rax, [rax + rcx*8]
jmp 0x140050db0
mov dword [rsp + 0x20], ebp
mov r8d, r15d
mov ebp, dword [rsp + 0x30]
mov edx, 0x4f
mov r9d, ebp
mov rcx, rdi
call fcn.140037d60
mov r8, qword [rsp + 0x38]
mov r9d, 0xfffffffc
mov edx, eax
mov rcx, rdi
call fcn.1400387d0
mov rax, qword [rdi]
mov ecx, dword [rdi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x140050d96
lea rcx, [0x140120b10]
jmp 0x140050da5
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rcx, [rax + rcx*8]
movzx eax, byte [rsp + 0x90]
mov byte [rcx + 3], al
mov edx, dword [rsp + 0x34]
test edx, edx
je 0x140050df1
movzx r8d, byte [rbx + 0x1f]
cmp r8b, 8
jae 0x140050df1
xor ecx, ecx
lea rax, [rbx + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], edx
je 0x140050ded
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140050dd0
movzx eax, r8b
mov dword [rbx + rax*4 + 0x24], edx
inc byte [rbx + 0x1f]
jmp 0x140050df1
mov byte [rax + 6], 1
inc r12d
add r13, 0x28
cmp r12d, dword [r14]
jl 0x140050c30
mov r13d, dword [rsp + 0xa0]
test esi, esi
je 0x140050e47
mov r9d, dword [rsp + 0xa8]
mov r8d, esi
mov edx, 0x4c
mov dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140037d60
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, r13d
mov rcx, rdi
lea edx, [r8 + 0xe]
call fcn.140037d60
mov rdx, qword [rdi + 0x30]
mov r8, qword [rdx + 0x80]
test r8, r8
je 0x140050e66
or eax, 0xffffffff
sub eax, ebp
movsxd rcx, eax
mov eax, dword [rdi + 0x3c]
mov dword [r8 + rcx*4], eax
mov eax, dword [rdi + 0x3c]
dec eax
mov dword [rdx + 0x64], eax
test esi, esi
je 0x140050e9e
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x140050e9e
xor ecx, ecx
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], esi
je 0x140050f05
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140050e84
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], esi
inc byte [rbx + 0x1f]
xor r14d, r14d
mov r13, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
test r15d, r15d
je 0x1400510e3
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x1400510e3
mov ecx, r14d
lea rax, [rbx + 0x88]
nop word [rax + rax]
cmp dword [rax + 0xc], r15d
je 0x1400510df
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140050ee0
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], r15d
inc byte [rbx + 0x1f]
jmp 0x1400510e3
mov byte [rax + 6], 1
jmp 0x140050e9e
mov rcx, qword [rsi + 0x10]
call fcn.14004fc70
lea rbp, [0x140120b10]
test eax, eax
je 0x140050fd0
mov dword [rsp + 0x20], 0
mov r8d, r15d
mov rcx, rdi
cmp r12d, r13d
jne 0x140050f48
mov r9d, r12d
mov edx, 0x4c
call fcn.140037d60
jmp 0x140050fd0
xor r9d, r9d
lea edx, [r9 + 0x4d]
call fcn.140037d60
mov r8d, dword [rsi + 0x2c]
mov r9d, r13d
mov edx, 0x6d
mov dword [rsp + 0x20], 0
mov rcx, rdi
mov ebp, eax
call fcn.140037d60
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov r9d, r12d
mov rcx, rdi
lea edx, [r8 + 0xe]
call fcn.140037d60
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
test ebp, ebp
jns 0x140050fa2
lea ebp, [rdx - 1]
mov rax, qword [rdi]
cmp byte [rax + 0x51], 0
je 0x140050fb7
lea rbp, [0x140120b10]
mov rax, rbp
jmp 0x140050fcd
movsxd rax, ebp
lea rbp, [0x140120b10]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov r8d, r15d
mov rcx, rdi
cmp r14d, 1
jne 0x14005100d
xor r14d, r14d
mov r9d, r13d
mov dword [rsp + 0x20], r14d
lea edx, [r14 + 0x26]
call fcn.140037d60
mov r8d, dword [rsi + 0x2c]
lea edx, [r14 + 0x49]
mov r9d, r13d
mov dword [rsp + 0x20], r15d
mov rcx, rdi
call fcn.140037d60
jmp 0x140050ea1
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea r9d, [r14 + 1]
lea edx, [r14 + 0x30]
call fcn.140037d60
lea r9d, [r14 + 1]
mov edx, eax
lea r8, [rsp + 0x90]
mov rcx, rdi
call fcn.1400387d0
mov rcx, rdi
mov r8d, dword [rsi + 0x2c]
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], r15d
cmp dword [rsp + 0x98], r14d
jne 0x140051067
mov r9d, r13d
lea edx, [r14 + 0x45]
call fcn.140038090
jmp 0x140050ea1
xor r9d, r9d
lea edx, [r9 + 0x46]
call fcn.140038090
mov r8d, dword [rsp + 0x98]
mov r9d, r12d
mov edx, 0x4c
mov dword [rsp + 0x20], r14d
mov rcx, rdi
mov esi, eax
call fcn.140037d60
xor r8d, r8d
mov dword [rsp + 0x20], r14d
mov r9d, r13d
mov rcx, rdi
lea edx, [r8 + 0xe]
call fcn.140037d60
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rdi + 0x3c]
test esi, esi
jns 0x1400510bf
lea esi, [rdx - 1]
mov rax, qword [rdi]
cmp byte [rax + 0x51], r14b
jne 0x1400510d7
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea rbp, [rax + rcx*8]
mov dword [rbp + 8], edx
jmp 0x140050ea1
mov byte [rax + 6], 1
dec dword [rbx + 0x70]
lea rcx, [rbx + 0x94]
mov r15, qword [rsp + 0x48]
mov r8d, 0xa
mov edx, dword [rcx]
test edx, edx
je 0x140051125
mov eax, dword [rbx + 0x70]
cmp dword [rcx - 4], eax
jle 0x140051125
cmp byte [rcx - 6], 0
je 0x140051122
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x14005111e
movzx eax, al
mov dword [rbx + rax*4 + 0x24], edx
inc byte [rbx + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r14d
add rcx, 0x14
sub r8, 1
jne 0x1400510f8
add rsp, 0x78
pop r14
pop rbx
ret