Function at 0x140062300
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r12, rdx
mov r13, rcx
mov eax, 0x5a4d
cmp word [rdx], ax
jne 0x140062395
movsxd rdi, dword [rdx + 0x3c]
add rdi, rdx
cmp dword [rdi], 0x4550
jne 0x140062395
mov eax, 0x20b
cmp word [rdi + 0x18], ax
jne 0x140062395
mov ebx, dword [rdi + 0x50]
mov edx, ebx
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, rax
test rax, rax
je 0x140062395
movzx ecx, word [rdi + 0x14]
mov eax, dword [rcx + rdi + 0x24]
mov dword [rsp + 0x30], eax
sub ebx, eax
mov edx, ebx
mov qword [rsp + 0x40], rdx
jne 0x1400623af
xor ebp, ebp
mov r14, rbp
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, r14
mov rcx, r13
call fcn.14005cfb0
xor eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov r8d, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
xor ebp, ebp
mov eax, dword [r8 + rcx]
cmp dword [0x140345bac], eax
jle 0x140062484
lea rcx, [0x140345bac]
call fcn.1402240a0
cmp dword [0x140345bac], 0xffffffff
jne 0x14006247f
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], bpl
lea r8d, [rbp + 0x15]
lea rdx, [0x140306860]
lea rcx, [rsp + 0x48]
call fcn.140060430
nop
lea r8, [rsp + 0x48]
mov rdx, qword [0x1403458a8]
mov rcx, r13
call fcn.14005d0d0
mov qword [0x140345c20], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140062473
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006246d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400625b3
call fcn.140223f10
nop
lea rcx, [0x140345bac]
call fcn.140224040
mov rdx, qword [rsp + 0x40]
cmp qword [0x140345c20], 0
je 0x140062376
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140060a90
test al, al
je 0x140062376
mov r14, qword [rsp + 0x38]
test r14, r14
je 0x140062379
mov r8d, dword [rdi + 0x54]
mov rdx, r12
mov rcx, r15
call fcn.140226410
movzx ebx, word [rdi + 0x14]
add rbx, 0x28
mov esi, ebp
cmp bp, word [rdi + 6]
jae 0x14006250c
add rbx, rdi
test dword [rbx + 0x14], 0x80
ja 0x1400624fe
mov r8d, dword [rbx]
mov edx, dword [rbx + 4]
add rdx, r12
mov ecx, dword [rbx - 4]
add rcx, r15
call fcn.140226410
inc esi
add rbx, 0x28
movzx eax, word [rdi + 6]
cmp esi, eax
jl 0x1400624e1
mov r12d, dword [rsp + 0x30]
mov rsi, r14
sub rsi, r12
mov rbx, rsi
sub rbx, qword [rdi + 0x30]
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140088040
mov rdx, rbx
mov rcx, rax
call fcn.1400625c0
mov rdx, r15
lea rcx, [rsp + 0x48]
call fcn.140088190
mov rdx, rax
mov rcx, r13
call fcn.1400626c0
test al, al
je 0x140062379
lea r8, [r12 + r15]
mov r9, qword [rsp + 0x40]
mov rdx, r14
mov rcx, r13
call fcn.14005cd90
test al, al
je 0x140062379
mov r8d, dword [rdi + 0x28]
add r8, rsi
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x20], rbp
xor r9d, r9d
lea rdx, [rsp + 0x30]
mov rcx, r13
call fcn.140062980
test al, al
je 0x140062379
xor edx, edx
mov r8d, 0x8000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, r14
jmp 0x140062397
call fcn.14023482c
int3