Function at 0x140001240
Capabilities:
Allocate or change rwx memory

Disassembly:
mov word [rsp + 0x20], r9w
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov word [rsp + 8], cx
sub rsp, 0x58
movsx eax, word [rsp + 0x68]
cmp eax, 0x14
jge 0x14000126e
mov eax, 0xca
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x68]
cmp eax, 0x21
jle 0x14000128b
movsx eax, word [rsp + 0x30]
mov ecx, 0x74b6
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x30], ax
movsx eax, word [rsp + 0x68]
cmp eax, 9
jl 0x1400012a5
movsx eax, word [rsp + 0x30]
imul eax, eax, 0x38df
mov word [rsp + 0x30], ax
mov byte [rsp + 0x35], 0x2a
movsx eax, word [rsp + 0x80]
cmp eax, 0xe7
je 0x1400012c7
movsx eax, word [rsp + 0x70]
and eax, 0x47d5
mov byte [rsp + 0x35], al
movsx eax, word [rsp + 0x60]
and eax, 0x398d
mov byte [rsp + 0x35], al
mov byte [0x1400405b6], 0xe9
movsx eax, word [rsp + 0x68]
cmp eax, 0x19
je 0x1400012ed
mov byte [0x1400405b6], 0x90
movsx eax, word [rsp + 0x78]
cmp eax, 0x18
jg 0x14000130b
movsx eax, word [rsp + 0x78]
movsx ecx, byte [0x1400405b6]
or eax, ecx
mov byte [0x1400405b6], al
movzx ecx, word [rsp + 0x40]
call fcn.1400027d0
movzx ecx, word [rsp + 0x38]
call fcn.1400027d0
movzx ecx, word [rsp + 0x38]
call fcn.1400027d0
mov cx, 0x75
call fcn.1400027d0
movsx eax, word [rsp + 0x80]
mov dword [rsp + 0x48], eax
movzx ecx, word [rsp + 0x80]
call fcn.1400027d0
mov ecx, dword [rsp + 0x48]
cmp ecx, eax
jge 0x140001370
movsx eax, word [rsp + 0x68]
movsx ecx, word [rsp + 0x60]
cmp eax, ecx
jg 0x140001370
movzx ecx, word [rsp + 0x70]
call fcn.1400027d0
cmp eax, 0x4d
je 0x1400013c8
movsx eax, word [rsp + 0x78]
cmp eax, 0xea
jg 0x140001381
mov byte [rsp + 0x34], 0x9c
movsx eax, word [rsp + 0x78]
cmp eax, 0x2f
jl 0x140001399
movsx eax, word [rsp + 0x78]
or eax, 0x7e1
mov byte [rsp + 0x34], al
movsx eax, word [rsp + 0x80]
cmp eax, 0x99
jl 0x1400013b9
movsx eax, word [rsp + 0x80]
and eax, 0x3be7
mov byte [rsp + 0x34], al
movzx ecx, word [rsp + 0x78]
call fcn.1400027d0
jmp 0x140001522
mov eax, 0x50
mov word [rsp + 0x38], ax
movsx eax, word [rsp + 0x60]
cmp eax, 0x34
jl 0x1400013e6
mov eax, 0x4df4
mov word [rsp + 0x38], ax
movsx eax, word [rsp + 0x68]
cmp eax, 0x33
jne 0x140001403
movsx eax, word [rsp + 0x38]
mov ecx, 0x411e
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x38], ax
mov eax, 0xf8
mov word [rsp + 0x44], ax
movsx eax, word [rsp + 0x44]
movsx ecx, word [rsp + 0x44]
or eax, ecx
mov word [rsp + 0x44], ax
movsx eax, word [rsp + 0x44]
mov ecx, 0x6d9
sub ecx, eax
mov eax, ecx
mov word [rsp + 0x44], ax
movsx eax, word [rsp + 0x70]
cmp eax, 0xf3
jge 0x140001447
mov eax, 0x3a
mov word [rsp + 0x3c], ax
movsx eax, word [rsp + 0x78]
or eax, 0x6115
mov word [rsp + 0x3c], ax
movsx eax, word [rsp + 0x78]
cmp eax, 0xb8
jle 0x140001471
movsx eax, word [rsp + 0x68]
or eax, 0x2d01
mov word [rsp + 0x3c], ax
movsx eax, word [rsp + 0x60]
cmp eax, 0x8f
jl 0x140001487
mov eax, 0x67
mov word [rsp + 0x40], ax
movsx eax, word [rsp + 0x70]
cmp eax, 0xc
jle 0x1400014a0
movsx eax, word [rsp + 0x78]
and eax, 0x59f8
mov word [rsp + 0x40], ax
movsx eax, word [rsp + 0x40]
movsx ecx, word [rsp + 0x40]
imul eax, ecx
mov word [rsp + 0x40], ax
movsx eax, word [rsp + 0x80]
cmp eax, 0xd8
jle 0x1400014cb
mov dword [0x140040558], 0xfa
movsx eax, word [rsp + 0x60]
movsx ecx, word [rsp + 0x60]
xor eax, ecx
mov dword [0x140040558], eax
movsx eax, word [rsp + 0x70]
cmp eax, 0x3a
jne 0x1400014f8
mov eax, dword [0x140040558]
or eax, 0x467f
mov dword [0x140040558], eax
mov cx, 0xdd
call fcn.1400027d0
movzx ecx, word [rsp + 0x80]
call fcn.1400027d0
movzx ecx, word [rsp + 0x60]
call fcn.1400027d0
movzx ecx, word [rsp + 0x68]
call fcn.1400027d0
mov dword [0x14004052c], 0x1c6c
movsxd rax, dword [0x14004052c]
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [0x1400404f8], rax
movsx eax, word [rsp + 0x60]
movsx ecx, word [rsp + 0x60]
movzx r9d, byte [rsp + 0x68]
mov r8d, eax
mov dx, 0x43
call fcn.140002580
mov dword [rsp + 0x20], 0xf1
mov r9d, 6
movzx r8d, word [rsp + 0x70]
mov dx, 0x6d
mov cx, 0xa9
call fcn.140003a40
movsx eax, word [rsp + 0x30]
add rsp, 0x58
ret