Function at 0x18008cc40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1120]
mov eax, 0x1220
call fcn.180101d50
sub rsp, rax
mov rax, qword [0x180140080]
xor rax, rsp
mov qword [rbp + 0x1110], rax
mov r15, rdx
mov r14, rcx
mov qword [rbp - 0x58], rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xorps xmm0, xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
movups xmmword [rbp + 0x80], xmm0
mov ebx, r12d
xorps xmm1, xmm1
movups xmmword [rdx], xmm1
mov qword [rdx], r12
mov qword [rdx + 8], r12
mov qword [rdx + 0x10], r12
mov esi, 1
mov dword [rsp + 0x30], esi
mov ecx, 0x10000
mov edi, 0x5a4d
mov r13d, 0x20b
nop word [rax + rax]
mov rax, qword [r14]
lea r8, [rbp + 0x60]
mov rdx, rcx
mov rcx, r14
call qword [rax + Ordinal_50]
cmp eax, 0xc000000d
je 0x18008d378
cmp eax, 0xc0000022
je 0x18008d378
cmp eax, 0xc000010a
je 0x18008d378
test eax, eax
jne 0x18008d35d
cmp dword [rbp + 0x80], 0x1000
jne 0x18008d35d
mov eax, dword [rbp + 0x70]
cmp eax, 1
je 0x18008d35d
bt eax, 8
jb 0x18008d35d
mov rdx, qword [rbp + 0x68]
cmp rbx, rdx
je 0x18008d35d
xorps xmm0, xmm0
movups xmmword [rbp + 8], xmm0
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r12w
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r12w
mov rax, qword [r14]
mov qword [rsp + 0x20], r12
mov r9d, 0x1000
lea r8, [rbp + 0x110]
mov rcx, r14
call qword [rax + Ordinal_26]
test eax, eax
jne 0x18008d34b
movsxd rax, dword [rbp + 0x14c]
lea rax, [rbp + rax + 0x110]
cmp word [rbp + 0x110], di
jne 0x18008d34b
cmp dword [rax], 0x4550
jne 0x18008d34b
movzx ecx, word [rax + 0x18]
mov edx, 0x10b
cmp cx, dx
jne 0x18008cdc8
mov dword [rbp + 0x4c], r12d
jmp 0x18008cdd5
cmp cx, r13w
jne 0x18008cddb
mov dword [rbp + 0x4c], 1
mov eax, dword [rax + 0x50]
mov dword [rbp + 0x48], eax
mov rdx, qword [rbp + 0x68]
mov qword [rbp], rdx
mov qword [rbp + 0x50], r12
mov byte [rbp + 0x58], 0
mov rax, qword [r14]
mov qword [rsp + 0x20], 0x1000
lea r9, [rbp + 0x110]
mov r8d, 2
mov rcx, r14
call qword [rax + Ordinal_41]
xorps xmm0, xmm0
test eax, eax
jne 0x18008d133
mov r8, 0xffffffffffffffff
cmp byte [r14 + 0x16], 1
jne 0x18008cee8
mov edx, dword [rbp + 0x114]
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], r12
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18008ce40
lea rcx, [rsp + 0x68]
call fcn.1800065a0
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x48]
call fcn.18006f8f0
mov rbx, rax
lea rax, [rbp + 0x28]
cmp rax, rbx
je 0x18008cedf
mov rdx, qword [rbp + 0x40]
cmp rdx, 7
jbe 0x18008ceaf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008ceaa
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008d3a5
call fcn.18010107c
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r12w
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x38], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea rcx, [rbp - 0x48]
jmp 0x18008cfa1
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x60], r12
mov rdx, qword [rbp + 0x118]
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x18008cf00
lea rcx, [rbp - 0x78]
call fcn.1800065a0
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x28]
call fcn.18006f8f0
mov rbx, rax
lea rax, [rbp + 0x28]
cmp rax, rbx
je 0x18008cf9d
mov rdx, qword [rbp + 0x40]
cmp rdx, 7
jbe 0x18008cf6d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008cf68
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008d3ac
call fcn.18010107c
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x40], 7
mov word [rbp + 0x28], r12w
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x28], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x38], xmm1
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], 7
mov word [rbx], r12w
lea rcx, [rbp - 0x28]
call fcn.1800058a0
mov r9, qword [rbp + 0x38]
lea rdx, [rbp + 0x28]
test r9, r9
je 0x18008d0ad
cmp qword [rbp + 0x40], 7
seta r11b
mov r10, qword [rbp + 0x28]
cmova rdx, r10
test r9, r9
je 0x18008d00b
lea rcx, [r9 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rax, [rdx + rax*2]
cmp word [rax], 0x5c
je 0x18008cfff
nop dword [rax]
cmp rax, rdx
je 0x18008d00b
sub rax, 2
cmp word [rax], 0x5c
jne 0x18008cff0
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
jne 0x18008d05b
lea rdx, [rbp + 0x28]
test r11b, r11b
cmovne rdx, r10
test r9, r9
je 0x18008d0a9
lea rcx, [r9 - 1]
mov rax, 0xffffffffffffffff
cmp rcx, rax
cmovb rax, rcx
lea rax, [rdx + rax*2]
cmp word [rax], 0x2f
je 0x18008d04f
nop dword [rax + rax]
cmp rax, rdx
je 0x18008d0a9
sub rax, 2
cmp word [rax], 0x2f
jne 0x18008d040
sub rax, rdx
sar rax, 1
cmp rax, 0xffffffffffffffff
je 0x18008d0a9
lea rcx, [rax + 1]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
cmp r9, rcx
jb 0x18008d3ba
sub r9, rcx
mov r8, 0xffffffffffffffff
cmp r9, r8
cmovb r8, r9
lea rax, [rbp + 0x28]
test r11b, r11b
cmovne rax, r10
lea rdx, [rax + rcx*2]
lea rcx, [rsp + 0x48]
call fcn.1800065a0
or esi, 0xc
jmp 0x18008d0ba
lea rdx, [rbp + 0x28]
lea rcx, [rsp + 0x48]
call fcn.180005480
or esi, 4
mov dword [rsp + 0x30], esi
mov rdx, qword [rbp + 0x20]
cmp rdx, 7
jbe 0x18008d0fe
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18008d0f9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18008d3b3
call fcn.18010107c
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rbp + 8], xmm0
movups xmm1, xmmword [rsp + 0x58]
movups xmmword [rbp + 0x18], xmm1
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], 7
mov word [rsp + 0x48], r12w
lea rcx, [rsp + 0x48]
call fcn.1800058a0
jmp 0x18008d230
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
mov r8, qword [rbp]
lea rdx, str.Unknown_0x_I64x
lea rcx, [rbp + 0x90]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, [rbp + 0x90]
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x18008d191
mov rax, qword [rbp + 0x40]
cmp rdx, rax
ja 0x18008d1d2
lea rdi, [rbp + 0x28]
cmp rax, 7
cmova rdi, qword [rbp + 0x28]
mov qword [rbp + 0x38], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
lea rdx, [rbp + 0x90]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi], r12w
jmp 0x18008d1e2
lea r9, [rbp + 0x90]
lea rcx, [rbp + 0x28]
call fcn.180006260
mov rdi, qword [rbp + 0x38]
lea r9, [rbp + 0x28]
cmp qword [rbp + 0x40], 7
cmova r9, qword [rbp + 0x28]
mov rax, qword [rbp + 0x20]
cmp rdi, rax
ja 0x18008d224
lea rbx, [rbp + 8]
cmp rax, 7
cmova rbx, qword [rbp + 8]
mov qword [rbp + 0x18], rdi
lea r8, [rdi + rdi]
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x18008d230
mov rdx, rdi
lea rcx, [rbp + 8]
call fcn.180006260
mov ecx, reloc.WS2_32.dll_WSASetLastError
call fcn.180100f70
mov rdi, rax
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_struct_blackbone::ModuleData_const__.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov qword [rsp + 0x38], rbx
mov rax, qword [rbp]
mov qword [rbx], rax
lea rcx, [rbx + 8]
lea rdx, [rbp + 8]
call fcn.180005480
nop
lea rcx, [rbx + 0x28]
lea rdx, [rbp + 0x28]
call fcn.180005480
mov eax, dword [rbp + 0x48]
mov dword [rbx + 0x48], eax
mov eax, dword [rbp + 0x4c]
mov dword [rbx + 0x4c], eax
mov rax, qword [rbp + 0x50]
mov qword [rbx + 0x50], rax
movzx eax, byte [rbp + 0x58]
mov byte [rbx + 0x58], al
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
or esi, 2
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rdi
mov rdx, qword [r15 + 8]
cmp rdx, qword [r15 + 0x10]
je 0x18008d2dc
mov qword [rdx], rbx
mov qword [rdx + 8], rdi
movdqu xmmword [rsp + 0x38], xmm0
add qword [r15 + 8], 0x10
jmp 0x18008d2ea
lea r8, [rsp + 0x38]
mov rcx, r15
call fcn.180086130
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x18008d32e
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18008d32a
mov rbx, qword [rsp + 0x40]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18008d32a
mov rcx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov esi, dword [rsp + 0x30]
mov rbx, qword [rbp + 0x68]
lea rcx, [rbp + 0x28]
call fcn.1800058a0
lea rcx, [rbp + 8]
call fcn.1800058a0
mov edi, 0x5a4d
jmp 0x18008d35d
lea rcx, [rbp + 0x28]
call fcn.1800058a0
lea rcx, [rbp + 8]
call fcn.1800058a0
mov rcx, qword [rbp + 0x60]
add rcx, qword [rbp + 0x78]
movabs rax, 0x7ffffffeffff
cmp rcx, rax
jb 0x18008ccd0
mov rax, r15
mov rcx, qword [rbp + 0x1110]
xor rcx, rsp
call fcn.180100f50
mov rbx, qword [rsp + 0x1270]
add rsp, 0x1220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180005cc0
int3