Function at 0x4805c4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x3d0], ebx
mov dword [ebp - 0x3d4], ebx
mov dword [ebp - 0x3c8], ebx
mov dword [ebp - 0x3cc], ebx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x480a93
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x51], 0
lea edx, [ebp - 0x3c8]
mov eax, 0x480ab0
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
lea eax, [ebp - 0x3c8]
push eax
lea edx, [ebp - 0x3cc]
mov eax, 0x480ac4
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
mov edx, dword [ebp - 0x3cc]
pop eax
call fcn.0046bf04
mov eax, dword [ebp - 0x3c8]
call fcn.0046c0c0
push eax
call sym.D3DWindower.exe__Madcodehook_OpenGlobalMutex_qqspc
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x480a75
push 0x104
lea eax, [ebp - 0x1b9]
push eax
push ebx
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x3c4]
push eax
push ebx
call sub.KERNEL32.DLL_GetModuleFileNameW
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
xor edx, edx
push ebp
push 0x480a65
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], 1
lea ebx, [ebp - 0xb4]
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x48]
push 0xffffffffffffffff
lea edx, [ebp - 0x3d0]
mov eax, 0x480ab0
call sym.D3DWindower.exe__Madstrings_DecryptStr_qqr17System_AnsiString
lea eax, [ebp - 0x3d0]
push eax
lea eax, [ebp - 0x3d4]
mov edx, dword [ebp - 0x8c]
add edx, 0x30
call fcn.0046be24
mov edx, dword [ebp - 0x3d4]
pop eax
call fcn.0046bf04
mov eax, dword [ebp - 0x3d0]
call fcn.0046c0c0
push eax
call sym.D3DWindower.exe__Madcodehook_OpenGlobalFileMapping_qqspci
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x480737
push 0
push 0
push 0
push 0xf001f
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [esi], eax
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi]
test eax, eax
jne 0x48072e
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
mov dword [ebx], eax
jmp 0x480737
mov eax, dword [eax + 8]
add dword [ebp - 0x90], eax
cmp dword [ebx], 0
je 0x480758
inc dword [ebp - 0x8c]
add edi, 4
add esi, 4
add ebx, 4
cmp dword [ebp - 0x8c], 0xa
jne 0x4806b0
mov eax, dword [ebp - 0x90]
dec eax
cmp eax, 0
jl 0x480a18
mov dword [ebp - 0x8c], eax
push ebp
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x64]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x8c]
call fcn.00480464
pop ecx
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x4807d5
mov ebx, dword [ebp - 0x5c]
cmp word [ebx], 0
je 0x4807cb
mov eax, dword [ebp - 0x50]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcmpiW
test eax, eax
jne 0x4807cb
lea eax, [ebp - 0x3c4]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.KERNEL32.DLL_lstrcmpiW
test eax, eax
je 0x4807cf
xor eax, eax
jmp 0x4807d1
mov al, 1
mov ebx, eax
jmp 0x480808
mov eax, dword [ebp - 0x5c]
cmp byte [eax], 0
je 0x480802
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x5c]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x480802
lea eax, [ebp - 0x1b9]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
je 0x480806
xor ebx, ebx
jmp 0x480808
mov bl, 1
test bl, bl
je 0x480a05
cmp byte [ebp + 8], 0
jne 0x48085e
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x6c]
call fcn.00480568
test al, al
je 0x480a05
mov eax, dword [ebp - 0x74]
mov al, byte [eax]
cmp al, byte [ebp + 0x10]
jne 0x480a05
mov eax, dword [ebp - 0x7c]
cmp dword [eax + 4], 0
jne 0x480a05
cmp dword [eax], 0
jne 0x480a05
mov eax, dword [ebp - 0x84]
mov eax, dword [eax]
cmp eax, dword [ebp + 0xc]
jne 0x480a05
mov byte [ebp - 0x51], 1
mov esi, dword [ebp - 0x8c]
mov ebx, dword [ebp - 0x90]
sub ebx, 2
sub ebx, esi
jl 0x4809fa
inc ebx
push ebp
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x68]
lea edx, [ebp - 0x60]
lea eax, [esi + 1]
call fcn.00480464
pop ecx
mov edx, 0x5b
mov eax, dword [ebp - 0x6c]
call fcn.004618dc
mov eax, 0x5a
mov edx, dword [ebp - 0x70]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x6c]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x4808af
mov eax, dword [ebp - 0x78]
mov al, byte [eax]
mov edx, dword [ebp - 0x74]
mov byte [edx], al
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x80]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
mov edx, dword [ebp - 0x84]
mov dword [edx], eax
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x480954
mov edx, 0x208
mov eax, dword [ebp - 0x64]
call fcn.004618dc
mov edx, 0x208
mov eax, dword [ebp - 0x5c]
call fcn.004618dc
mov eax, 0x103
mov edx, dword [ebp - 0x68]
mov dx, word [edx + eax*2]
mov ecx, dword [ebp - 0x64]
mov word [ecx + eax*2], dx
dec eax
cmp eax, 0xffffffff
jne 0x480916
mov eax, 0x103
mov edx, dword [ebp - 0x60]
mov dx, word [edx + eax*2]
mov ecx, dword [ebp - 0x5c]
mov word [ecx + eax*2], dx
dec eax
test eax, eax
jne 0x48092f
mov ecx, 2
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
call fcn.00478c88
jmp 0x4809ab
mov edx, 0x104
mov eax, dword [ebp - 0x64]
call fcn.004618dc
mov edx, 0x104
mov eax, dword [ebp - 0x5c]
call fcn.004618dc
mov eax, 0x103
mov edx, dword [ebp - 0x68]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x64]
mov byte [ecx + eax], dl
dec eax
cmp eax, 0xffffffff
jne 0x480973
mov eax, 0x103
mov edx, dword [ebp - 0x60]
mov dl, byte [edx + eax]
mov ecx, dword [ebp - 0x5c]
mov byte [ecx + eax], dl
dec eax
test eax, eax
jne 0x48098a
mov ecx, 1
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
call fcn.00478c88
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x5c]
cmp byte [eax], 0
jne 0x4809f2
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x4809fa
mov eax, dword [ebp - 0x5c]
cmp byte [eax + 1], 0
je 0x4809fa
inc esi
dec ebx
jne 0x48087a
push 0
mov eax, dword [ebp - 0x5c]
push eax
call sub.KERNEL32.DLL_InterlockedExchange
dec dword [ebp - 0x8c]
cmp dword [ebp - 0x8c], 0xffffffff
jne 0x48076e
mov dword [ebp - 0x8c], 9
lea edi, [ebp - 0xb4]
lea esi, [ebp - 0x24]
cmp dword [edi], 0
je 0x480a4e
mov eax, dword [esi]
push eax
call sub.KERNEL32.DLL_UnmapViewOfFile
mov eax, dword [edi]
push eax
call sub.KERNEL32.DLL_CloseHandle
add esi, 4
add edi, 4
dec dword [ebp - 0x8c]
jne 0x480a2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480a6c
mov eax, dword [ebp - 0x58]
push eax
call sub.KERNEL32.DLL_ReleaseMutex
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480a9a
lea eax, [ebp - 0x3d4]
mov edx, 4
call fcn.0046bca4
ret