Function at 0x5a4010
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x721a70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
cmp eax, 0xffffffff
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
je 0x5a41fa
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 8]
imul eax, eax, 0xb0
lea edx, [eax + ecx + 0x84]
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 0x7f000000
call fcn.005e5b00
push 0x73d71c
lea ecx, [esp + 0x24]
mov dword [esp + 0x60], ebx
call fcn.005e5390
test eax, eax
mov edi, dword [ebp + 8]
je 0x5a40d4
push 0x74a608
lea ecx, [esp + 0x24]
call fcn.005e58c0
test eax, eax
je 0x5a409a
mov eax, dword [edi + 4]
jmp 0x5a40d0
push str.PLAYER
lea ecx, [esp + 0x24]
call fcn.005e58c0
test eax, eax
je 0x5a40bc
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
call fcn.004aea40
jmp 0x5a40d0
lea edx, [esp + 0x20]
push edx
push edi
mov ecx, esi
call fcn.0059fc30
cmp eax, ebx
je 0x5a40d4
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 8]
imul ecx, ecx, 0xb0
push 0x73d71c
add ecx, edx
call fcn.005e5390
test eax, eax
je 0x5a414d
mov ecx, dword [esi + 0x70]
mov eax, dword [esi + 8]
imul ecx, ecx, 0xb0
add ecx, eax
push ecx
lea ecx, [edi + 0x18]
call fcn.005e6450
test eax, eax
jne 0x5a414d
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 8]
imul edx, edx, 0xb0
add edx, ecx
push edx
push edi
mov ecx, esi
call fcn.0059fc30
cmp eax, ebx
jne 0x5a414f
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005e5c20
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, edi
mov edx, dword [esi + 0x70]
mov ebx, dword [ebp + 0x14]
imul edx, edx, 0xb0
add edx, dword [esi + 8]
mov eax, dword [eax + 4]
mov ecx, dword [edi + 4]
push ebx
push edx
xor edx, edx
mov dl, byte [esi + 0x78]
push edi
push edx
mov edx, dword [esi + 0x7c]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
mov ecx, esi
call fcn.005a13d0
mov dword [esp + 0x18], eax
cmp dword [ebx], 0xa
jne 0x5a41b6
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005e5c20
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x5a41d3
mov eax, dword [esi + 0x68]
test eax, eax
je 0x5a41d3
mov ecx, dword [ebp + 0xc]
push ecx
push edi
mov ecx, esi
call fcn.005a3820
mov ebx, eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005e5c20
mov eax, ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 4]
jae 0x5a4246
mov ecx, dword [esi + 8]
imul edi, edi, 0xb0
push 0x73d71c
add ecx, edi
call fcn.005e5390
test eax, eax
mov ebx, dword [ebp + 8]
je 0x5a425c
mov edx, dword [esi + 8]
add edx, edi
push edx
lea ecx, [ebx + 0x18]
call fcn.005e6450
test eax, eax
jne 0x5a425c
mov eax, dword [esi + 8]
add eax, edi
push eax
push ebx
mov ecx, esi
call fcn.0059fc30
test eax, eax
mov dword [esp + 0x10], eax
jne 0x5a4260
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x10], ebx
mov ecx, dword [esi + 8]
lea edx, [edi + ecx + 0x84]
push edx
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 0x7f000000
call fcn.005e5b00
push 0x73d71c
lea ecx, [esp + 0x34]
mov dword [esp + 0x60], 1
call fcn.005e5390
test eax, eax
je 0x5a42e7
push 0x74a608
lea ecx, [esp + 0x34]
call fcn.005e58c0
test eax, eax
je 0x5a42ad
mov eax, dword [ebx + 4]
jmp 0x5a42e3
push str.PLAYER
lea ecx, [esp + 0x34]
call fcn.005e58c0
test eax, eax
je 0x5a42cf
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
call fcn.004aea40
jmp 0x5a42e3
lea edx, [esp + 0x30]
push edx
push ebx
mov ecx, esi
call fcn.0059fc30
test eax, eax
je 0x5a42e7
mov eax, dword [eax + 4]
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0x64]
mov dword [esi + 0x68], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x5a43ef
mov dword [esp + 0x14], ecx
mov eax, dword [eax]
test eax, eax
jne 0x5a4309
xor ebx, ebx
jmp 0x5a430c
mov ebx, dword [eax + 8]
test ebx, ebx
je 0x5a4379
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 0x14]
push edx
mov edx, dword [esi + 8]
add edx, edi
push edx
mov edx, dword [ebp + 8]
push edx
xor edx, edx
mov dl, byte [esi + 0x78]
push edx
mov edx, dword [esi + 0x7c]
push edx
mov edx, dword [esp + 0x20]
push edx
push eax
mov eax, dword [ebx]
push ecx
push eax
mov ecx, esi
call fcn.005a13d0
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], 0xa
je 0x5a43a6
mov edx, dword [esi + 8]
mov ecx, dword [ebx]
lea eax, [edi + edx]
mov edx, dword [eax + 0x54]
push ecx
push edx
add eax, 0x4c
push eax
mov ecx, esi
call fcn.0059ef00
mov ecx, dword [esi + 0x64]
lea eax, [esp + 0x14]
push eax
call fcn.005e9b90
mov ebx, eax
test ebx, ebx
jne 0x5a4310
mov ecx, dword [esi + 0x64]
mov eax, dword [ecx + 8]
lea edx, [eax*4]
push edx
call fcn.006fa7e6
mov ebx, eax
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov eax, dword [eax]
add esp, 4
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x5a43d0
jmp 0x5a43d3
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 0xffffffff
call fcn.005e5c20
mov eax, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [eax + 8]
test eax, eax
je 0x5a43ef
mov edx, dword [eax]
mov dword [ebx], edx
mov ecx, dword [esi + 0x64]
lea eax, [esp + 0x14]
push eax
add ebx, 4
call fcn.005e9b90
test eax, eax
jne 0x5a43d7
mov ecx, dword [esi + 8]
mov edx, dword [edi + ecx + 0x5c]
lea eax, [edi + ecx]
mov eax, dword [eax + 0x58]
push edx
push eax
mov ecx, esi
call fcn.0059f3c0
mov edx, dword [esi + 8]
mov ecx, dword [0x7a39fc]
mov ebx, dword [ecx + 4]
mov ecx, dword [edi + edx + 0x2c]
lea eax, [edi + edx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 4]
add eax, 0x34
push eax
push ecx
mov ecx, ebx
call fcn.005eda50
push eax
mov ecx, ebx
call fcn.005ed690
mov ecx, eax
call fcn.0062e1d0
mov dword [esp + 0xc], eax
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
push 8
call fcn.005ee0d0
cmp eax, 1
mov eax, dword [0x832894]
jne 0x5a4482
test eax, eax
jne 0x5a470e
mov ecx, dword [esi + 8]
mov dl, byte [edi + ecx + 0x80]
xor eax, eax
test dl, 1
je 0x5a4479
mov eax, 1
mov dword [esp + 0xc], eax
jmp 0x5a470e
test eax, eax
jne 0x5a468d
lea ecx, [esp + 0x28]
mov dword [esp + 0xc], 1
call fcn.005b3190
mov eax, dword [esi + 8]
lea edx, [esp + 0x28]
push edx
lea ecx, [edi + eax + 0x34]
mov byte [esp + 0x60], 2
call fcn.00405f70
push 0
lea ecx, [esp + 0x2c]
call fcn.005e5600
cmp al, 0x6e
je 0x5a44d3
push 0
lea ecx, [esp + 0x2c]
call fcn.005e5600
cmp al, 0x4e
jne 0x5a4597
lea ecx, [esp + 0x28]
call fcn.005e5790
cmp eax, 0x10
jne 0x5a4597
push 1
lea ecx, [esp + 0x2c]
call fcn.005e5600
cmp al, 0x5f
je 0x5a4597
mov eax, 1
lea ecx, [esp + 0x48]
xor ebx, ebx
sub eax, ecx
mov dword [esp + 0x1c], eax
lea esp, [esp]
mov edx, dword [esp + 0x1c]
add edx, ebx
lea eax, [esp + edx + 0x48]
push eax
lea ecx, [esp + 0x2c]
call fcn.005e5600
mov byte [esp + ebx + 0x48], al
inc ebx
cmp ebx, 5
jl 0x5a4510
mov byte [esp + ebx + 0x48], 0
mov eax, 6
lea ecx, [esp + 0x40]
xor ebx, ebx
sub eax, ecx
mov dword [esp + 0x1c], eax
jmp 0x5a4550
mov eax, dword [esp + 0x1c]
lea ebx, [ebx]
add eax, ebx
lea edx, [esp + eax + 0x40]
push edx
lea ecx, [esp + 0x2c]
call fcn.005e5600
mov byte [esp + ebx + 0x40], al
inc ebx
cmp ebx, 6
jl 0x5a4546
lea ecx, [esp + 0x28]
mov byte [esp + ebx + 0x40], 0
call fcn.005e5670
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x34]
push str.HD0:STREAMWAVES_s_s_s
push edx
call fcn.005e5680
add esp, 0x14
jmp 0x5a45b3
lea ecx, [esp + 0x28]
call fcn.005e5670
push eax
lea eax, [esp + 0x2c]
push str.HD0:STREAMWAVES_s
push eax
call fcn.005e5680
add esp, 0xc
lea ecx, [esp + 0x38]
call fcn.005b3190
mov eax, dword [0x7a39e0]
push 8
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x50]
mov bl, 3
push edx
mov byte [esp + 0x68], bl
call fcn.005e68a0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 4
call fcn.005e5c50
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], bl
call fcn.005e5c20
push 0x740ca4
lea ecx, [esp + 0x3c]
call fcn.005e5670
push eax
call fcn.006fad9d
add esp, 8
test eax, eax
jne 0x5a4668
mov eax, dword [0x7a39e0]
push 4
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [eax + 0xc]
lea edx, [esp + 0x50]
push edx
call fcn.005e68a0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x60], 5
call fcn.005e5c50
lea ecx, [esp + 0x48]
mov byte [esp + 0x5c], bl
call fcn.005e5c20
push 0x740ca4
lea ecx, [esp + 0x3c]
call fcn.005e5670
push eax
call fcn.006fad9d
add esp, 8
test eax, eax
jne 0x5a4668
mov dword [esp + 0xc], eax
jmp 0x5a4671
push eax
call fcn.006facf0
add esp, 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x5c], 2
call fcn.005e5c20
lea ecx, [esp + 0x28]
mov byte [esp + 0x5c], 1
call fcn.005e5c20
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5a470e
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005ed700
test byte [eax + 0x14], 4
jne 0x5a470e
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x5a470e
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
call fcn.005ed690
mov ecx, eax
call fcn.0062abd0
test eax, eax
je 0x5a470e
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed690
mov dword [eax + 0xbb0], 1
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005ed690
mov ecx, dword [eax + 0xbb4]
test ecx, ecx
je 0x5a470e
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 4]
call fcn.005ed690
mov ecx, eax
call fcn.0062b130
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5a471f
push eax
call fcn.006fa390
add esp, 4
mov eax, dword [esi + 0x64]
cmp dword [eax], 0
je 0x5a4734
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov dword [esi + 0x94], eax
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x5a47d8
mov edx, dword [esi + 8]
mov cl, byte [edi + edx + 0x20]
test cl, 0x10
lea eax, [edi + edx]
jne 0x5a47d8
cmp dword [eax + 0x28], 0xffffffff
jne 0x5a47c4
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 4]
call fcn.005ed690
mov ecx, dword [eax + 0xc0]
test ecx, ecx
push 0
jne 0x5a47b8
mov edx, dword [esi + 8]
mov ebx, dword [edi + edx + 0xa8]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
xor eax, eax
test ebx, ebx
setne al
xor edx, edx
mov dl, byte [esi + 0x78]
push eax
mov eax, dword [esi + 0x7c]
push edx
push eax
call fcn.004ae810
mov ecx, dword [esi + 8]
push eax
lea ecx, [edi + ecx + 8]
call fcn.005ea270
call fcn.006fae8c
mov edx, dword [esi + 8]
push eax
lea eax, [edi + edx + 8]
jmp 0x5a47f6
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004cb1a0
jmp 0x5a4804
mov edx, dword [eax + 0xa8]
xor ecx, ecx
test edx, edx
setne cl
push 0
push ecx
push 0
jmp 0x5a47f3
mov edx, dword [esi + 8]
mov ebx, dword [edi + edx + 0xa8]
lea eax, [edi + edx]
mov edx, dword [eax + 0x24]
xor ecx, ecx
test ebx, ebx
setne cl
push 0
push ecx
push edx
add eax, 8
mov ebx, dword [ebp + 8]
push eax
mov ecx, esi
push ebx
call fcn.0059ff50
fstp st(0)
mov eax, dword [esi + 8]
mov eax, dword [edi + eax + 0x20]
mov dword [ebx + 0x5c], eax
mov ecx, dword [esi + 8]
lea edx, [edi + ecx + 0x10]
push edx
push ebx
mov ecx, esi
call fcn.0059ed70
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [esi + 0x70], eax
call fcn.004cd500
lea ecx, [esp + 0x30]
mov esi, eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.005e5c20
mov ecx, dword [esp + 0x54]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10