Function at 0x140051070
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rax, qword [0x140173240]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax + 0x798]
mov rcx, qword [rsp + 0x2f0]
mov rcx, qword [rcx + 0x798]
mov rax, qword [rax]
mov dl, 1
call qword [rax + 0x198]
mov rax, qword [rsp + 0x2f0]
mov rax, qword [rax + 0x7a0]
mov rcx, qword [rsp + 0x2f0]
mov rcx, qword [rcx + 0x7a0]
mov rax, qword [rax]
xor edx, edx
call qword [rax + 0x198]
mov rax, qword [rsp + 0x2f0]
add rax, 0x840
mov rcx, rax
call fcn.14006e930
mov rax, qword [rsp + 0x2f0]
add rax, 0x840
mov rdx, qword [rsp + 0x2f8]
mov rcx, rax
call fcn.14006e900
lea rax, [rsp + 0xb0]
mov rdi, rax
xor eax, eax
mov ecx, gethostbyname
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0x30], 4
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 8
jle 0x140051160
mov dword [rsp + 0x38], 8
jmp 0x140051168
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x2f0]
mov dword [rax + 0x30], 0
mov rax, qword [rsp + 0x2f0]
mov dword [rax + 0x34], 0
lea rax, [fcn.140016080]
mov qword [rsp + 0x20], rax
lea r9, [fcn.14001fd60]
mov r8d, reloc.WS2_32.dll_recv
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x1d0]
call fcn.140101264
nop
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001fd90
nop
jmp 0x1400511e5
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x48]
call fcn.14001f320
nop
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x2f8]
call fcn.14001f260
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14001f170
movzx eax, al
test eax, eax
je 0x14005137a
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
mov eax, dword [rax]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x50]
cdq
idiv dword [rsp + 0x30]
mov eax, edx
mov dword [rsp + 0x54], eax
lea rcx, [rsp + 0x48]
call fcn.14001f1f0
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14002d570
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.14001fd90
nop
jmp 0x140051275
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x40]
call fcn.14001f320
nop
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x70]
call fcn.14001f260
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001f170
movzx eax, al
test eax, eax
je 0x14005136a
lea rcx, [rsp + 0x40]
call fcn.14001f1f0
mov eax, dword [rax]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x40]
call fcn.14001f1f0
add rax, 8
mov rdx, rax
lea rcx, [rsp + 0xe0]
call fcn.14002cf90
nop
mov rax, qword [rsp + 0x2f0]
mov eax, dword [rax + 0x30]
inc eax
mov rcx, qword [rsp + 0x2f0]
mov dword [rcx + 0x30], eax
lea rcx, [rsp + 0x40]
call fcn.14001f1f0
add rax, 8
mov rcx, qword [rsp + 0x2f0]
add rcx, 0x30
mov r8, rax
mov rdx, rcx
lea rcx, [rsp + 0x150]
call fcn.140070a00
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x54]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0x1d0]
mov r8, qword [rsp + 0x68]
lea rdx, [rsp + 0xa0]
mov rcx, rax
call fcn.140070a60
nop
lea rcx, [rsp + 0x150]
call fcn.140029160
nop
lea rcx, [rsp + 0xe0]
call fcn.140015f40
nop
jmp 0x14005125f
lea rcx, [rsp + 0x70]
call fcn.140016080
nop
jmp 0x1400511cf
mov dword [rsp + 0x34], 0
jmp 0x14005138e
mov eax, dword [rsp + 0x34]
inc eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jge 0x14005140b
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0x1d0]
mov rcx, rax
call fcn.14001fca0
test rax, rax
je 0x140051406
mov rax, qword [rsp + 0x2f0]
mov eax, dword [rax + 0x30]
inc eax
mov rcx, qword [rsp + 0x2f0]
mov dword [rcx + 0x30], eax
movsxd rax, dword [rsp + 0x34]
imul rax, rax, 0x10
lea rax, [rsp + rax + 0x1d0]
movsxd rcx, dword [rsp + 0x34]
xor r9d, r9d
mov r8d, 6
mov rdx, rax
mov rax, qword [rsp + 0x2f0]
mov rcx, qword [rax + rcx*8 + 0xf8]
call fcn.14006a880
nop
jmp 0x140051384
lea r9, [fcn.140016080]
mov r8d, reloc.WS2_32.dll_recv
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x1d0]
call fcn.140101194
nop
mov rcx, qword [rsp + 0x2f8]
call fcn.140015ed0
nop
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140100c60
add rsp, 0x2e0
pop rdi
ret