Function at 0x49e840
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58232c
mov eax, dword fs:[0]
push eax
sub esp, 0x4f4
mov eax, dword [0x615000]
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.00562540
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 0x49e8f0
movzx edx, word [ebp - 0x450]
cmp edx, 6
jne 0x49e913
lea eax, [ebp - 0x21c]
push eax
push 0x5951e4
push 0x104
lea ecx, [ebp - 0x42c]
push ecx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
jmp 0x49e934
lea edx, [ebp - 0x21c]
push edx
push 0x594f04
push 0x104
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
mov dword [ebp - 0x10], 0
push 0x594fcc
call fcn.0049f180
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.004060b0
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.004060b0
mov dword [ebp - 0x4ec], eax
mov edx, dword [ebp - 0x4ec]
mov dword [ebp - 0x4f0], edx
mov byte [ebp - 4], 1
push 0x59507c
lea ecx, [ebp - 0x4c0]
call fcn.004060b0
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.00407a10
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.00407a10
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4dc]
call fcn.004060f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c0]
call fcn.004060f0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4a4]
call fcn.004060f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x488]
call fcn.004060f0
push 1
lea ecx, [ebp - 0x46c]
call fcn.00406110
push eax
mov edx, dword [ebp - 0x10]
push edx
push 0
call fcn.00415f60
add esp, 0x10
mov eax, dword [ebp - 0x4e0]
cmp dword [eax], 0
je 0x49ea9b
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 0x49eab7
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.004060f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret