Function at 0x4a4870
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58841c
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x61b000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4e0], ecx
mov eax, dword [ebp - 0x4e0]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 0x4e0]
mov dword [ecx + 0xc], 1
xor edx, edx
mov word [ebp - 0x21c], dx
push 0x206
push 0
lea eax, [ebp - 0x21a]
push eax
call fcn.00568440
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx ecx, word [ebp - 0x450]
cmp ecx, 9
je 0x4a4920
movzx edx, word [ebp - 0x450]
cmp edx, 6
jne 0x4a4943
lea eax, [ebp - 0x21c]
push eax
push 0x59b204
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
jmp 0x4a4964
lea edx, [ebp - 0x21c]
push edx
push 0x59af24
push 0x104
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
mov dword [ebp - 0x10], 0
push 0x59afec
call fcn.004a51b0
add esp, 4
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push str.__uninject
lea ecx, [ebp - 0x488]
call fcn.00406230
mov dword [ebp - 0x4e4], eax
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x42c]
push ecx
lea ecx, [ebp - 0x4a4]
call fcn.00406230
mov dword [ebp - 0x4ec], eax
mov edx, dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], edx
mov byte [ebp - 4], 1
push 0x59b09c
lea ecx, [ebp - 0x4c0]
call fcn.00406230
mov dword [ebp - 0x4f4], eax
mov eax, dword [ebp - 0x4f4]
mov dword [ebp - 0x4f8], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x4f0]
push ecx
mov edx, dword [ebp - 0x4f8]
push edx
lea eax, [ebp - 0x4dc]
push eax
call fcn.00407b80
add esp, 0xc
mov dword [ebp - 0x4fc], eax
mov ecx, dword [ebp - 0x4fc]
mov dword [ebp - 0x500], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x4e8]
push edx
mov eax, dword [ebp - 0x500]
push eax
lea ecx, [ebp - 0x46c]
push ecx
call fcn.00407b80
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4dc]
call fcn.00406270
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c0]
call fcn.00406270
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.00406270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.00406270
push 1
lea ecx, [ebp - 0x46c]
call fcn.00406290
push eax
mov edx, dword [ebp - 0x10]
push edx
push 0
call fcn.00415580
add esp, 0x10
mov eax, dword [ebp - 0x4e0]
cmp dword [eax], 0
je 0x4a4acb
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x4e0]
cmp dword [eax + 4], 0
je 0x4a4ae7
mov ecx, dword [ebp - 0x4e0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x46c]
call fcn.00406270
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00560c61
mov esp, ebp
pop ebp
ret