Function at 0x14002de00
Capabilities:
Get system information on windows
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r14, r9
mov r15, r8
mov r12, rdx
mov r13, rcx
test rdx, rdx
je 0x14002de42
cmp rdx, 0x40
jae 0x14002de42
mov ecx, recv
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x14002de67
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
test rdx, rdx
je 0x14002de7b
movsxd rax, dword [rcx + 0x3c]
add rax, 0x108
cmp rdx, rax
jb 0x14002de27
mov qword [rsp + 0x90], rsi
movsxd rsi, dword [rcx + 0x3c]
add rsi, rcx
cmp dword [rsi], 0x4550
jne 0x14002dea4
mov eax, 0x8664
cmp word [rsi + 4], ax
jne 0x14002dea4
mov eax, dword [rsi + 0x38]
test al, 1
je 0x14002deb6
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14002e025
movzx ecx, word [rsi + 0x14]
mov r9, rax
movzx eax, word [rsi + 6]
mov qword [rsp + 0x98], rdi
test eax, eax
je 0x14002def7
lea rdx, [rcx + rsi + 0x24]
mov r8d, eax
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x14002dee3
mov eax, dword [rdx]
add rax, r9
jmp 0x14002dee7
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
dec r8
jne 0x14002ded5
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x24]
mov eax, dword [rsi + 0x50]
lea edx, [r11 - 1]
lea edi, [rax + r11 - 1]
lea rcx, [r11 + rbx - 1]
not edx
and rdi, rdx
and rcx, rdx
cmp rdi, rcx
jae 0x14002df37
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14002e01d
mov rcx, qword [rsi + 0x30]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
mov qword [rsp + 0x80], rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
jne 0x14002df7d
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbp, rax
test rax, rax
je 0x14002dfae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x14002dfbb
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov ecx, recv
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14002e013
mov qword [rax + 8], rbp
movzx eax, word [rsi + 0x16]
mov qword [rdi + 0x28], r15
shr eax, 0xd
mov qword [rdi + 0x30], r14
and eax, 1
mov dword [rdi + 0x20], eax
mov rax, qword [rsp + 0xa0]
mov qword [rdi + 0x38], rax
mov rax, qword [rsp + 0xa8]
mov qword [rdi + 0x40], rax
mov eax, dword [rsp + 0x24]
mov dword [rdi + 0x50], eax
test r12, r12
je 0x14002e03b
mov eax, dword [rsi + 0x54]
cmp r12, rax
jae 0x14002e03b
mov ecx, recv
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.14002e360
xor eax, eax
mov rbp, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x98]
mov rsi, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
mov edx, dword [rsi + 0x54]
mov r9d, 4
mov r8d, 0x1000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8d, dword [rsi + 0x54]
mov rdx, r13
mov rcx, rax
mov rbx, rax
call sub.MSVCR100.dll_memcpy
movsxd rax, dword [r13 + 0x3c]
mov r9, rdi
add rax, rbx
mov r8, rsi
mov rdx, r12
mov qword [rdi], rax
mov rcx, r13
mov qword [rax + 0x30], rbp
call fcn.14002d530
test eax, eax
je 0x14002e00b
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [rsi + 0x30]
je 0x14002e0a2
mov rcx, rdi
call fcn.14002d920
mov dword [rdi + 0x24], eax
jmp 0x14002e0a9
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.14002d9f0
test eax, eax
je 0x14002e00b
mov rcx, rdi
call fcn.14002d720
test eax, eax
je 0x14002e00b
mov eax, dword [0x14013f6e0]
cmp qword [rsi + 0x30], rax
je 0x14002e119
mov rax, qword [rdi]
mov rsi, qword [rdi + 8]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x14002e119
mov rbx, qword [rcx + rsi + 0x18]
test rbx, rbx
je 0x14002e119
mov rax, qword [rbx]
test rax, rax
je 0x14002e119
nop dword [rax + rax]
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x14002e100
mov rdx, qword [rdi]
mov eax, dword [rdx + 0x28]
test eax, eax
je 0x14002e22f
cmp dword [rdi + 0x20], 0
je 0x14002e220
cmp byte [rsp + 0xb0], 0
je 0x14002e211
lea rsi, [rbp + rax]
mov rax, qword gs:[0x60]
mov rcx, qword [rdi + 8]
mov r12, qword [rax + 0x110]
mov eax, dword [rdx + 0x50]
mov qword [rsp + 0x88], 0
add rax, rcx
cmp qword [0x140143fa0], 0
mov qword [0x14013e4e0], rcx
mov qword [0x14013e4d8], rax
jne 0x14002e1a6
lea rcx, [0x1401036c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.RtlPcToFileHeader
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140143fa0], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x88]
call fcn.14002ec70
mov r8, rdi
mov edx, 1
mov rcx, rbp
mov rbx, rax
call rsi
mov esi, eax
test rbx, rbx
je 0x14002e1fa
mov rcx, rbx
call fcn.14002ee30
mov r8, rbx
mov rbx, qword [rsp + 0x88]
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x14002e211
mov ecx, 0x45a
jmp 0x14002e005
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x14002e015
add rax, rbp
mov qword [rdi + 0x48], rax
mov rax, rdi
jmp 0x14002e015
mov qword [rdi + 0x48], 0
mov rax, rdi
jmp 0x14002e015