Function at 0x4023c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.00408530
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00408530
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0040e0c4]
mov r12, rcx
test ebx, ebx
jle 0x4024f0
mov rax, qword [0x0040e0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x40240c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402493
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x4023f0
mov rcx, r12
call fcn.00402d70
mov rsi, rax
test rax, rax
je 0x402512
mov rax, qword [0x0040e0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.00402ea0
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040e0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4024f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40248c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x4024a0
add dword [0x0040e0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0040e0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40248c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402350
nop dword [rax]
xor ebx, ebx
jmp 0x402417
mov rax, qword [0x0040e0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00402350
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00402350
nop
nop word cs:[rax + rax]
nop dword [rax]
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x80]
mov edi, dword [0x0040e0c0]
test edi, edi
je 0x402568
lea rsp, [rbp - 0x48]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov dword [0x0040e0c0], 1
call fcn.00402df0
cdqe
lea rax, [rax + rax*4]
lea rax, [rax*8 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.00403030
mov r12, qword [0x0040a750]
mov rbx, qword [0x0040a760]
mov dword [0x0040e0c4], 0
sub rsp, rax
lea rax, [rsp + 0x20]
mov qword [0x0040e0c8], rax
mov rax, r12
sub rax, rbx
cmp rax, 7
jle 0x402552
mov edx, dword [rbx]
cmp rax, 0xb
jg 0x4026f8
test edx, edx
jne 0x402770
mov eax, dword [rbx + 4]
test eax, eax
jne 0x402770
mov edx, dword [rbx + 8]
cmp edx, 1
jne 0x4027b1
add rbx, 0xc
cmp rbx, r12
jae 0x402552
mov r13, qword [0x0040a780]
movabs r14, 0xffffffff00000000
jmp 0x40263d
movzx edx, byte [rsi]
mov rcx, rsi
mov r8, rdx
or r8, 0xffffffffffffff00
test dl, dl
cmovs rdx, r8
sub rdx, rax
add r15, rdx
call 0x4023c0
mov byte [rsi], r15b
add rbx, 0xc
cmp rbx, r12
jae 0x4026a0
mov eax, dword [rbx]
mov esi, dword [rbx + 4]
movzx edx, byte [rbx + 8]
add rax, r13
add rsi, r13
mov r15, qword [rax]
cmp edx, 0x20
je 0x402748
ja 0x402720
cmp edx, 8
je 0x402610
cmp edx, 0x10
jne 0x4027a5
movzx edx, word [rsi]
mov rcx, rsi
mov r8, rdx
or r8, 0xffffffffffff0000
test dx, dx
cmovs rdx, r8
add rbx, 0xc
sub rdx, rax
add r15, rdx
call 0x4023c0
mov word [rsi], r15w
cmp rbx, r12
jb 0x40263d
nop dword [rax + rax]
mov eax, dword [0x0040e0c4]
test eax, eax
jle 0x402552
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
lea r12, [rbp - 0x54]
nop dword [rax + rax]
mov rax, qword [0x0040e0c8]
add rax, rbx
mov r8d, dword [rax]
test r8d, r8d
je 0x4026df
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 8]
mov r9, r12
call rsi
add edi, 1
add rbx, 0x28
cmp edi, dword [0x0040e0c4]
jl 0x4026c0
jmp 0x402552
test edx, edx
jne 0x402770
mov eax, dword [rbx + 4]
mov ecx, eax
or ecx, dword [rbx + 8]
jne 0x4025d8
mov edx, dword [rbx + 0xc]
add rbx, 0xc
jmp 0x4025cd
cmp edx, 0x40
jne 0x4027a5
mov rdx, qword [rsi]
mov rcx, rsi
sub rdx, rax
add r15, rdx
call 0x4023c0
mov qword [rsi], r15
jmp 0x402634
mov edx, dword [rsi]
mov rcx, rdx
or rdx, r14
test ecx, ecx
cmovns rdx, rcx
mov rcx, rsi
sub rdx, rax
add r15, rdx
call 0x4023c0
mov dword [rsi], r15d
jmp 0x402634
cmp rbx, r12
jae 0x402552
mov r14, qword [0x0040a780]
mov esi, dword [rbx + 4]
mov r13d, dword [rbx]
add rbx, 8
add rsi, r14
add r13d, dword [rsi]
mov rcx, rsi
call 0x4023c0
mov dword [rsi], r13d
cmp rbx, r12
jb 0x402780
jmp 0x4026a0
lea rcx, str.__Unknown_pseudo_relocation_bit_size__d._n
call fcn.00402350
lea rcx, str.__Unknown_pseudo_relocation_protocol_version__d._n
call fcn.00402350
nop
nop
nop
sub rsp, 0x58
mov rax, qword [0x0040e0d0]
test rax, rax
je 0x4027fc
movsd xmm0, qword [rsp + 0x80]
mov dword [rsp + 0x20], ecx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rdx
movsd qword [rsp + 0x30], xmm2
movsd qword [rsp + 0x38], xmm3
movsd qword [rsp + 0x40], xmm0
call rax
nop
add rsp, 0x58
ret