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

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
lea rax, [rsp - 8]
cmp rax, qword [rcx + 0x10]
jbe 0x4d23ee
sub rsp, 0x88
mov qword [rsp + 0x80], rbp
lea rbp, [rsp + 0x80]
mov rax, qword [rsp + 0x88]
mov qword [rsp], rax
call fcn.004a8440
mov rax, qword [rsp + 0x90]
test byte [rax], al
lea rcx, [rax + 0x17]
mov qword [rsp], rcx
call fcn.004a8320
mov rax, qword [rsp + 0x90]
movzx ecx, byte [rax + 0x17]
and ecx, 0x1f
cmp rcx, 0x13
jne 0x4d237a
mov qword [rsp], rax
lea rcx, [0x0054d500]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 1
call fcn.00444140
mov rax, qword [rsp + 0x90]
lea rcx, [rax + 0x14]
mov qword [rsp], rcx
call fcn.004a8320
mov rax, qword [rsp + 0x90]
movzx ecx, byte [rax + 0x14]
test cl, 1
je 0x4d235b
mov ecx, 0x48
mov qword [rsp + 0x48], rcx
lea rdx, [rax + 0x32]
mov qword [rsp], rdx
call fcn.004a8320
mov rax, qword [rsp + 0x90]
movzx ecx, word [rax + 0x32]
and ecx, 0x7fff
test cx, cx
jne 0x4d2237
xor eax, eax
xor ecx, ecx
mov rdx, qword [rsp + 0x98]
nop dword [rax]
cmp rdx, rax
jae 0x4d2365
mov qword [rsp + 0x58], rcx
lea rax, [rcx + rdx*8]
mov qword [rsp], rax
call fcn.004a8320
mov rax, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx + rax*8]
test rax, rax
je 0x4d2231
lea rcx, [0x00599540]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x40], rcx
call fcn.004a8460
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0xa8], rax
mov rbp, qword [rsp + 0x80]
add rsp, 0x88
ret
xor ecx, ecx
xor eax, eax
jmp 0x4d21f8
mov word [rsp + 0x3a], cx
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x78], rax
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov qword [rsp + 0x68], rcx
mov qword [rsp], rcx
lea rdx, [rsp + 0x78]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], 1
mov qword [rsp + 0x18], 1
call fcn.00444240
mov rax, qword [rsp + 0x90]
lea rcx, [rax + 0x30]
mov qword [rsp + 0x70], rcx
mov qword [rsp], rcx
call fcn.004a8320
mov rax, qword [rsp + 0x90]
movzx ecx, word [rax + 0x30]
mov qword [rsp + 0x50], rcx
mov rdx, qword [rsp + 0x70]
mov qword [rsp], rdx
call fcn.004a8320
mov rax, qword [rsp + 0x90]
movzx ecx, word [rax + 0x30]
mov word [rsp + 0x3e], cx
mov rdx, qword [rsp + 0x70]
mov qword [rsp], rdx
call fcn.004a8320
mov rax, qword [rsp + 0x90]
movzx eax, word [rax + 0x30]
mov rcx, qword [rsp + 0x68]
mov qword [rsp], rcx
lea rdx, [0x0055b720]
mov qword [rsp + 8], rdx
movzx edx, word [rsp + 0x3a]
add eax, edx
mov word [rsp + 0x3c], ax
movzx ebx, ax
mov qword [rsp + 0x10], rbx
call fcn.00444140
movzx eax, word [rsp + 0x3a]
movzx ecx, word [rsp + 0x3e]
add eax, ecx
movzx ecx, ax
movzx ebx, word [rsp + 0x3c]
movzx edx, bx
cmp rdx, rcx
jb 0x4d2375
mov rax, qword [rsp + 0x50]
cmp rax, rcx
ja 0x4d2370
mov rbx, rax
sub rax, rdx
sub rcx, rbx
shl rbx, 3
sar rax, 0x3f
and rbx, rax
mov rdx, qword [rsp + 0x68]
add rdx, rbx
mov rax, rcx
mov rcx, rdx
jmp 0x4d21b5
mov ecx, 0x38
jmp 0x4d2184
mov rcx, rax
mov rax, rdx
call fcn.004a7000
call fcn.004a7160
call fcn.004a7140
mov qword [rsp], rax
nop
call fcn.004ce520
mov rax, qword [rsp + 8]
mov rcx, qword [rsp + 0x10]
mov qword [rsp], 0
lea rdx, [0x0056786a]
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], 0x1e
mov qword [rsp + 0x18], rax
mov qword [rsp + 0x20], rcx
call fcn.0048d200
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
mov qword [rsp], rax
mov qword [rsp + 8], rcx
call fcn.00448880
mov rax, qword [rsp + 0x10]
lea rcx, [0x00540320]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
call fcn.00474200
nop
call fcn.004a4e00
jmp fcn.004d20c0