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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa8]
cmp dword [rax], 1
jne 0x140259839
mov dword [rsp + 0x6c], 0x64
jmp 0x140259841
mov dword [rsp + 0x6c], 0
movsxd rax, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0xa8]
mov rdx, qword [rsp + 0x50]
movzx eax, byte [rdx + rax]
mov byte [rcx + 0x20], al
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 0x20]
cmp eax, 0xa
je 0x140259895
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 0x20]
cmp eax, 0xd
jne 0x1402598a7
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x28], 8
jmp 0x1402598e0
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 0x20]
cmp eax, 5
je 0x1402598c9
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 0x20]
cmp eax, 2
jne 0x1402598db
mov dword [rsp + 0x68], 0
mov dword [rsp + 0x28], 0xc
jmp 0x1402598e0
jmp 0x140259fa0
mov rax, qword [rsp + 0xa8]
cmp dword [rax], 1
jne 0x1402598f8
mov eax, dword [rsp + 0x28]
add eax, 0x64
mov dword [rsp + 0x28], eax
mov eax, 1
imul rax, rax, 3
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, 1
imul rcx, rcx, 3
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov rcx, qword [rsp + 0xa8]
mov dword [rcx + 0x24], eax
mov rax, qword [rsp + 0xa8]
mov dword [rax + 0x3c], 0
mov rcx, qword [rsp + 0xa0]
call fcn.14013b9e0
mov dword [rsp + 0x64], eax
mov eax, 1
imul rax, rax, 5
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, 1
imul rcx, rcx, 5
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
sub eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0xa8]
mov ecx, dword [rcx + 0x24]
shl ecx, 1
sub eax, ecx
mov dword [rsp + 0x40], eax
mov eax, 1
imul rax, rax, 7
mov rcx, qword [rsp + 0x50]
movzx eax, byte [rcx + rax]
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov ecx, 1
imul rcx, rcx, 0
movzx eax, byte [rax + rcx]
shl eax, 8
mov ecx, 1
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x50]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x140259b08
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x20], eax
jl 0x140259a4b
jmp 0x140259fa0
mov eax, dword [rsp + 0x20]
add eax, 2
cdqe
mov rcx, qword [rsp + 0x38]
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 + 0x20]
add ecx, 2
movsxd rcx, ecx
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov ecx, dword [rsp + 0x40]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x40], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
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 + 0x20]
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x60], eax
mov eax, dword [rsp + 0x20]
add eax, 4
cmp dword [rsp + 0x60], eax
jge 0x140259afb
cmp dword [rsp + 0x60], 0
jle 0x140259afb
jmp 0x140259fa0
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
jmp 0x140259a31
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x40]
mov dword [rax + 0x28], ecx
cmp dword [rsp + 0x68], 0
je 0x140259b28
mov dword [rsp + 0x70], 0
jmp 0x140259b48
mov eax, 1
imul rax, rax, 8
mov rcx, qword [rsp + 0x50]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140188790
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x70]
mov dword [rax + 0x38], ecx
mov rax, qword [rsp + 0xa8]
cmp dword [rax + 0x24], 0
je 0x140259f9c
mov rcx, qword [rsp + 0xa0]
call fcn.1401401a0
mov rcx, qword [rsp + 0xa0]
call fcn.14013bb90
mov ecx, dword [rsp + 0x64]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x44], eax
mov rcx, qword [rsp + 0xa0]
call fcn.140140290
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x24]
inc eax
cdqe
imul rax, rax, 0x20
mov rcx, rax
call fcn.14012a0c0
mov rcx, qword [rsp + 0xa8]
mov qword [rcx + 0x30], rax
mov rax, qword [rsp + 0xa8]
cmp qword [rax + 0x30], 0
jne 0x140259bdc
mov eax, 7
jmp 0x140259fbb
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x24]
inc eax
cdqe
imul rax, rax, 0x20
mov r8, rax
xor edx, edx
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rax + 0x30]
call sub.VCRUNTIME140.dll_memset
nop
mov dword [rsp + 0x30], 0
jmp 0x140259c1a
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x24]
cmp dword [rsp + 0x30], eax
jge 0x140259f9c
movsxd rax, dword [rsp + 0x30]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xa8]
add rax, qword [rcx + 0x30]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x30]
lea eax, [rax + rcx*2]
cdqe
mov rcx, qword [rsp + 0x38]
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]
mov edx, dword [rsp + 0x30]
lea ecx, [rcx + rdx*2]
movsxd rcx, ecx
mov rdx, qword [rsp + 0x38]
add rdx, rcx
mov rcx, rdx
mov edx, 1
imul rdx, rdx, 1
movzx ecx, byte [rcx + rdx]
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
cmp dword [rsp + 0x20], eax
jl 0x140259cb1
mov eax, dword [rsp + 0x64]
cmp dword [rsp + 0x20], eax
jl 0x140259cb6
jmp 0x140259fa0
cmp dword [rsp + 0x68], 0
jne 0x140259ce8
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140188790
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 4], eax
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 0x20]
cmp eax, 5
jne 0x140259cfe
jmp 0x140259f97
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
cmp eax, 0x80
jge 0x140259d2f
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x74], 1
jmp 0x140259d53
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call fcn.140178fb0
movzx eax, al
mov dword [rsp + 0x74], eax
movzx eax, byte [rsp + 0x74]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa8]
movzx eax, byte [rax + 0x20]
cmp eax, 0xd
jne 0x140259da4
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
lea rdx, [rsp + 0x88]
mov rcx, rax
call fcn.140178b10
movzx eax, al
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax + 0x3c]
cmp dword [rsp + 0x24], eax
jbe 0x140259dc4
mov rax, qword [rsp + 0xa8]
mov ecx, dword [rsp + 0x24]
mov dword [rax + 0x3c], ecx
mov r8d, dword [rsp + 0x24]
mov rax, qword [rsp + 0xa8]
movzx edx, byte [rax + 0x20]
mov ecx, dword [rsp + 0x44]
call fcn.140259740
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
jge 0x140259dee
jmp 0x140259fa0
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x2c]
mov dword [rax], ecx
mov eax, dword [rsp + 0x2c]
cmp dword [rsp + 0x24], eax
jbe 0x140259f97
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x44]
lea eax, [rax + rcx - 5]
mov ecx, dword [rsp + 0x44]
sub ecx, 4
xor edx, edx
div ecx
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x2c]
lea eax, [rax + rcx + 4]
cmp eax, dword [rsp + 0x44]
jg 0x140259e46
cmp dword [rsp + 0x24], 0x7fffffff
jbe 0x140259e4b
jmp 0x140259fa0
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x24]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rsp + 0x4c]
dec ecx
mov edx, dword [rsp + 0x44]
sub edx, 4
imul ecx, edx
sub eax, ecx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 0x18], eax
mov rax, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x4c]
mov dword [rax + 8], ecx
movsxd rax, dword [rsp + 0x4c]
shl rax, 2
mov rcx, rax
call fcn.14012a0c0
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x10], 0
jne 0x140259ead
mov eax, 7
jmp 0x140259fbb
mov eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
cdqe
mov rcx, qword [rsp + 0x38]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.140188790
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx + 0x10]
mov dword [rcx + rdx], eax
mov dword [rsp + 0x48], 1
jmp 0x140259ef7
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x48], eax
jge 0x140259f97
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
mov eax, dword [rcx + rax*4]
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x80], 0
mov rcx, qword [rsp + 0xa0]
call fcn.14013f570
xor r9d, r9d
lea r8, [rsp + 0x80]
mov edx, dword [rsp + 0x7c]
mov rcx, rax
call fcn.1401390d0
mov dword [rsp + 0x78], eax
cmp dword [rsp + 0x78], 0
je 0x140259f5e
mov eax, dword [rsp + 0x78]
jmp 0x140259fbb
mov rcx, qword [rsp + 0x80]
call fcn.1401395c0
mov rcx, rax
call fcn.140188790
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x58]
mov rdx, qword [rdx + 0x10]
mov dword [rdx + rcx*4], eax
mov rcx, qword [rsp + 0x80]
call fcn.140139190
nop
jmp 0x140259eed
jmp 0x140259c10
xor eax, eax
jmp 0x140259fbb
mov rax, qword [rsp + 0xa8]
mov byte [rax + 0x20], 0
mov rcx, qword [rsp + 0xa8]
call fcn.1402594c0
xor eax, eax
add rsp, 0x98
ret