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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xb8
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0xd0]
movzx eax, byte [rax + 9]
mov dword [rsp + 0x2c], eax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x12]
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0xd0]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x4c]
lea eax, [rax + rcx*2]
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x48]
mov eax, dword [rax + 0x38]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x2c]
add eax, 7
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
cmp eax, dword [rsp + 0xd8]
jg 0x140050eda
mov eax, dword [rsp + 0x2c]
inc eax
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, dword [rsp + 0x2c]
inc ecx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x40]
sub eax, 4
cmp dword [rsp + 0x28], eax
jle 0x140050aca
mov ecx, 0x119fb
call fcn.140112a10
jmp 0x1400511c3
cmp dword [rsp + 0x28], 0
je 0x140050eda
movsxd rax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
movsxd rcx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x40]
sub eax, 4
cmp dword [rsp + 0x34], eax
jle 0x140050b34
mov ecx, 0x119fe
call fcn.140112a10
jmp 0x1400511c3
cmp dword [rsp + 0x34], 0
je 0x140050b6a
movsxd rax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x140050eda
mov eax, dword [rsp + 0x34]
inc eax
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
test eax, eax
jne 0x140050eda
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x4c]
lea eax, [rax + rcx*2]
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x44], 0
mov eax, dword [rsp + 0x28]
add eax, 2
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, dword [rsp + 0x28]
add ecx, 2
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x2c]
add eax, 5
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, dword [rsp + 0x2c]
add ecx, 5
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x48], eax
jl 0x140050c43
mov ecx, 0x11a06
call fcn.140112a10
jmp 0x1400511c3
cmp dword [rsp + 0x34], 0
je 0x140050d5d
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x34]
jle 0x140050c6f
mov ecx, 0x11a09
call fcn.140112a10
jmp 0x1400511c3
mov eax, dword [rsp + 0x34]
add eax, 2
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, dword [rsp + 0x34]
add ecx, 2
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x34]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x40]
jle 0x140050cdc
mov ecx, 0x11a0b
call fcn.140112a10
jmp 0x1400511c3
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov eax, ecx
cdqe
mov ecx, dword [rsp + 0x3c]
mov edx, dword [rsp + 0x28]
add edx, ecx
mov ecx, edx
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, dword [rsp + 0x3c]
mov r8d, dword [rsp + 0x28]
add r8d, edx
mov edx, r8d
add edx, dword [rsp + 0x44]
movsxd rdx, edx
mov r8, qword [rsp + 0x20]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x88], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x88]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x3c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x3c], eax
jmp 0x140050d7e
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x28]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x40]
jle 0x140050d7e
mov ecx, 0x11a0f
call fcn.140112a10
jmp 0x1400511c3
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x48]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
cdqe
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0x30]
mov r8, qword [rsp + 0x20]
add r8, rdx
mov rdx, r8
mov qword [rsp + 0x90], rdx
mov r8, rax
mov rdx, rcx
mov rax, qword [rsp + 0x90]
mov rcx, rax
call sub.VCRUNTIME140.dll_memmove
nop
movsxd rax, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
jmp 0x140050e00
mov rax, qword [rsp + 0x58]
add rax, 2
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x98]
cmp qword [rsp + 0x58], rax
jae 0x140050ed5
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movzx eax, byte [rcx + rax]
shl eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x38], eax
jge 0x140050e89
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
sar eax, 8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x58]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x3c]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
mov byte [rdx + rcx], al
jmp 0x140050ed0
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x38], eax
jge 0x140050ed0
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
sar eax, 8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x58]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x58]
mov byte [rdx + rcx], al
jmp 0x140050df2
jmp 0x1400510e6
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x40]
sub eax, 4
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x2c]
add eax, 5
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, dword [rsp + 0x2c]
add ecx, 5
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x74], eax
cmp dword [rsp + 0x4c], 0
jle 0x1400510d4
mov rax, qword [rsp + 0xd0]
mov rax, qword [rax + 0x48]
mov rcx, qword [rax]
call fcn.1400445c0
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x40]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x20]
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x54], 0
jmp 0x140050f92
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x54], eax
jge 0x1400510d4
mov eax, dword [rsp + 0x50]
mov ecx, dword [rsp + 0x54]
lea eax, [rax + rcx*2]
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x68]
movzx eax, byte [rcx + rax]
shl eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x68]
movzx ecx, byte [rdx + rcx]
or eax, ecx
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x38], eax
jle 0x140051003
mov ecx, 0x11a30
call fcn.140112a10
jmp 0x1400511c3
movsxd rax, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x80]
add rcx, rax
mov rax, rcx
mov rdx, rax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [rsp + 0xd0]
call qword [rax + 0x78]
movzx eax, ax
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x74]
cmp dword [rsp + 0x30], eax
jl 0x14005105f
mov eax, dword [rsp + 0x60]
mov ecx, dword [rsp + 0x38]
add ecx, eax
mov eax, ecx
cmp eax, dword [rsp + 0x40]
jle 0x14005106e
mov ecx, 0x11a36
call fcn.140112a10
jmp 0x1400511c3
mov eax, dword [rsp + 0x30]
sar eax, 8
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x68]
mov byte [rdx + rcx], al
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x68]
movzx edx, byte [rsp + 0x30]
mov byte [rcx + rax], dl
movsxd rax, dword [rsp + 0x60]
movsxd rcx, dword [rsp + 0x38]
mov rdx, qword [rsp + 0x80]
add rdx, rcx
mov rcx, rdx
movsxd rdx, dword [rsp + 0x30]
mov rdi, qword [rsp + 0x20]
add rdi, rdx
mov rdx, rdi
mov rdi, rdx
mov rsi, rcx
mov rcx, rax
rep movsb byte [rdi], byte [rsi]
jmp 0x140050f88
mov eax, dword [rsp + 0x2c]
add eax, 7
cdqe
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x2c]
add eax, 7
cdqe
mov rcx, qword [rsp + 0x20]
movzx eax, byte [rcx + rax]
add eax, dword [rsp + 0x30]
sub eax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0xd0]
cmp eax, dword [rcx + 0x14]
je 0x14005111c
mov ecx, 0x11a44
call fcn.140112a10
jmp 0x1400511c3
mov eax, dword [rsp + 0x30]
sar eax, 8
mov ecx, dword [rsp + 0x2c]
add ecx, 5
movsxd rcx, ecx
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 0
mov byte [rcx + rdx], al
mov eax, dword [rsp + 0x2c]
add eax, 5
cdqe
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 1
movzx edx, byte [rsp + 0x30]
mov byte [rax + rcx], dl
mov eax, dword [rsp + 0x2c]
inc eax
cdqe
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x2c]
add eax, 2
cdqe
mov rcx, qword [rsp + 0x20]
mov byte [rcx + rax], 0
mov eax, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x30]
sub ecx, eax
mov eax, ecx
cdqe
mov qword [rsp + 0xa0], rax
movsxd rcx, dword [rsp + 0x64]
mov rdx, qword [rsp + 0x20]
add rdx, rcx
mov rcx, rdx
mov rdi, rcx
xor eax, eax
mov rcx, qword [rsp + 0xa0]
rep stosb byte [rdi], al
xor eax, eax
add rsp, 0xb8
pop rdi
pop rsi
ret