Function at 0x1800cd280
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
mov rax, qword [0x18029e198]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov r14, r9
mov rsi, r8
mov r15, rdx
mov rax, qword [rcx + 8]
cmp qword [rax + 0x38], 0
jne 0x1800cd2f9
cmp qword [rax + 0x48], 0
je 0x1800cd2d0
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1801e67e0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp qword [r8 + 0x18], 0
je 0x1800cd2c5
lea rax, [rdx - 1]
movabs rcx, 0x7ffffffffffe
cmp rax, rcx
ja 0x1800cd2c5
mov edx, 0x40
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1800cd2c5
mov eax, 0x5a4d
cmp ax, word [r15]
jne 0x1800cd2c5
movsxd rbx, dword [r15 + 0x3c]
add rbx, r15
mov edx, 0x108
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1800cd2c5
cmp dword [rbx], 0x4550
jne 0x1800cd2c5
mov eax, dword [rbx + 0x90]
test eax, eax
je 0x1800cd2d0
lea rdi, [r15 + rax]
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x1800cd544
xor r12d, r12d
lea r13, [0x1800567d8]
add rax, r15
lea rdx, [0x180056640]
cmovne rdx, rax
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], sendto
mov byte [rbp - 0x61], 0
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x1800cd3a5
lea rcx, [rbp - 0x61]
call fcn.180099770
mov qword [rbp - 0x69], r13
lea rdx, [rsi + 8]
lea rcx, [rbp - 1]
call fcn.1800905d0
mov qword [rbp - 9], r13
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x29]
call fcn.1800905d0
mov qword [rbp - 0x31], r13
mov rax, qword [rbp + 0xf]
test eax, eax
je 0x1800cd3fc
lea rcx, [rbp - 1]
cmp qword [rbp + 0x17], 0x10
cmovae rcx, qword [rbp - 1]
mov edx, eax
call qword [sym.imp.USER32.dll_CharUpperBuffA]
mov edx, dword [rbp - 0x19]
test edx, edx
je 0x1800cd417
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0x10
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.USER32.dll_CharUpperBuffA]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 1]
call fcn.18009fc20
mov ebx, eax
mov qword [rbp - 0x31], r13
mov rdx, qword [rbp - 0x11]
cmp rdx, 0x10
jb 0x1800cd466
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800cd460
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800cd569
call fcn.1801e60f0
nop
mov qword [rbp - 0x19], r12
mov qword [rbp - 0x11], sendto
mov byte [rbp - 0x29], 0
mov qword [rbp - 9], r13
mov rdx, qword [rbp + 0x17]
cmp rdx, 0x10
jb 0x1800cd4b6
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800cd4b0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800cd56f
call fcn.1801e60f0
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 0x10
jb 0x1800cd4ee
inc rdx
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800cd4e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800cd556
call fcn.1801e60f0
nop
test ebx, ebx
jne 0x1800cd535
mov rbx, qword [r14]
movabs rax, 0xaaaaaaaaaaaaaaa
cmp qword [r14 + 8], rax
je 0x1800cd55c
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r12
mov ecx, 0x18
call fcn.1801e60b0
mov qword [rax + 0x10], rdi
inc qword [r14 + 8]
mov rcx, qword [rbx + 8]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov qword [rbp - 0x39], r12
mov qword [rbx + 8], rax
mov qword [rcx], rax
add rdi, 0x14
mov eax, dword [rdi + 0xc]
test eax, eax
jne 0x1800cd380
cmp qword [r14 + 8], 0
je 0x1800cd2d0
mov al, 1
jmp 0x1800cd2d2
call fcn.18010f960
nop
lea rcx, [0x180056e80]
call fcn.1801e7520
nop
call fcn.18010f960
nop
call fcn.18010f960
int3