Function at 0x47ff8c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480418
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0x28]
mov eax, 0x480434
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
lea edx, [ebp - 0x30]
mov eax, 0x480448
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x28]
call fcn.0046bf48
mov eax, dword [ebp - 0x2c]
call fcn.0046c0c0
push eax
call sym.D3DWindower.exe__Madcodehook_CreateGlobalMutex_qqspc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4803fd
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
mov eax, dword [ebp + 8]
setne byte [eax]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
xor edx, edx
push ebp
push 0x480389
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 1
shl dword [ebp - 0x24], 2
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x480092
imul eax, dword [ebp - 0x24], 0x478
add eax, 0xc
push eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x20]
add edx, 0x30
call fcn.0046be24
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x28]
call fcn.0046bf48
mov eax, dword [ebp - 0x34]
call fcn.0046c0c0
push eax
call sym.D3DWindower.exe__Madcodehook_CreateGlobalFileMapping_qqspcui
mov dword [ebp - 0x1c], eax
jmp 0x4800ca
imul eax, dword [ebp - 0x24], 0x270
add eax, 0xc
push eax
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x20]
add edx, 0x30
call fcn.0046be24
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
call fcn.0046bf48
mov eax, dword [ebp - 0x3c]
call fcn.0046c0c0
push eax
call sym.D3DWindower.exe__Madcodehook_CreateGlobalFileMapping_qqspcui
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x480372
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
setne bl
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x480109
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x480372
mov dword [ebp - 0x18], esi
test bl, bl
je 0x48016a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
mov dword [esi + 8], eax
mov edi, dword [ebp - 0x24]
dec edi
test edi, edi
jl 0x480153
inc edi
xor ebx, ebx
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x480147
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x18]
mov word [edx + eax*8 + 0xc], 0
jmp 0x48014f
imul eax, ebx, 0x4e
mov byte [esi + eax*8 + 0xc], 0
inc ebx
dec edi
jne 0x480129
mov edx, esi
mov ecx, 8
mov eax, dword [ebp - 0x28]
call fcn.00478c88
mov eax, dword [ebp - 0x1c]
call sym.D3DWindower.exe__Madremote_HandleLiveForever_qqrui
mov edi, dword [esi + 8]
dec edi
test edi, edi
jl 0x480350
inc edi
xor ebx, ebx
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x48027f
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*8 + 0xc], 0
jne 0x480348
mov byte [ebp - 0xd], 1
push 0x104
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*8 + 0x214]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x4801ff
cmp dword [ebp + 0x18], 0
je 0x4801ff
mov eax, dword [ebp + 0x18]
push eax
call sub.ADVAPI32.DLL_IsValidSid
test eax, eax
je 0x4801ff
mov eax, dword [ebp + 0x18]
push eax
call sub.ADVAPI32.DLL_GetLengthSid
mov ecx, eax
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x18]
lea edx, [edx + eax*8 + 0x41c]
mov eax, dword [ebp + 0x18]
call fcn.0046ab40
jmp 0x480219
imul eax, ebx, 0x8f
mov edx, dword [ebp - 0x18]
lea eax, [edx + eax*8 + 0x41c]
mov edx, 0x5b
call fcn.004618dc
imul edi, ebx, 0x8f
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp + 0x10]
mov byte [eax + edi*8 + 0x477], dl
mov eax, dword [ebp - 0x18]
mov dword [eax + edi*8 + 0x478], 0
mov dword [eax + edi*8 + 0x47c], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp + 0x14]
mov dword [eax + edi*8 + 0x480], edx
mov eax, dword [ebp - 0xc]
add eax, 2
push eax
mov eax, dword [ebp - 0x18]
lea eax, [eax + edi*8 + 0xe]
push eax
call sub.KERNEL32.DLL_lstrcpyW
mov eax, dword [ebp - 0x18]
lea edx, [eax + edi*8 + 0xc]
mov ecx, 2
mov eax, dword [ebp - 0xc]
call fcn.00478c88
jmp 0x480350
imul eax, ebx, 0x4e
cmp byte [esi + eax*8 + 0xc], 0
jne 0x480348
mov byte [ebp - 0xd], 1
push 0x104
lea eax, [esi + eax*8 + 0x110]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x4802e5
cmp dword [ebp + 0x18], 0
je 0x4802e5
mov eax, dword [ebp + 0x18]
push eax
call sub.ADVAPI32.DLL_IsValidSid
test eax, eax
je 0x4802e5
mov eax, dword [ebp + 0x18]
push eax
call sub.ADVAPI32.DLL_GetLengthSid
mov ecx, eax
imul eax, ebx, 0x4e
lea edx, [esi + eax*8 + 0x214]
mov eax, dword [ebp + 0x18]
call fcn.0046ab40
jmp 0x4802f9
imul eax, ebx, 0x4e
lea eax, [esi + eax*8 + 0x214]
mov edx, 0x5b
call fcn.004618dc
imul edi, ebx, 0x4e
mov al, byte [ebp + 0x10]
mov byte [esi + edi*8 + 0x26f], al
mov dword [esi + edi*8 + 0x270], 0
mov dword [esi + edi*8 + 0x274], 0
mov eax, dword [ebp + 0x14]
mov dword [esi + edi*8 + 0x278], eax
mov eax, dword [ebp - 8]
inc eax
push eax
lea eax, [esi + edi*8 + 0xd]
push eax
call sub.KERNEL32.DLL_lstrcpyA
lea edx, [esi + edi*8 + 0xc]
mov ecx, 1
mov eax, dword [ebp - 8]
call fcn.00478c88
jmp 0x480350
inc ebx
dec edi
jne 0x480179
push esi
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, dword [ebp - 0x1c]
push eax
call sub.KERNEL32.DLL_CloseHandle
cmp byte [ebp - 0xd], 0
jne 0x480372
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0xa
jne 0x480048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480390
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48041f
lea eax, [ebp - 0x40]
mov edx, 7
call fcn.0046bca4
ret