Function at 0x14018c3a0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [0x14034e740]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x58], 0
cmp qword [rsp + 0x98], 0
je 0x14018c3fa
mov rax, qword [rsp + 0x90]
add rax, 0x10
mov rdx, qword [rsp + 0x98]
mov rcx, rax
call fcn.14018af30
nop
mov rax, qword [rsp + 0x90]
add rax, 0x10
mov rcx, rax
call fcn.14018b000
movzx eax, al
test eax, eax
jne 0x14018c41f
mov eax, 0xc0000141
jmp 0x14018c6ac
mov rax, qword [rsp + 0x90]
add rax, 0x10
mov rcx, rax
call fcn.14018d9c0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14018c451
mov eax, 0xc000007b
jmp 0x14018c6ac
mov rax, qword [rsp + 0x30]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x90]
mov qword [rcx + 0x20], rax
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x90]
mov rcx, qword [rcx + 0x20]
mov qword [rax + 0x28], rcx
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x20]
cmp dword [rax], 0x4550
je 0x14018c4a7
mov eax, 0xc000007b
jmp 0x14018c6ac
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x60]
call fcn.14018d5b0
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x60]
call fcn.14018a520
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x20]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
jne 0x14018c50a
mov rax, qword [rsp + 0x90]
mov byte [rax + 0x19], 1
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x28]
lea rcx, [rsp + 0x60]
call fcn.1401876e0
nop
jmp 0x14018c52d
mov rax, qword [rsp + 0x90]
mov byte [rax + 0x19], 0
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140187780
nop
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x20]
movzx eax, word [rax + 0x16]
and eax, 0x2000
test eax, eax
jne 0x14018c550
mov dword [rsp + 0x28], 1
jmp 0x14018c558
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x90]
movzx ecx, byte [rsp + 0x28]
mov byte [rax + 0x1a], cl
mov r8d, 1
mov edx, reloc.WS2_32.dll_ntohl
mov rcx, qword [rsp + 0x90]
call fcn.14018b0f0
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x14018c5a3
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
and eax, 1
test eax, eax
je 0x14018c5a3
mov byte [rsp + 0x20], 1
jmp 0x14018c5a8
mov byte [rsp + 0x20], 0
mov rax, qword [rsp + 0x90]
movzx ecx, byte [rsp + 0x20]
mov byte [rax + 0x1b], cl
mov rax, qword [rsp + 0x90]
movzx eax, byte [rax + 0x1b]
test eax, eax
je 0x14018c64f
mov rax, qword [rsp + 0x90]
add rax, 0x10
mov rcx, rax
call fcn.14018d9c0
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
add rax, 0x10
mov rcx, qword [rsp + 0x90]
mov dword [rcx + 0x58], eax
mov rax, qword [rsp + 0x90]
add rax, 0x138
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x90]
add rax, 0xf8
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.1401d1820
movzx eax, al
test eax, eax
je 0x14018c64f
mov rax, qword [rsp + 0x90]
add rax, 0x138
mov qword [rsp + 0x48], rax
xor edx, edx
mov rcx, qword [rsp + 0x48]
call fcn.1401d1b30
nop
mov dword [rsp + 0x24], 0
jmp 0x14018c671
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x58]
add rax, 0x28
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x90]
mov rax, qword [rax + 0x20]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jge 0x14018c6aa
mov rax, qword [rsp + 0x90]
add rax, 0x60
mov qword [rsp + 0x50], rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.14018a360
nop
jmp 0x14018c659
xor eax, eax
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14023b800
add rsp, 0x88
ret