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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x5bab0a
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax]
mov rdx, qword [rax + 8]
mov qword [rsp + 0x58], rdx
xor ebx, ebx
xor esi, esi
mov rdi, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov r9, qword [rsp + 0x90]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rcx
cmp rbx, rdx
jge 0x5ba8d1
movzx r10d, word [rcx + 4]
mov dword [rsp + 0x4c], r10d
movzx r11d, word [rcx + 2]
mov dword [rsp + 0x48], r11d
movzx r12d, word [rcx]
cmp r10d, 1
jne 0x5baa91
lea r10d, [r12 - 1]
cmp esi, r10d
jle 0x5baa45
lea esi, [r11 + 1]
add rcx, 6
inc rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rcx
cmp rbx, rdx
jl 0x5ba887
mov rcx, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x58], rax
xor edx, edx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rcx
cmp rdx, rax
jge 0x5ba92f
mov ebx, dword [rcx + 8]
mov dword [rsp + 0x38], ebx
mov r10d, dword [rcx]
mov r11d, dword [rcx + 4]
mov dword [rsp + 0x3c], r11d
cmp ebx, 1
jne 0x5ba9cc
lea ebx, [r10 - 1]
cmp esi, ebx
jle 0x5ba989
lea ebx, [r11 + 1]
add rcx, 0xc
inc rdx
mov esi, ebx
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x60], rcx
cmp rdx, rax
jl 0x5ba8ef
cmp esi, 0x10ffff
jle 0x5ba959
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb0], r9
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
mov qword [rsp], rdi
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], r9
mov dword [rsp + 0x18], esi
mov dword [rsp + 0x1c], 0x10ffff
call fcn.005b9e40
mov rdi, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
jmp 0x5ba937
mov qword [rsp], rdi
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], r9
mov dword [rsp + 0x18], esi
mov dword [rsp + 0x1c], ebx
call fcn.005b9e40
mov rdi, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov r11d, dword [rsp + 0x3c]
jmp 0x5ba913
mov dword [rsp + 0x44], r10d
cmp r10d, r11d
jg 0x5ba9f4
lea r12d, [r10 - 1]
cmp esi, r12d
jle 0x5ba9fb
lea r12d, [rbx + r10]
lea esi, [r10 + 1]
mov r10d, r12d
mov dword [rsp + 0x44], r10d
cmp r10d, r11d
jle 0x5ba9d6
mov ebx, esi
jmp 0x5ba917
mov qword [rsp], rdi
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], r9
mov dword [rsp + 0x18], esi
mov dword [rsp + 0x1c], r12d
call fcn.005b9e40
mov rdi, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x50]
mov ebx, dword [rsp + 0x38]
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x3c]
jmp 0x5ba9df
mov qword [rsp], rdi
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], r9
mov dword [rsp + 0x18], esi
mov dword [rsp + 0x1c], r10d
call fcn.005b9e40
mov rdi, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r11d, dword [rsp + 0x48]
jmp 0x5ba8b7
mov dword [rsp + 0x40], r12d
cmp r12d, r11d
jg 0x5ba8bb
lea r13d, [r12 - 1]
cmp esi, r13d
jle 0x5baab7
lea r13d, [r12 + r10]
lea esi, [r12 + 1]
mov r12d, r13d
jmp 0x5baa91
mov qword [rsp], rdi
mov qword [rsp + 8], r8
mov qword [rsp + 0x10], r9
mov dword [rsp + 0x18], esi
mov dword [rsp + 0x1c], r13d
call fcn.005b9e40
mov rdi, qword [rsp + 0x20]
mov r8, qword [rsp + 0x28]
mov r9, qword [rsp + 0x30]
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x48]
mov r12d, dword [rsp + 0x40]
jmp 0x5baaa9
call fcn.00452440
jmp fcn.005ba820