Function at 0x485030
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x50bf27
mov eax, dword fs:[0]
push eax
mov eax, 0x4024
call fcn.004c11d0
mov eax, dword [0x53bbf0]
xor eax, esp
mov dword [esp + 0x4020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53bbf0]
xor eax, esp
push eax
lea eax, [esp + 0x4038]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x4048]
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], esi
call edx
lea edi, [esi + 0x224]
mov ecx, edi
mov dword [esp + 0x4040], 0
mov dword [esp + 0x14], edi
call fcn.004808e0
mov ebp, dword [esi + 0x8c]
xor eax, eax
cmp ebp, eax
mov byte [esp + 0x4040], 1
jne 0x4850dd
mov byte [esp + 0x4040], al
mov ecx, edi
call fcn.004808f0
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
mov dword [esp + 0x4040], 0xffffffff
call edx
jmp 0x4853dc
cmp dword [ebx + 0xc], eax
jne 0x4850f3
mov ecx, esi
call fcn.00483df0
mov byte [esp + 0x4040], 0
jmp 0x4850bd
mov ecx, dword [ebx]
cmp byte [ecx], al
jne 0x4850ff
cmp byte [ecx + 1], 0x1d
je 0x48510b
mov dword [esi + 0x210], eax
mov dword [esi + 0x214], eax
lea edi, [ebp + 0x240]
mov ecx, edi
mov dword [esi + 0x208], eax
mov dword [esi + 0x20c], eax
call fcn.004808e0
mov eax, dword [ebp + 0x238]
mov ebp, dword [ebp + 0x23c]
mov ecx, edi
mov dword [esp + 0x28], eax
call fcn.004808f0
add dword [esi + 0xb0], 1
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1a8], ecx
adc dword [esi + 0xb4], 0
mov dword [esi + 0x1ac], ebp
mov eax, dword [ebx + 0xc]
cdq
add dword [esi + 0xa0], eax
mov ecx, esi
adc dword [esi + 0xa4], edx
call fcn.004824b0
mov edx, dword [esi + 0x23c]
mov eax, dword [esi + 0x238]
push 0
push 0x28
push edx
push eax
call fcn.004c5be0
mov ecx, dword [ebx + 0xc]
add dword [esi + eax*4 + 0x2e8], ecx
mov edx, dword [ebx + 0xc]
add dword [esi + 0x244], edx
lea eax, [esi + eax*4 + 0x2e8]
mov eax, dword [ebx]
cmp byte [eax], 0
jne 0x4851b2
cmp byte [eax + 1], 6
je 0x48541a
cmp byte [esi + 0x1f8], 0
jne 0x4851cf
mov ecx, dword [esi + 0x8c]
test ecx, ecx
je 0x4851cf
push 0
push 0
push esi
call fcn.00485c50
mov edi, dword [ebx + 0xc]
cmp edi, 1
mov ecx, esi
jge 0x4851e9
mov eax, dword [ebx]
push 5
push edi
push eax
call fcn.00483cf0
jmp 0x4853b7
mov ebp, dword [ebx]
push ebp
call fcn.00481e50
test al, al
je 0x4851fb
push edi
jmp 0x4853af
cmp dword [esi + 0x84], 0
je 0x4853b7
mov ecx, dword [esi + 0x178]
test ecx, ecx
mov eax, edi
mov dword [esp + 0x18], eax
jle 0x4852e0
cmp eax, ecx
jge 0x485230
push 6
push edi
push ebp
mov ecx, esi
call fcn.00483cf0
jmp 0x4853b7
sub eax, ecx
mov ecx, dword [esi + 0x174]
push ecx
push eax
push ebp
lea edi, [eax + ebp]
call fcn.00480fe0
mov ecx, dword [esi + 0x178]
mov edx, eax
add ecx, 0xffffffff
add esp, 0xc
xor eax, eax
cmp ecx, 3
mov dword [esp + 0x1c], edx
ja case.default.0x48525c
jmp dword [ecx*4 + 0x485430]
movzx eax, byte [edi]
and edx, 0xff
jmp case.default.0x48525c
xor eax, eax
mov ah, byte [edi]
and edx, 0xffff
mov al, byte [edi + 1]
jmp case.default.0x48525c
movzx eax, byte [edi + 1]
mov ah, byte [edi]
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
and edx, 0xffffff
jmp case.default.0x48525c
push edi
call fcn.00481970
mov edx, dword [esp + 0x20]
add esp, 4
cmp eax, edx
je 0x4852d6
add dword [esi + 0xb8], 1
mov ecx, dword [esi + 0x8c]
adc dword [esi + 0xbc], 0
call fcn.00481a90
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx]
mov ecx, dword [esi + 0x8c]
push edx
push eax
push esi
call fcn.00488420
jmp 0x4853b7
mov eax, dword [esi + 0x178]
sub dword [esp + 0x18], eax
mov eax, 1
lea ecx, [esi + 0x180]
mov dword [esp + 0x1c], eax
lea ebx, [esi + 0x3c]
mov dword [esp + 0x24], ecx
jmp 0x485300
mov edx, dword [esp + 0x24]
cmp dword [edx], 0
je 0x485393
and eax, reloc.DSOUND.dll_DirectSoundCreate
jns 0x485319
dec eax
or eax, 0xfffffffe
inc eax
shl eax, 0xd
lea edi, [esp + eax + 0x34]
mov al, byte [ebp]
mov byte [edi], al
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], edi
add edi, 1
cmp byte [ebp], 0
jne 0x485368
cmp eax, 2
jl 0x485406
mov cl, byte [ebp + 1]
mov edx, dword [ebx - 4]
add eax, 0xfffffffe
mov byte [edi], cl
mov ecx, dword [ebx]
push eax
add ebp, 2
push ebp
add edi, 1
push edi
add ecx, esi
call edx
cmp dword [esi + 0x8c], 0
je 0x48541a
jmp 0x48537a
mov ecx, dword [ebx]
mov edx, dword [ebx - 4]
add eax, 0xffffffff
push eax
add ebp, 1
push ebp
push edi
add ecx, esi
call edx
cmp eax, 0xffffffff
je 0x48542b
mov ebp, dword [esp + 0x28]
add edi, eax
mov eax, dword [esp + 0x1c]
sub edi, ebp
mov dword [esp + 0x18], edi
sub dword [esp + 0x24], 4
sub eax, 1
sub ebx, 0x10
test eax, eax
mov dword [esp + 0x1c], eax
jge 0x485300
mov eax, dword [esp + 0x18]
push eax
push ebp
mov ecx, esi
call fcn.00484010
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x4040], 0
call fcn.004808f0
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
mov dword [esp + 0x4040], 0xffffffff
call eax
mov ecx, dword [esp + 0x4038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4020]
xor ecx, esp
call fcn.004c118f
add esp, 0x4030
ret 4
push 3
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
push ecx
push edx
mov ecx, esi
call fcn.00483cf0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x4040], 0
jmp 0x4850bf
push 4
jmp 0x485408