Function at 0x140007e50
Capabilities:
Get system information on windows
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push r13
push r14
push r15
sub rsp, 0x78
mov r15, r8
mov r8, rdx
xor ebx, ebx
xor r13d, r13d
mov r14, r9
mov rdx, rcx
cmp r8, 0x40
jae 0x140007e95
mov ecx, recv
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop rbx
ret
mov eax, 0x5a4d
cmp word [rcx], ax
je 0x140007eb8
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop rbx
ret
movsxd rcx, dword [rcx + 0x3c]
lea rax, [rcx + 0x108]
cmp r8, rax
jb 0x140007e7c
cmp dword [rcx + rdx], 0x4550
mov qword [rsp + 0x60], r12
lea r12, [rcx + rdx]
jne 0x140007ef0
mov eax, 0x8664
cmp word [r12 + 4], ax
jne 0x140007ef0
mov eax, dword [r12 + 0x38]
test al, 1
je 0x140007f0e
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r12, qword [rsp + 0x60]
xor eax, eax
add rsp, 0x78
pop r15
pop r14
pop r13
pop rbx
ret
movzx ecx, word [r12 + 0x14]
mov r9, rax
movzx eax, word [r12 + 6]
mov qword [rsp + 0x68], rdi
test eax, eax
je 0x140007f52
lea rdx, [rcx + r12 + 0x24]
mov r8d, eax
nop
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x140007f3e
mov eax, dword [rdx]
add rax, r9
jmp 0x140007f42
mov eax, dword [rdx]
add eax, ecx
cmp rax, rbx
cmova rbx, rax
add rdx, 0x28
dec r8
jne 0x140007f30
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov r11d, dword [rsp + 0x34]
mov eax, dword [r12 + 0x50]
lea rdi, [rax + r11 - 1]
lea rax, [r11 - 1]
lea rcx, [r11 + rbx - 1]
not rax
and rdi, rax
lea rax, [r11 - 1]
not rax
and rcx, rax
cmp rdi, rcx
je 0x140007f9c
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140008119
mov rcx, qword [r12 + 0x30]
mov qword [rsp + 0xb0], rbp
mov rbp, qword [rsp + 0xd8]
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x70], rsi
call r15
mov rsi, rax
test rax, rax
jne 0x140007ff8
lea r9d, [rax + 4]
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call r15
mov rsi, rax
test rax, rax
je 0x14000813d
movabs rdx, 0xffffffff00000000
lea rcx, [rsi + rdi]
mov rax, rsi
and rcx, rdx
and rax, rdx
cmp rax, rcx
jae 0x140008073
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.MSVCR100.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000814a
mov qword [rax], r13
mov r9d, 4
mov r8d, 0x3000
mov rdx, rdi
xor ecx, ecx
mov qword [rax + 8], rsi
mov r13, rax
mov qword [rsp + 0x20], rbp
call r15
mov rsi, rax
test rax, rax
je 0x14000812f
lea rcx, [rax + rdi]
movabs rdx, 0xffffffff00000000
and rcx, rdx
and rax, rdx
cmp rax, rcx
jb 0x140008014
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
lea r8d, [rdx + 0x70]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x14000814a
mov qword [rax + 8], rsi
movzx eax, word [r12 + 0x16]
mov qword [rdi + 0x28], r15
shr eax, 0xd
mov qword [rdi + 0x30], r14
mov qword [rdi + 0x58], rbp
and eax, 1
mov dword [rdi + 0x20], eax
mov rax, qword [rsp + 0xc0]
mov qword [rdi + 0x38], rax
mov rax, qword [rsp + 0xc8]
mov qword [rdi + 0x40], rax
mov rax, qword [rsp + 0xd0]
mov qword [rdi + 0x48], rax
mov eax, dword [rsp + 0x34]
mov qword [rdi + 0x70], r13
mov r13, qword [rsp + 0xa8]
mov dword [rdi + 0x68], eax
mov edx, dword [r12 + 0x54]
cmp r13, rdx
jae 0x140008160
mov ecx, recv
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rdi
call fcn.140007d30
xor eax, eax
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
add rsp, 0x78
pop r15
pop r14
pop r13
pop rbx
ret
mov rcx, rbx
mov rdx, r14
mov r8, rbp
call fcn.140007450
mov ecx, recv
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14000810a
mov r9, rbp
xor edx, edx
mov r8d, 0x8000
mov rcx, rsi
call r14
mov rcx, r13
jmp 0x140008132
mov r9d, 4
mov r8d, 0x1000
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call r15
mov rbp, qword [rsp + 0xa0]
mov r8d, dword [r12 + 0x54]
mov rcx, rax
mov rdx, rbp
mov rbx, rax
call sub.MSVCR100.dll_memcpy
movsxd rax, dword [rbp + 0x3c]
add rax, rbx
mov r9, rdi
mov r8, r12
mov qword [rdi], rax
mov rdx, r13
mov rcx, rbp
mov qword [rax + 0x30], rsi
call fcn.1400074c0
test eax, eax
je 0x140008102
mov rax, qword [rdi]
mov rdx, qword [rax + 0x30]
sub rdx, qword [r12 + 0x30]
je 0x1400081d4
mov rcx, rdi
call fcn.1400078b0
mov dword [rdi + 0x24], eax
jmp 0x1400081db
mov dword [rdi + 0x24], 1
mov rcx, rdi
call fcn.140007980
test eax, eax
je 0x140008102
mov rcx, rdi
call fcn.1400076b0
test eax, eax
je 0x140008102
mov rax, qword [rdi]
mov rbp, qword [rdi + 8]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x140008239
mov rbx, qword [rcx + rbp + 0x18]
test rbx, rbx
je 0x140008239
mov rax, qword [rbx]
test rax, rax
je 0x140008239
nop
xor r8d, r8d
mov rcx, rbp
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x140008220
mov rax, qword [rdi]
mov ecx, dword [rax + 0x28]
test ecx, ecx
je 0x140008282
cmp dword [rdi + 0x20], 0
lea rax, [rsi + rcx]
je 0x140008276
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call rax
test eax, eax
jne 0x140008267
mov ecx, 0x45a
jmp 0x1400080fc
mov dword [rdi + 0x1c], 1
mov rax, rdi
jmp 0x14000810c
mov qword [rdi + 0x60], rax
mov rax, rdi
jmp 0x14000810c
mov qword [rdi + 0x60], 0
mov rax, rdi
jmp 0x14000810c