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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 0x18]
cmp rax, qword [rcx + 0x10]
jbe 0x501520
sub rsp, 0x98
mov qword [rsp + 0x90], rbp
lea rbp, [rsp + 0x90]
mov rdx, qword [rsp + 0xa0]
xor eax, eax
jmp 0x50114d
mov rdx, qword [rsp + 0xa0]
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rcx, rax
xor eax, eax
mov ebx, 1
lock cmpxchg dword [rdx + 0x40], ebx
sete sil
lea r8, [rdx + 0x40]
test sil, sil
je 0x5014e6
mov rsi, qword [rdx + 0x10]
mov r9, qword [rdx + 0x18]
mov r10, qword [rdx + 0x20]
nop
test r9, r9
jle 0x5014d8
mov r11, qword [rsi + 8]
mov r12, qword [rsi + 0x10]
mov r13, qword [rsi]
dec r9
mov qword [rdx + 0x18], r9
lea r9, [r10 - 1]
mov qword [rdx + 0x20], r9
neg r9
sar r9, 0x3f
and r9, 0x18
add rsi, r9
cmp dword [0x007c0da0], 0
jne 0x5014ca
mov qword [rdx + 0x10], rsi
mov rsi, qword [rdx + 0x30]
mov r9, qword [rdx + 0x28]
mov r10, qword [rdx + 0x38]
cmp rsi, 1
jb 0x501510
lea rax, [rsi - 1]
mov qword [rdx + 0x30], rax
lea rax, [r10 - 1]
mov qword [rdx + 0x38], rax
neg rax
sar rax, 0x3f
and rax, 0x18
add rax, r9
cmp dword [0x007c0da0], 0
nop dword [rax]
jne 0x5014bc
mov qword [rdx + 0x28], rax
mov eax, dword [rdx + 0xa8]
add eax, r11d
mov dword [rdx + 0xa8], eax
mov esi, dword [rdx + 0xb0]
add esi, r11d
mov dword [rdx + 0xb0], esi
mov rdi, qword [rdx + 8]
mov rdi, qword [rdi + 0x10]
mov rdi, qword [rdi + 0x30]
mov r9, rdi
shr rdi, 0x3f
add rdi, r9
sar rdi, 1
cmp esi, edi
jb 0x5014ac
mov dword [rdx + 0xb0], 0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x80], r13
mov dword [rsp + 0x3c], eax
nop
mov esi, 0xffffffff
lock xadd dword [rdx + 0x40], esi
dec esi
test esi, esi
jne 0x501472
nop
test r13, r13
je 0x50141a
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rsp + 0xb0]
mov qword [rsp], rdx
mov qword [rsp + 8], r13
mov qword [rsp + 0x10], r11
mov qword [rsp + 0x18], r12
call rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 8]
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rdx
mov rbx, qword [rsp + 0x28]
mov qword [rsp + 0x88], rbx
mov rsi, qword [rsp + 0x30]
mov qword [rsp + 0x78], rsi
mov rdi, qword [rsp + 0x28]
mov qword [rsp + 0x60], rdi
mov r8, qword [rsp + 0x48]
mov r9, r8
lock xadd dword [rcx + 0x24], r8d
add r8d, r9d
nop word [rax + rax]
test r8d, r8d
jg 0x501407
mov rax, qword [0x0077bc00]
mov qword [rsp], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], r9
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x18], rax
call fcn.004fc860
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x68]
lea rdx, [rcx + rax]
test rax, rax
cmovg rcx, rdx
mov rax, qword [rsp + 0x60]
test rax, rax
jne 0x5013d2
mov edx, dword [rsp + 0x3c]
nop dword [rax + rax]
test edx, edx
jbe 0x501142
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0xa0]
mov qword [rsp], rax
mov dword [rsp + 8], edx
nop dword [rax]
call fcn.00501540
mov rax, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
cmp qword [rsp + 0x10], 0
jne 0x5013a5
mov rcx, qword [rsp + 0x58]
nop dword [rax]
jmp 0x501142
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rcx
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
mov qword [rsp + 0xb8], rcx
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc8], rax
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
mov qword [rsp], rcx
call fcn.004fdc20
mov r9, qword [rsp + 0x48]
jmp 0x501309
mov qword [rsp], rdx
nop
call fcn.005017e0
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x10]
cmp qword [rsp + 8], 0
jne 0x501445
mov rcx, qword [rsp + 0x68]
nop dword [rax]
jmp 0x501142
mov rdx, qword [rsp + 0x68]
mov qword [rsp + 0xb8], rdx
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xc8], rcx
mov rbp, qword [rsp + 0x90]
add rsp, 0x98
ret
mov qword [rsp], r8
mov dword [rsp + 8], esi
call fcn.0046a1a0
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xa0]
mov ebx, 1
mov r11, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x80]
jmp 0x501280
cmp r11d, eax
je 0x501249
xor eax, eax
jmp 0x501253
lea rdi, [rdx + 0x28]
call fcn.0045eb20
jmp 0x50120a
lea rdi, [rdx + 0x10]
call fcn.0045ec80
jmp 0x5011c2
xor r11d, r11d
xor r13d, r13d
xor r12d, r12d
jmp 0x50120a
mov qword [rsp + 0x70], r8
mov qword [rsp], r8
call fcn.00469e60
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0xa0]
mov ebx, 1
mov r8, qword [rsp + 0x70]
jmp 0x501172
mov eax, 1
mov rcx, rsi
call fcn.0045f080
nop
nop
call fcn.0045cde0
jmp fcn.00501100