Function at 0x100049340
Capabilities:
Allocate or change rwx memory
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
lea r12, [rcx + 0x18]
lea r11, [0x100000000]
mov qword [rsp + 0x78], rdx
mov eax, 0xfffffff
mov r13, qword [r12]
mov qword [rsp + 0x98], rcx
lea r15, [0x100000000]
mov edx, dword [r13 + 1]
mov esi, dword [r13 + 5]
and rsi, rax
shr rdx, 1
mov qword [rsp + 0x88], r12
and rdx, rax
add rsi, r15
mov eax, dword [0x1000d5e38]
mov qword [rsp + 0xa0], rsi
mov rcx, rax
lea rbp, [rax + rdx - 1]
mov rax, rbp
xor edx, edx
div rcx
mov eax, dword [0x1000d5e38]
sub rbp, rdx
mov eax, dword [0x1000d5e38]
mov eax, dword [0x100172988]
mov r10d, dword [0x100172988]
test eax, eax
je 0x100049480
xor r8d, r8d
xor eax, eax
mov edi, dword [0x100172988]
dec edi
inc rdi
mov r9, rdi
je 0x10004943a
mov rcx, qword [0x100346e50]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x10004940b
mov qword [0x100346e50], rcx
xor edx, edx
div rdi
test r10, r10
je 0x100049475
mov ecx, 0xffff349a
mov eax, 0xcb65
inc r8
lock cmpxchg dword [r11 + rdx*4 + 0x349c90], ecx
je 0x100049710
lea rax, [rdx + 1]
xor edx, edx
mov ecx, dword [0x100172988]
div rcx
cmp r8, r10
jb 0x100049444
xor ebx, ebx
test rbx, rbx
jne 0x1000495ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
xor edi, edi
inc rdi
mov rcx, qword [0x100348890]
xor eax, eax
mov r8, rcx
mov r9, rcx
test rcx, rcx
je 0x1000494d8
mov rcx, qword [0x100346e50]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test r9, r9
jne 0x1000494a9
mov qword [0x100346e50], rcx
xor edx, edx
div r8
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdx
shl rcx, 0x10
add rcx, qword [0x1003475b0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x100049543
mov rcx, rax
lea r9, [0x1002af874]
mov r8d, ebp
mov rdx, rax
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlInstallFunctionTableCallback]
test al, al
jne 0x100049557
mov r8d, 0x8000
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp rdi, 0x11
jb 0x10004948b
xor ebx, ebx
cmp rbx, 0x10000
jb 0x100049565
test bl, 3
je 0x10004958a
test rbx, rbx
je 0x100049588
mov rcx, rbx
or rcx, 3
call qword [sym.imp.ntdll.dll_RtlDeleteFunctionTable]
mov rcx, rbx
mov r8d, 0x8000
xor edx, edx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor ebx, ebx
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
lea r11, [0x100000000]
je 0x1000493d4
mov rdi, rbx
mov rcx, rbp
xor eax, eax
rep stosb byte [rdi], al
mov eax, 0x79d70e8d
add qword [r12], 9
mov r13d, dword [r13 + 1]
mov ebp, esi
shr r13, 1
and r13d, 0xfffffff
sub ebp, r15d
mov r8d, dword [0x1000d5e38]
xor eax, eax
sub r8, r13
inc r8
mov rdi, r8
mov qword [rsp + 0x90], r13
mov dword [rsp + 0x30], ebp
je 0x100049620
mov rcx, qword [0x100346e50]
imul rcx, rcx, 0x343fd
shl rax, 0x10
shr rdi, 0x10
add rcx, 0x269ec3
mov rdx, rcx
shr rdx, 0x10
movzx edx, dx
or rax, rdx
test rdi, rdi
jne 0x1000495f1
mov qword [0x100346e50], rcx
xor edx, edx
div r8
mov ecx, ebp
lea r14, [rdx + rbx]
mov r8, r14
mov qword [rsp + 0x80], r14
mov rdx, r13
mov eax, 0x2145e47a
mov rdx, qword [r13 + rsi]
xor dil, dil
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x70], rdx
mov eax, 0xd3b4ce67
mov rcx, r15
mov eax, 0xfffffff
mov ebx, 4
mov r9d, dword [rsp + 0x74]
mov r11, qword [rsp + 0x70]
and qword [rsp + 0x48], 0
and r11, rax
and r9, rax
mov rax, qword [0x100037580]
add r11, r15
sub rcx, rax
mov qword [rsp + 0x50], rcx
jne 0x100049727
xor r10d, r10d
test r9, r9
je 0x100049a57
mov eax, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x48]
mov r15d, 0xfca946ef
movzx ecx, byte [r10 + r11]
inc r10
sub ecx, 0x356b911
add r8d, ecx
add ecx, eax
mov eax, ecx
imul eax, eax, 0x7fd3
rol eax, 0xf
ror ecx, 0xf
xor eax, ecx
imul rax, r15
mov qword [rsp + 0x38], rax
mov ecx, dword [rsp + 0x38]
shr rax, 0x20
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov eax, edx
sar eax, 0x1f
btr eax, 0x1f
add eax, edx
add r8d, eax
cmp r10, r9
jb 0x1000496ab
mov dword [rsp + 0x4c], eax
mov dword [rsp + 0x48], r8d
jmp 0x100049a57
mov ecx, dword [0x1000d5e38]
imul rcx, rdx
lea rbx, [rcx + r11 + 0x313000]
jmp 0x100049477
mov rbp, 0xfffffffffffff000
movsxd rcx, dword [0x10000003c]
mov r8d, dword [rcx + r15 + 0xb0]
add r8, r15
mov ecx, dword [rcx + r15 + 0xb4]
lea rax, [r11 + r9]
mov qword [rsp + 0x60], rax
mov eax, r11d
sub eax, r15d
mov r14d, eax
mov r10d, eax
add rax, r9
mov r15, rax
and r10, rbp
and r15, rbp
sub r14, r10
sub rax, r15
add rcx, r8
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x68], rax
jmp 0x10004978d
mov eax, dword [r8]
cmp rax, r10
jae 0x100049792
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, rcx
jne 0x10004977e
xor ebp, ebp
cmp r8, rcx
je 0x1000497d0
mov eax, dword [r8]
cmp rax, r10
jne 0x1000497d0
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1000497cb
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, r14
jae 0x1000497cb
inc rbp
add rdx, 2
cmp rbp, rcx
jne 0x1000497b2
mov rcx, qword [rsp + 0x38]
mov r10d, dword [rsp + 0x48]
mov r9d, dword [rsp + 0x4c]
mov r13, qword [rsp + 0x50]
mov edi, 0xfca946ef
cmp r8, rcx
je 0x1000499b7
mov eax, dword [r8]
cmp rax, r15
ja 0x1000499b7
mov edx, dword [r8 + 4]
lea rax, [rdx - 8]
shr rax, 1
cmp rbp, rax
jne 0x100049825
add r8, rdx
cmp r8, rcx
je 0x1000499b7
mov eax, dword [r8]
cmp rax, r15
ja 0x1000499b7
xor ebp, ebp
jmp 0x1000497f9
mov eax, dword [r8]
cmp rax, r15
jne 0x100049843
movzx eax, word [r8 + rbp*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x68]
jae 0x1000499b7
mov edx, 0xf000
mov rax, rbp
inc rbp
test word [r8 + rax*2 + 8], dx
je 0x1000497e4
xor r12d, r12d
movzx ebx, word [r8 + rax*2 + 8]
lea rax, [0x100000000]
mov r14d, ebx
and r14d, 0xfff
add r14d, dword [r8]
add r14, rax
mov rax, r14
sub rax, r11
je 0x1000498e7
mov rsi, rax
movzx ecx, byte [r11 + r12]
inc r12
sub ecx, 0x356b911
add r10d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0x7fd3
rol eax, 0xf
ror ecx, 0xf
xor eax, ecx
imul rax, rdi
mov qword [rsp + 0x58], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x58]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp r12, rsi
jb 0x100049881
mov dword [rsp + 0x4c], r9d
mov dword [rsp + 0x48], r10d
mov rax, qword [r14]
shr ebx, 0xc
cmp ebx, 3
mov qword [rsp + 0x58], rax
je 0x100049903
sub ebx, 0xa
neg ebx
sbb edx, edx
add edx, 3
jmp 0x100049908
mov edx, 2
mov r11, r13
mov ebx, 4
neg r11
sub edx, 2
je 0x100049933
cmp edx, 1
je 0x100049923
or r11, 0xffffffffffffffff
jmp 0x10004993b
add rax, r11
mov qword [rsp + 0x58], rax
mov r11d, 8
jmp 0x10004993b
add dword [rsp + 0x58], r11d
mov r11, rbx
xor r12d, r12d
test r11, r11
je 0x1000499aa
movzx ecx, byte [rsp + r12 + 0x58]
inc r12
sub ecx, 0x356b911
add r10d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0x7fd3
rol eax, 0xf
ror ecx, 0xf
xor eax, ecx
imul rax, rdi
mov qword [rsp + 0x50], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x50]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp r12, r11
jb 0x100049943
mov dword [rsp + 0x4c], r9d
mov dword [rsp + 0x48], r10d
add r11, r14
mov rcx, qword [rsp + 0x38]
jmp 0x1000497e4
xor r8d, r8d
mov r12, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x60]
sub rbp, r11
mov dil, r8b
mov r13, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xa0]
je 0x100049a4b
mov r15d, 0xfca946ef
movzx ecx, byte [r11 + r8]
inc r8
sub ecx, 0x356b911
add r10d, ecx
add ecx, r9d
mov eax, ecx
imul eax, eax, 0x7fd3
rol eax, 0xf
ror ecx, 0xf
xor eax, ecx
imul rax, r15
mov qword [rsp + 0x38], rax
shr rax, 0x20
mov ecx, dword [rsp + 0x38]
lea edx, [rcx + rax*2 - 0x7fffffff]
sar ecx, 0x1f
btr ecx, 0x1f
sub edx, ecx
mov r9d, edx
sar r9d, 0x1f
btr r9d, 0x1f
add r9d, edx
add r10d, r9d
cmp r8, rbp
jb 0x1000499e5
mov dword [rsp + 0x4c], r9d
mov dword [rsp + 0x48], r10d
mov r14, qword [rsp + 0x80]
mov ebp, dword [rsp + 0x30]
xor ecx, ecx
mov rax, rcx
inc rcx
and eax, 7
mov al, byte [rsp + rax + 0x48]
cmp rcx, 8
mov byte [rsp + rcx + 0xa7], al
jb 0x100049a59
mov eax, 0x5305eea4
mov r10, rsi
mov r15, r13
mov r11, r14
and r15d, 7
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x38], r14
mov r14d, ebp
not r14d
mov qword [rsp + 0x50], rsi
je 0x100049f45
xor r8d, r8d
xor r11d, r11d
and dword [rsp + 0x60], r8d
mov dword [rsp + 0x30], r8d
test r15d, r15d
jle 0x100049af2
lea r9d, [r8 + 0x38]
cmp r11d, ebx
movzx edx, byte [r10]
jge 0x100049ad1
lea ecx, [r9 - 0x20]
shl edx, cl
or dword [rsp + 0x60], edx
jmp 0x100049ad9
mov ecx, r9d
shl edx, cl
or r8d, edx
inc r11d
inc r10
sub r9d, 8
cmp r11d, r15d
jl 0x100049abc
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x50], r10
mov ecx, r14d
movzx r10d, word [rsp + 0xac]
movzx r11d, ax
movzx r9d, word [rsp + 0xaa]
movzx r8d, word [rsp + 0xae]
mov ebx, r14d
sub ebx, eax
rol ebx, 5
ror ecx, 0x10
imul ebx, r10d
sub ebx, ecx
xor ebx, ebp
mov ecx, ebx
mov ebp, dword [rsp + 0xac]
mov edx, ebx
ror edx, 0xc
xor ecx, r11d
imul ecx, r9d
add edx, ecx
xor r14d, edx
mov ecx, r14d
lea edx, [rbp + r14]
ror edx, 5
rol ecx, 0xa
imul edx, r11d
sub edx, ecx
xor ebx, edx
mov edx, ebx
xor edx, r10d
mov ecx, ebx
shr ecx, 0xb
imul edx, r8d
xor edx, ecx
xor r14d, edx
mov ecx, r14d
mov edx, eax
xor edx, r14d
ror edx, 5
rol ecx, 8
imul edx, r10d
xor ecx, edx
mov edx, ebp
xor ebp, eax
xor ebx, ecx
mov ecx, ebx
xor edx, ebx
rol edx, 1
shr ecx, 0xd
imul edx, r9d
sub edx, ecx
xor r14d, edx
xor ebp, r14d
mov edx, r14d
xor edx, r9d
mov ecx, r14d
mov r14d, dword [rsp + 0x30]
rol edx, 3
rol ecx, 0xb
imul edx, r11d
xor ecx, edx
xor ebx, ecx
xor ebp, ebx
mov ecx, ebp
mov edx, eax
xor edx, ebp
rol edx, 8
ror ecx, 5
imul edx, r10d
sub edx, ecx
xor ebx, edx
mov edx, ebx
xor edx, r8d
mov ecx, ebx
shr ecx, 9
imul edx, r9d
add edx, ecx
xor ebp, edx
mov ecx, ebp
mov edx, ebp
sub edx, dword [rsp + 0xac]
ror edx, 7
rol ecx, 9
imul edx, r11d
xor r10d, r10d
xor ecx, edx
lea edx, [r10 + 4]
xor ebp, r14d
mov r9d, ebp
xor ecx, dword [rsp + 0x60]
xor ebx, ecx
mov r8d, ebx
test r15d, r15d
jle 0x100049c42
mov rcx, qword [rsp + 0x38]
cmp r10d, edx
jge 0x100049c28
rol r8d, 8
mov byte [rcx], r8b
inc rcx
xor dil, r8b
jmp 0x100049c35
rol r9d, 8
mov byte [rcx], r9b
inc rcx
xor dil, r9b
inc r10d
cmp r10d, r15d
jl 0x100049c14
mov qword [rsp + 0x38], rcx
lea ecx, [r15 - 4]
test ecx, ecx
jle 0x100049f2d
sub edx, ecx
shl edx, 3
mov ecx, edx
shr ebp, cl
shl ebp, cl
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x38]
mov r15, r13
shr r15, 3
test r15, r15
je 0x100049e78
mov r12d, dword [rsp + 0xac]
mov esi, dword [rsp + 0x60]
mov ecx, dword [rsp + 0xac]
mov edx, ecx
movzx ecx, cx
xor edx, eax
mov dword [rsp + 0x68], ecx
movzx ecx, word [rsp + 0xaa]
mov dword [rsp + 0x38], ecx
movzx ecx, ax
mov dword [rsp + 0x30], ecx
mov r13d, edx
movzx r8d, byte [r10 + 4]
movzx r9d, byte [r10 + 1]
movzx ecx, byte [r10]
shl ecx, 8
shl r8d, 8
add r10, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 6]
or r9d, ecx
shl r9d, 8
movzx ecx, byte [r10 - 5]
or r9d, ecx
movzx ecx, byte [r10 - 3]
or r8d, ecx
shl r8d, 8
movzx ecx, byte [r10 - 2]
or r8d, ecx
movzx ecx, byte [r10 - 1]
shl r8d, 8
or r8d, ecx
xor ebp, r8d
mov edx, ebp
sub edx, eax
mov ecx, ebp
rol edx, 5
ror ecx, 0x10
imul edx, dword [rsp + 0x68]
sub edx, ecx
xor edx, r9d
xor ebx, edx
mov ecx, ebx
xor ecx, dword [rsp + 0x30]
mov edx, ebx
ror edx, 0xc
imul ecx, dword [rsp + 0x38]
add edx, ecx
xor ebp, edx
lea edx, [r12 + rbp]
mov ecx, ebp
ror edx, 5
rol ecx, 0xa
imul edx, dword [rsp + 0x30]
sub edx, ecx
xor ebx, edx
mov edx, ebx
xor edx, dword [rsp + 0x68]
movzx ecx, word [rsp + 0xae]
imul edx, ecx
mov ecx, ebx
shr ecx, 0xb
xor edx, ecx
xor ebp, edx
mov edx, eax
xor edx, ebp
ror edx, 5
mov ecx, ebp
rol ecx, 8
imul edx, dword [rsp + 0x68]
xor ecx, edx
xor ebx, ecx
mov edx, r12d
movzx ecx, word [rsp + 0xaa]
xor edx, ebx
rol edx, 1
imul edx, ecx
mov ecx, ebx
shr ecx, 0xd
sub edx, ecx
movzx ecx, word [rsp + 0xaa]
xor ebp, edx
mov edx, ebp
xor edx, ecx
rol edx, 3
mov ecx, ebp
rol ecx, 0xb
imul edx, dword [rsp + 0x30]
xor ecx, edx
xor ebx, ecx
xor ebp, ebx
xor ebp, r13d
mov edx, eax
mov ecx, ebp
xor edx, ebp
rol edx, 8
ror ecx, 5
imul edx, dword [rsp + 0x68]
sub edx, ecx
movzx ecx, word [rsp + 0xae]
xor ebx, edx
mov edx, ebx
xor edx, ecx
movzx ecx, word [rsp + 0xaa]
imul edx, ecx
mov ecx, ebx
shr ecx, 9
add edx, ecx
xor ebp, edx
mov edx, ebp
mov ecx, ebp
xor ebp, r14d
mov r14d, r8d
sub edx, r12d
ror edx, 7
mov byte [r11 + 7], bpl
rol ecx, 9
imul edx, dword [rsp + 0x30]
xor ecx, edx
xor ecx, esi
mov esi, r9d
xor ebx, ecx
mov byte [r11 + 3], bl
xor dil, bl
ror ebx, 8
mov byte [r11 + 2], bl
xor dil, bpl
ror ebp, 8
xor dil, bl
ror ebx, 8
mov byte [r11 + 6], bpl
mov byte [r11 + 1], bl
xor dil, bpl
ror ebp, 8
xor dil, bl
ror ebx, 8
mov byte [r11 + 5], bpl
xor dil, bpl
mov byte [r11], bl
ror ebp, 8
mov byte [r11 + 4], bpl
add r11, 8
mov cl, bpl
xor cl, bl
xor dil, cl
ror ebx, 8
ror ebp, 8
sub r15, 1
jne 0x100049ca7
mov rsi, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
cmp dil, byte [r13 + rsi + 8]
je 0x100049f69
call fcn.1000de678
lea r14, [0x100046aec]
mov r10, rax
and r12, 0xfffffffffffffff8
mov r11, qword [rsp + 0x98]
lea r8, [r12 + 0xfff]
mov r9d, 0xffff
mov rax, 0xfffffffffffff000
and r10, rax
and r8, rax
mov qword [r11 + 0x10], r14
xor edi, edi
mov rcx, qword [0x100346e50]
imul rcx, rcx, 0x343fd
shl rdi, 0x10
shr r9, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or rdi, rdx
test r9, r9
jne 0x100049ec6
mov qword [0x100346e50], rcx
movabs rax, 0x8000800080008001
mul rdi
mov rax, qword [rsp + 0x78]
mov qword [rax + 0x98], r10
shr rdx, 0xf
imul rdx, rdx, 0xffff
sub rdi, rdx
inc rdi
mov qword [rax + 0xb0], rdi
mov qword [rsp + 0x78], r9
jmp 0x100049f5f
xor ebp, ebp
test ecx, ecx
jns 0x100049c59
neg ecx
shl ecx, 3
shr ebx, cl
shl ebx, cl
jmp 0x100049c59
mov dword [rsp + 0x60], ebp
xor ebp, ebp
xor ebx, ebx
jmp 0x100049c63
mov rax, qword [rsp + 0x78]
mov qword [r12], rax
add r12, 8
cmp r12, r8
jb 0x100049f52
jmp 0x10004a083
mov rax, qword [0x100037580]
lea r15, [0x100000000]
mov rbp, r15
mov rbx, rsi
mov r14, qword [rsp + 0x80]
sub rbx, r14
sub rbp, rax
jne 0x100049f96
test rbx, rbx
je 0x10004a070
xor edi, edi
mov r11, r14
sub r11, rsi
sub esi, r15d
mov rcx, qword [0x100021bc8]
lea r8d, [rcx - 1]
test r8d, r8d
lea r12d, [r13 + rsi]
lea r13, [0x100000000]
js 0x100049fed
lea eax, [r8 + rdi]
cdq
sub eax, edx
sar eax, 1
movsxd rdx, eax
mov r9d, dword [r13 + rdx*4 + 0x21bcc]
and r9d, 0xfffffff
cmp esi, r9d
jae 0x100049fe3
lea r8d, [rax - 1]
jmp 0x100049fe8
jbe 0x100049ff2
lea edi, [rax + 1]
cmp r8d, edi
jge 0x100049fbd
movsxd r10, edi
jmp 0x10004a069
movsxd r10, eax
jmp 0x10004a069
mov edx, dword [r13 + r10*4 + 0x21bcc]
mov eax, edx
and eax, 0xfffffff
cmp eax, r12d
jae 0x10004a070
mov r8, rdx
mov edi, edx
sar edx, 0x1e
shl edi, 2
and r8d, 0xfffffff
and edx, 3
sar edi, 0x1e
add r8, r15
xor r9d, r9d
and edi, 3
sub edi, 1
je 0x10004a045
sub edi, 1
je 0x10004a040
cmp edi, 1
jne 0x10004a04b
mov r9, rbp
jmp 0x10004a04b
mov r9, rbx
jmp 0x10004a04b
mov r9, rbp
sub r9, rbx
sub edx, 2
je 0x10004a05b
cmp edx, 1
jne 0x10004a066
add qword [r8 + r11], r9
jmp 0x10004a05f
add dword [r8 + r11], r9d
mov rcx, qword [0x100021bc8]
inc r10
mov eax, ecx
cmp r10, rax
jb 0x100049ff7
mov eax, dword [0x1000d5e38]
mov eax, 0x5efcafe1
mov r11, qword [rsp + 0x98]
mov qword [r11 + 0x10], r14
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret