Function at 0x498750
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x6438ae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a4
mov eax, dword [0x68e698]
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov edx, 0x14
mov ebp, dword [0x69f324]
mov eax, 0x5a
mov word [esp + 0x34], dx
mov esi, 0xba
mov word [esp + 0x3c], dx
mov word [esp + 0x42], dx
mov word [esp + 0x44], dx
mov edx, 0xe8
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
mov word [esp + 0x32], ax
mov word [esp + 0x36], si
mov word [esp + 0x3e], si
mov word [esp + 0x40], si
mov esi, 0x2f
mov word [esp + 0x46], ax
mov eax, 0x7b
mov word [esp + 0x74], dx
mov word [esp + 0x76], dx
mov word [esp + 0x86], dx
mov edx, 0x4c
xor ebx, ebx
mov edi, 0x2e
mov word [esp + 0x6c], si
mov word [esp + 0x6e], ax
mov word [esp + 0x70], ax
mov word [esp + 0x72], ax
mov word [esp + 0x7a], si
mov word [esp + 0x7c], si
mov esi, 0x18
mov word [esp + 0x7e], ax
mov word [esp + 0x80], ax
mov word [esp + 0x82], ax
mov word [esp + 0x84], ax
mov eax, 0x32
mov word [esp + 0x8e], dx
mov word [esp + 0x90], dx
mov word [esp + 0x92], dx
mov edx, 0x66
mov dword [esp + 0x18], ebx
mov word [esp + 0x38], di
mov word [esp + 0x3a], di
mov word [esp + 0x48], bx
mov word [esp + 0x78], 0x49
mov word [esp + 0x88], bx
mov word [esp + 0x8c], ax
mov word [esp + 0x94], ax
mov word [esp + 0x96], ax
mov word [esp + 0x98], si
mov word [esp + 0x9a], si
mov word [esp + 0x9c], si
mov word [esp + 0x9e], ax
mov word [esp + 0xa0], ax
mov word [esp + 0xa2], ax
mov word [esp + 0xa4], ax
mov word [esp + 0xa6], ax
mov word [esp + 0xa8], ax
mov word [esp + 0x4c], ax
mov word [esp + 0x4e], dx
mov word [esp + 0x50], dx
mov word [esp + 0x52], dx
mov word [esp + 0x54], ax
mov word [esp + 0x56], ax
mov word [esp + 0x58], si
mov word [esp + 0x5a], si
mov word [esp + 0x5c], si
mov word [esp + 0x5e], dx
mov word [esp + 0x60], dx
mov word [esp + 0x62], dx
mov word [esp + 0x64], dx
mov word [esp + 0x66], ax
mov word [esp + 0x68], ax
lea eax, [ebp + 0x3cc]
xor edi, edi
mov dword [esp + 0x10], eax
lea edx, [edi - 1]
cmp edx, 0xb
ja case.0x498947.5
movzx eax, byte [edi + 0x498e9b]
jmp dword [eax*4 + 0x498e84]
mov eax, dword [ecx + 0x100]
test eax, eax
jmp 0x49897b
cmp dword [ecx + 0x100], 1
jmp 0x49897b
cmp dword [ecx + 0x100], 2
jmp 0x49897b
mov al, byte [ebp + 0x1928]
test al, al
jmp 0x49897b
cmp byte [ebp + 0x1928], 1
jne 0x498aec
mov edx, dword [esp + 0x10]
mov esi, dword [edx]
test esi, esi
je 0x498aec
mov eax, dword [esi + 0x1ac]
mov ebx, dword [eax + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [ecx + 0x38]
mov eax, dword [ecx]
sub ebx, edx
call dword [eax + 0x40]
mov ecx, eax
movzx eax, word [esp + edi*2 + 0x8c]
sub eax, ebx
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
add ecx, eax
add cx, word [esp + edi*2 + 0x2c]
mov eax, dword [esi + 0x1ac]
mov word [esi + 8], cx
mov ecx, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
sub ebx, ecx
mov ecx, dword [edx + 0x38]
mov eax, dword [ecx]
call dword [eax + 0x48]
mov ecx, eax
movzx eax, word [esp + edi*2 + 0x4c]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add ecx, eax
add cx, word [esp + edi*2 + 0x6c]
mov word [esi + 0xa], cx
mov eax, dword [ebp + 0x1a48]
test eax, eax
jne 0x498ae8
mov eax, dword [ebp + 0x19e8]
test eax, eax
jne 0x498ae8
mov eax, dword [0x940f30]
test eax, eax
je 0x498ae8
mov eax, dword [0x940f34]
test eax, eax
jne 0x498ae8
mov eax, dword [0x940f24]
test eax, eax
jne 0x498ae8
mov ecx, esi
call fcn.004380a0
test eax, eax
je 0x498ae8
movsx eax, byte [ebp + 0x1928]
lea edx, [eax + 0xb]
cmp edi, edx
jne 0x498a8a
mov eax, dword [ebp + eax*4 + 0x3f0]
test eax, eax
je 0x498a8a
mov eax, dword [eax + 0x1a8]
mov eax, dword [eax + 4]
movzx eax, byte [eax + 4]
cmp eax, 6
je 0x498aba
cmp eax, 7
je 0x498aba
cmp eax, 0xf
je 0x498aba
cmp eax, 8
je 0x498aba
cmp eax, 0x2d
je 0x498aba
cmp eax, 0x2e
je 0x498aba
push 1
push esi
mov ecx, ebp
call fcn.00478000
mov ecx, dword [esp + 0x10]
push 0xffffffffffffffff
mov dword [ecx], 0
call fcn.004b5610
add esp, 4
lea ecx, [ebp + 0x50]
call fcn.0040db60
mov dword [esp + 0x18], 1
jmp 0x498ac2
mov eax, dword [esp + 0x18]
test eax, eax
je 0x498ae8
movsx eax, byte [ebp + 0x1928]
lea edx, [eax + 0xb]
cmp edi, edx
je 0x498ad7
add eax, 9
cmp edi, eax
jne 0x498ae8
mov byte [0x69f40c], 0
mov dword [0x69f408], 0xffffffff
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
inc edi
add edx, 4
cmp edi, 0x10
mov dword [esp + 0x10], edx
jl 0x498938
mov eax, dword [ebp + 0x4ac]
mov esi, dword [eax]
cmp esi, eax
je 0x498ded
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x1a8]
mov edx, dword [eax + 4]
mov ax, word [eax + 0x12]
mov dword [esp + 0x10], edx
mov word [esp + 0x28], ax
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + 0x104]
shr edx, 0xc
and edx, 0xf
cmp edx, eax
jne 0x498ddf
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x1a8]
mov ax, word [eax + 0x12]
mov edx, dword [esi + 8]
mov ecx, dword [ecx + 0x38]
shr al, 4
and al, 0xf
mov bl, al
mov eax, dword [edx + 0x1ac]
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [ecx]
sub edi, edx
call dword [eax + 0x40]
mov edx, dword [esp + 0x10]
mov ecx, eax
movzx eax, byte [edx + 5]
imul eax, eax, 0x1a
sub eax, edi
dec eax
cdq
sub eax, edx
mov edx, dword [esi + 8]
sar eax, 1
add ecx, eax
movzx ax, bl
imul eax, eax, 0x1a
lea ecx, [ecx + eax + 0x26]
mov word [edx + 8], cx
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x1a8]
mov bl, byte [eax + 0x13]
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x1ac]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax + 0x14]
mov edx, dword [esp + 0x14]
sub edi, ecx
mov ecx, dword [edx + 0x38]
mov eax, dword [ecx]
and bl, 0xf
call dword [eax + 0x48]
mov edx, dword [esp + 0x10]
mov ecx, eax
movzx eax, byte [edx + 6]
imul eax, eax, 0x1a
sub eax, edi
dec eax
cdq
sub eax, edx
mov edx, dword [esi + 8]
sar eax, 1
add ecx, eax
movzx ax, bl
imul eax, eax, 0x1a
lea ecx, [ecx + eax + 0x122]
mov word [edx + 0xa], cx
mov eax, dword [ebp + 0x1a48]
test eax, eax
jne 0x498ddb
mov eax, dword [ebp + 0x19e8]
test eax, eax
jne 0x498ddb
mov eax, dword [0x940f30]
test eax, eax
je 0x498ddb
mov eax, dword [0x940f34]
test eax, eax
jne 0x498ddb
mov eax, dword [0x940f24]
test eax, eax
jne 0x498ddb
mov ecx, dword [esi + 8]
call fcn.004380a0
test eax, eax
je 0x498ddb
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x1a4]
mov edx, dword [eax + 0x1a0]
push ecx
lea ebx, [ebp + 0x50]
push edx
mov ecx, ebx
call fcn.00411880
test eax, eax
je 0x498ce0
mov ecx, dword [eax + 0x1a8]
mov dx, word [ecx + 0x12]
mov word [esp + 0x1e], dx
mov edx, dword [eax + 0x10]
test edx, edx
mov word [esp + 0x1c], 0xa
jne 0x498c91
mov eax, dword [ecx + 4]
test byte [eax + 0x20], 8
je 0x498c91
mov cl, byte [ecx + 0x15]
jmp 0x498c93
mov cl, 1
mov eax, dword [0x6a0848]
mov dword [eax + 0xe4], 0x15
mov edx, dword [0x6a0848]
mov eax, dword [edx + 0xc0]
test eax, eax
jne 0x498cb8
mov eax, dword [edx + 0xd0]
mov edi, dword [esp + 0x1c]
push 2
push 0
sub esp, 8
mov edx, esp
mov dword [edx], edi
mov byte [edx + 4], cl
mov ecx, dword [0x6a084c]
mov edx, dword [ecx + 0x260]
push edx
push eax
call fcn.00549620
add esp, 0x18
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x10]
xor edi, edi
cmp ecx, edi
jne 0x498e1d
mov ecx, dword [eax + 0x1a8]
mov ecx, dword [ecx + 4]
test byte [ecx + 0x20], 8
je 0x498e1d
mov cl, byte [0x940f90]
test cl, cl
jns 0x498e1d
mov edx, dword [eax + 0x1a8]
cmp byte [edx + 0x15], 1
jbe 0x498e1d
push 0x66c
call fcn.00614bf2
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x1bc], edi
je 0x498d46
mov ecx, eax
call fcn.004acd40
mov edi, eax
push 0x43480000
push 0x43780000
push 0x99
push 0x6b6338
mov ecx, edi
mov dword [esp + 0x1cc], 0xffffffff
call fcn.004ad860
mov edx, dword [esp + 0x14]
lea eax, [edx + 0x108]
mov dword [edi + 0x178], eax
lea ecx, [edx + 0x10c]
mov dword [edi + 0x3e8], ecx
mov edi, dword [esi + 8]
push 0x69ef08
mov dword [eax], 0
lea eax, [esp + 0xb0]
push str._sSoundInterfaceclick.mnd
push eax
mov dword [edx + 0x114], edi
mov dword [ecx], 0
call fcn.0061660d
add esp, 0xc
push 5
lea ecx, [esp + 0xb0]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.0058f890
mov ecx, eax
call fcn.0058ef20
mov ecx, dword [esp + 0x24]
call fcn.005956b0
mov ecx, dword [esp + 0x14]
mov esi, dword [esi]
cmp esi, dword [ebp + 0x4ac]
jne 0x498b11
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1b0]
setne al
call fcn.006162c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1b0
ret
push 1
push eax
mov ecx, ebp
call fcn.00478000
mov eax, dword [ebp + 0x19e8]
push eax
push edi
mov ecx, ebx
call fcn.0040be80
cmp esi, dword [ebp + 0x4ac]
mov edi, dword [esi]
je 0x498e63
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi]
mov eax, dword [esi + 4]
push esi
mov dword [edx + 4], eax
call fcn.00615a1d
mov eax, dword [ebp + 0x4b0]
add esp, 4
dec eax
mov dword [ebp + 0x4b0], eax
mov ecx, dword [ebp + 0x19e8]
push ecx
mov ecx, ebx
mov esi, edi
call fcn.00411c40
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], 1
jmp 0x498de1