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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x50d96c
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 8]
mov rdx, qword [rax]
nop word [rax + rax]
test rcx, rcx
jle 0x50d94c
mov qword [rsp + 0x58], rcx
mov rbx, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
xor r8d, r8d
xor r9d, r9d
jmp 0x50d6b2
add rdx, 6
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x68], rdx
movzx r10d, word [rdx + 2]
mov dword [rsp + 0x4c], r10d
movzx r11d, word [rdx + 4]
movzx r12d, word [rdx]
cmp r11d, 1
jne 0x50d8c5
lea r11d, [r12 - 1]
nop
cmp r11d, r9d
jge 0x50d873
lea r9d, [r10 + 1]
inc r8
cmp r8, rcx
jl 0x50d6ae
mov rcx, qword [rax + 0x20]
mov rax, qword [rax + 0x18]
nop dword [rax]
test rcx, rcx
jle 0x50d86b
mov qword [rsp + 0x58], rcx
xor edx, edx
jmp 0x50d719
add rax, 0xc
mov r9d, r8d
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rax
mov r8d, dword [rax + 4]
mov dword [rsp + 0x48], r8d
mov r10d, dword [rax + 8]
mov r11d, dword [rax]
cmp r10d, 1
jne 0x50d7f2
lea r10d, [r11 - 1]
cmp r10d, r9d
jge 0x50d7ad
inc r8d
inc rdx
cmp rdx, rcx
jl 0x50d712
cmp r8d, 0x10ffff
jle 0x50d77c
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xb0], rdi
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x1c], 0x10ffff
call fcn.0050cc00
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
jmp 0x50d75a
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r9d
mov dword [rsp + 0x1c], r10d
call fcn.0050cc00
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
jmp 0x50d746
mov dword [rsp + 0x44], r10d
jmp 0x50d804
lea r12d, [r10 + r11]
lea r9d, [r11 + 1]
mov r11d, r12d
cmp r11d, r8d
jg 0x50d863
lea r12d, [r11 - 1]
cmp r12d, r9d
jl 0x50d7f9
mov dword [rsp + 0x38], r11d
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r9d
mov dword [rsp + 0x1c], r12d
call fcn.0050cc00
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x48]
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x38]
jmp 0x50d7f9
mov r8d, r9d
jmp 0x50d749
mov r8d, r9d
jmp 0x50d751
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r9d
mov dword [rsp + 0x1c], r11d
call fcn.0050cc00
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x4c]
nop dword [rax + rax]
jmp 0x50d6e9
mov dword [rsp + 0x40], r11d
jmp 0x50d8e0
lea r13d, [r11 + r12]
lea r9d, [r12 + 1]
mov r12d, r13d
nop dword [rax + rax]
cmp r10d, r12d
jl 0x50d6ed
lea r13d, [r12 - 1]
cmp r13d, r9d
jl 0x50d8cc
mov dword [rsp + 0x3c], r12d
mov qword [rsp], rbx
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
mov dword [rsp + 0x18], r9d
mov dword [rsp + 0x1c], r13d
call fcn.0050cc00
mov rbx, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x40]
mov r12d, dword [rsp + 0x3c]
jmp 0x50d8cc
xor r9d, r9d
mov rsi, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rbx, qword [rsp + 0x80]
jmp 0x50d6f5
call fcn.00469840
jmp fcn.0050d640