Function at 0x18018ca40
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
mov rax, qword [0x1802a60c0]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov byte [rsp + 0x200], 0xeb
mov byte [rsp + 0x201], 8
mov byte [rsp + 0x202], Ordinal_79
mov byte [rsp + 0x203], Ordinal_143
mov byte [rsp + 0x204], Ordinal_143
mov byte [rsp + 0x205], Ordinal_41
mov byte [rsp + 0x206], 0xf3
mov byte [rsp + 0x207], 0xfc
mov byte [rsp + 0x208], reloc.WS2_32.dll_ntohl
mov byte [rsp + 0x209], Ordinal_41
mov byte [rsp + 0x20a], Ordinal_200
lea rax, [rsp + 0x228]
test rax, rax
jne 0x18018cadd
lea rax, [rsp + 0x200]
call rax
xor eax, eax
call rax
nop
cmp qword [rsp + 0x238], 0
jne 0x18018caef
xor eax, eax
jmp 0x18018ce4d
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, 0x40
rep stosb byte [rdi], al
lea rax, [rsp + 0xf0]
mov rdi, rax
xor eax, eax
mov ecx, 0x108
rep stosb byte [rdi], al
mov r9d, 0x40
lea r8, [rsp + 0xb0]
mov rdx, qword [rsp + 0x238]
mov rcx, qword [rsp + 0x230]
call fcn.18018eb10
movzx eax, al
test eax, eax
je 0x18018cb98
movzx eax, word [rsp + 0xb0]
cmp eax, 0x5a4d
jne 0x18018cb98
movsxd rax, dword [rsp + 0xec]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
mov r9d, 0x108
lea r8, [rsp + 0xf0]
mov rdx, rax
mov rcx, qword [rsp + 0x230]
call fcn.18018eb10
movzx eax, al
test eax, eax
je 0x18018cb98
cmp dword [rsp + 0xf0], 0x4550
je 0x18018cb9f
xor eax, eax
jmp 0x18018ce4d
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x178]
mov dword [rsp + 0x28], eax
mov eax, 8
imul rax, rax, 0
mov eax, dword [rsp + rax + 0x17c]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x28], 0
je 0x18018cbd5
cmp dword [rsp + 0x38], 0
jne 0x18018cbdc
xor eax, eax
jmp 0x18018ce4d
mov eax, dword [rsp + 0x38]
mov r9d, 4
mov r8d, 0x3000
mov edx, eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x38]
mov ecx, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x238]
add rdx, rcx
mov rcx, rdx
mov r9d, eax
mov r8, qword [rsp + 0x30]
mov rdx, rcx
mov rcx, qword [rsp + 0x230]
call fcn.18018eb10
movzx eax, al
test eax, eax
jne 0x18018cc4a
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x18018ce4d
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x24], 0
jmp 0x18018cca8
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x24], eax
jae 0x18018ce38
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx + rax*4]
add rax, qword [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.180043c60
nop
mov rcx, qword [rsp + 0x240]
call fcn.180061ee0
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x90]
call fcn.180061ee0
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x18018ce25
mov eax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x70]
movzx eax, word [rcx + rax*2]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
cmp dword [rcx + rax*4], 0x1000
ja 0x18018cd5d
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0x90]
call fcn.180046980
mov rax, qword [rsp + 0x78]
jmp 0x18018ce4d
movzx eax, word [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x48], rax
jb 0x18018cded
mov eax, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x238]
add rcx, rax
mov rax, rcx
mov ecx, dword [rsp + 0x38]
add rax, rcx
cmp qword [rsp + 0x48], rax
ja 0x18018cded
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x90]
call fcn.180046980
mov rax, qword [rsp + 0x80]
jmp 0x18018ce4d
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x88], rax
lea rcx, [rsp + 0x90]
call fcn.180046980
mov rax, qword [rsp + 0x88]
jmp 0x18018ce4d
lea rcx, [rsp + 0x90]
call fcn.180046980
nop
jmp 0x18018cc9e
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1801f08c0
add rsp, 0x220
pop rdi
ret