Function at 0x421ed0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e0d1f
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4a8
mov eax, dword [0x660ff8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x168], esi
mov eax, dword [ebx + 8]
mov dword [ebp - 0x16c], eax
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x421f73
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov edi, eax
call fcn.0041c750
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x421f50
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.00413170
mov edx, dword [ebp - 0x16c]
add esp, 4
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x421fdf
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov edi, eax
call fcn.0041c750
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x421fa1
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.00413170
mov edx, dword [esi]
add esp, 4
mov ecx, esi
mov edi, eax
mov edx, dword [edx + 4]
call edx
mov edx, str.name:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
mov esi, dword [ebp - 0x168]
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422047
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov edi, eax
call fcn.0041c750
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x42200d
mov edx, dword [edi]
push dword [edi + 0x10]
mov ecx, eax
call fcn.00413170
mov edx, dword [esi + 0x78]
lea ecx, [esi + 0x78]
add esp, 4
mov edi, eax
mov edx, dword [edx + 4]
call edx
mov edx, str.deviceID:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x4226a3
call fcn.0041c750
push ecx
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0x16c], eax
call fcn.004156b0
mov dword [ebp - 4], 0
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0xc4], 0
movups xmmword [ebp - 0xd4], xmm0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
push str.TRACE
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.00414980
xorps xmm0, xmm0
xor edx, edx
mov edi, 7
mov dword [ebp - 0x4c], edx
xor eax, eax
mov dword [ebp - 0x48], edi
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 2
xor esi, esi
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 0xc], esi
jle 0x42213e
nop word [eax + eax]
cmp esi, 0xa
jge 0x42213e
mov eax, edi
lea ecx, [ebp - 0x5c]
sub eax, edx
cmp eax, 2
jb 0x42210f
cmp edi, 8
lea eax, [edx + 2]
mov dword [ebp - 0x4c], eax
cmovae ecx, dword [ebp - 0x5c]
mov eax, dword [0x62f6e0]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x42212a
push 2
push 0x62f6e0
mov byte [ebp - 0x174], 0
push dword [ebp - 0x174]
push 2
call fcn.0041d540
mov eax, dword [ebp - 0x16c]
inc esi
cmp esi, dword [eax + 0xc]
jge 0x42213e
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
jmp 0x4220e0
xorps xmm0, xmm0
mov dword [ebp - 0xac], 0
xor eax, eax
mov dword [ebp - 0xa8], 7
movups xmmword [ebp - 0xbc], xmm0
mov word [ebp - 0xbc], ax
movups xmmword [ebp - 0x8c], xmm0
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 4
call fcn.005be42d
lea eax, [ebp - 0x2c]
push 0xb
push eax
call fcn.005be553
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xbc]
push eax
call fcn.00414980
push ecx
lea ecx, [ebp - 0x408]
call fcn.004156b0
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x16c]
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x10], 0
jne 0x4221d8
call eax
push 0
lea ecx, [ebp - 0x3f8]
mov dword [esi + 0x10], eax
call fcn.0040fc40
jmp 0x422204
call eax
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x3f8]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6359f0]
divsd xmm1, qword [0x635968]
call fcn.0041cf00
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x3f0]
call fcn.00416140
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x78]
cmp ecx, 8
jb 0x422257
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42224d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423260
push ecx
push edx
call fcn.005b0fc9
add esp, 8
movups xmm0, xmmword [ebp - 0x11c]
xor eax, eax
lea ecx, [ebp - 0x408]
mov word [ebp - 0x11c], ax
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [ebp - 0x10c]
movq qword [ebp - 0x7c], xmm0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 7
mov byte [ebp - 4], 4
call fcn.00415590
lea eax, [ebp - 0x178]
push 0x10
push eax
call fcn.005b3392
mov edi, eax
lea eax, [ebp - 0x170]
push 0x2040
push eax
call fcn.005b3392
mov ecx, dword [ebp - 0x298]
lea edx, [ebp - 0x298]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
cmp dword [ebp - 0xa8], 8
lea edx, [ebp - 0xbc]
push dword [ebp - 0xac]
cmovae edx, dword [ebp - 0xbc]
lea ecx, [ebp - 0x298]
call fcn.00413170
add esp, 0x1c
mov edx, 0x62f31c
mov ecx, eax
call fcn.00412eb0
push dword [edi + 4]
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
push ecx
mov ecx, dword [edi]
call ecx
push 0
lea eax, [ebp - 0x1a8]
push 6
push eax
call fcn.005b33c0
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0041d510
mov esi, eax
mov eax, 0x30
push 0
push 3
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0x1b8]
push eax
call fcn.005b33a6
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041d510
cmp dword [ebp - 0x78], 8
lea edx, [ebp - 0x8c]
push dword [ebp - 0x7c]
cmovae edx, dword [ebp - 0x8c]
mov ecx, eax
call fcn.00413170
add esp, 4
mov edi, eax
lea eax, [ebp - 0x1c8]
push 0
push 5
push eax
call fcn.005b33c0
add esp, 0xc
mov edx, 0x62f31c
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.0041d510
mov esi, eax
mov eax, 0x20
push 0x40
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0x180]
push eax
call fcn.005b3392
mov ecx, dword [esi]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, esi
push ecx
call eax
cmp dword [ebp - 0xc0], 8
lea edx, [ebp - 0xd4]
push dword [ebp - 0xc4]
cmovae edx, dword [ebp - 0xd4]
mov ecx, esi
call fcn.00413170
add esp, 0x14
lea esi, [ebp - 0x5c]
cmp dword [ebp - 0x48], 8
mov edx, 0x62f720
mov ecx, eax
cmovae esi, dword [ebp - 0x5c]
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x66b940]
cmp eax, dword [ecx + 4]
jg 0x423265
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x290]
call fcn.00416140
mov byte [ebp - 4], 7
mov ecx, dword [0x661acc]
cmp ecx, 8
jb 0x422491
mov edx, dword [0x661ab8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422487
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232c4
push ecx
push edx
call fcn.005b0fc9
add esp, 8
movups xmm0, xmmword [ebp - 0x134]
xor eax, eax
mov word [ebp - 0x134], ax
movups xmmword [0x661ab8], xmm0
movq xmm0, qword [ebp - 0x124]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x78]
movq qword [0x661ac8], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 7
cmp ecx, 8
jb 0x42250d
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422503
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232c4
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp ecx, 8
jb 0x422568
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42255e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232c4
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
cmp ecx, 8
jb 0x4225c3
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4225b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232c4
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x42261a
mov edx, dword [ebp - 0xd4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422610
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232c4
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov dword [ebp - 0xc4], 0
lea ecx, [ebp - 0x2a8]
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00415590
call fcn.0041c750
cmp dword [0x661acc], 8
mov edx, 0x661ab8
push dword [0x661ac8]
cmovae edx, dword [0x661ab8]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x20
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.directXVersion:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422d18
call fcn.0041c750
push ecx
lea ecx, [ebp - 0x358]
mov dword [ebp - 0x16c], eax
call fcn.004156b0
mov dword [ebp - 4], 8
xorps xmm0, xmm0
xor eax, eax
mov dword [ebp - 0xf4], 0
movups xmmword [ebp - 0x104], xmm0
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
push str.TRACE
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 9
call fcn.00414980
xorps xmm0, xmm0
xor edx, edx
mov edi, 7
mov dword [ebp - 0x64], edx
xor eax, eax
mov dword [ebp - 0x60], edi
movups xmmword [ebp - 0x74], xmm0
mov word [ebp - 0x74], ax
mov byte [ebp - 4], 0xa
xor esi, esi
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 0xc], esi
jle 0x422794
cmp esi, 0xa
jge 0x422794
mov eax, edi
lea ecx, [ebp - 0x74]
sub eax, edx
cmp eax, 2
jb 0x422765
cmp edi, 8
lea eax, [edx + 2]
mov dword [ebp - 0x64], eax
cmovae ecx, dword [ebp - 0x74]
mov eax, dword [0x62f6e0]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x422780
push 2
push 0x62f6e0
mov byte [ebp - 0x174], 0
push dword [ebp - 0x174]
push 2
call fcn.0041d540
mov eax, dword [ebp - 0x16c]
inc esi
cmp esi, dword [eax + 0xc]
jge 0x422794
mov edi, dword [ebp - 0x60]
mov edx, dword [ebp - 0x64]
jmp 0x422736
xorps xmm0, xmm0
mov dword [ebp - 0xdc], 0
xor eax, eax
mov dword [ebp - 0xd8], 7
movups xmmword [ebp - 0xec], xmm0
mov word [ebp - 0xec], ax
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov byte [ebp - 4], 0xc
call fcn.005be42d
lea eax, [ebp - 0x44]
push 0xb
push eax
call fcn.005be553
add esp, 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0xec]
push eax
call fcn.00414980
push ecx
lea ecx, [ebp - 0x4b8]
call fcn.004156b0
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x16c]
cmp dword [esi + 0x10], 0
jne 0x422833
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0x4a8]
mov dword [esi + 0x10], eax
call fcn.0040fc40
jmp 0x422863
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x4a8]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6359f0]
divsd xmm1, qword [0x635968]
call fcn.0041cf00
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x4a0]
call fcn.00416140
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x90]
cmp ecx, 8
jb 0x4228b9
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4228af
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4232c9
push ecx
push edx
call fcn.005b0fc9
add esp, 8
movups xmm0, xmmword [ebp - 0x14c]
xor eax, eax
lea ecx, [ebp - 0x4b8]
mov word [ebp - 0x14c], ax
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [ebp - 0x13c]
movq qword [ebp - 0x94], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 7
mov byte [ebp - 4], 0xc
call fcn.00415590
lea eax, [ebp - 0x188]
push 0x10
push eax
call fcn.005b3392
mov edi, eax
lea eax, [ebp - 0x190]
push 0x2040
push eax
call fcn.005b3392
mov ecx, dword [ebp - 0x348]
lea edx, [ebp - 0x348]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
cmp dword [ebp - 0xd8], 8
lea edx, [ebp - 0xec]
push dword [ebp - 0xdc]
cmovae edx, dword [ebp - 0xec]
lea ecx, [ebp - 0x348]
call fcn.00413170
add esp, 0x1c
mov edx, 0x62f31c
mov ecx, eax
call fcn.00412eb0
push dword [edi + 4]
mov esi, eax
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
push ecx
mov ecx, dword [edi]
call ecx
push 0
lea eax, [ebp - 0x1d8]
push 6
push eax
call fcn.005b33c0
add esp, 0x14
mov edx, eax
mov ecx, esi
call fcn.0041d510
mov esi, eax
mov eax, 0x30
push 0
push 3
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0x1e8]
push eax
call fcn.005b33a6
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041d510
cmp dword [ebp - 0x90], 8
lea edx, [ebp - 0xa4]
push dword [ebp - 0x94]
cmovae edx, dword [ebp - 0xa4]
mov ecx, eax
call fcn.00413170
add esp, 4
mov edi, eax
lea eax, [ebp - 0x1f8]
push 0
push 5
push eax
call fcn.005b33c0
add esp, 0xc
mov edx, 0x62f31c
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.0041d510
mov esi, eax
mov eax, 0x20
push 0x40
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
mov word [ecx + esi + 0x40], ax
lea eax, [ebp - 0x198]
push eax
call fcn.005b3392
mov ecx, dword [esi]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, esi
push ecx
call eax
cmp dword [ebp - 0xf0], 8
lea edx, [ebp - 0x104]
push dword [ebp - 0xf4]
cmovae edx, dword [ebp - 0x104]
mov ecx, esi
call fcn.00413170
add esp, 0x14
lea esi, [ebp - 0x74]
cmp dword [ebp - 0x60], 8
mov edx, 0x62f720
mov ecx, eax
cmovae esi, dword [ebp - 0x74]
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x66b940]
cmp eax, dword [ecx + 4]
jg 0x4232ce
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x340]
call fcn.00416140
mov byte [ebp - 4], 0xf
mov ecx, dword [0x661acc]
cmp ecx, 8
jb 0x422afc
mov edx, dword [0x661ab8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422af2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42332d
push ecx
push edx
call fcn.005b0fc9
add esp, 8
movups xmm0, xmmword [ebp - 0x164]
xor eax, eax
mov word [ebp - 0x164], ax
movups xmmword [0x661ab8], xmm0
movq xmm0, qword [ebp - 0x154]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x90]
movq qword [0x661ac8], xmm0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 7
cmp ecx, 8
jb 0x422b7b
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422b71
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42332d
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp ecx, 8
jb 0x422bdc
mov edx, dword [ebp - 0xec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422bd2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42332d
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
cmp ecx, 8
jb 0x422c37
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422c2d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42332d
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp ecx, 8
jb 0x422c8f
mov edx, dword [ebp - 0x104]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422c85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42332d
push ecx
push edx
call fcn.005b0fc9
add esp, 8
xor eax, eax
mov dword [ebp - 0xf4], 0
lea ecx, [ebp - 0x358]
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00415590
call fcn.0041c750
cmp dword [0x661acc], 8
mov edx, 0x661ab8
push dword [0x661ac8]
cmovae edx, dword [0x661ab8]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x28
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.driverVersion:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422d85
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422d46
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x10
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.driver:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422df2
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422db3
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 8
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.chipset:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422e5f
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422e20
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x18
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.dac:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422ecc
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422e8d
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x48
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.dedicated_ram:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422f39
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422efa
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x58
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.shared_ram:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x422fa6
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422f67
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x68
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.total_ram:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x423013
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x422fd4
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x38
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.pixel_shader:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x423080
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423041
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x40
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.vertex_shader:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x4230f0
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4230ae
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x9c
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.transform_and_lighting:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x423160
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x42311e
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0x94
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.hardware_rasterization:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x4231d0
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x42318e
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0xa4
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.3d:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
call fcn.0041c750
cmp dword [eax + 4], 3
jl 0x423240
push 3
push ecx
call fcn.0041c750
add esp, 4
mov ecx, eax
call fcn.0041c8c0
mov esi, eax
call fcn.0041c750
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4231fe
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413170
mov ecx, dword [ebp - 0x168]
add esp, 4
add ecx, 0xb4
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.2ID:
mov ecx, edi
mov esi, eax
call fcn.00412eb0
mov edx, esi
mov ecx, eax
call fcn.00412eb0
push eax
call fcn.004141e0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b0d47
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.005b7faf
push 0x66b940
call fcn.005b1053
add esp, 4
cmp dword [0x66b940], 0xffffffff
jne 0x42243b
xorps xmm0, xmm0
mov dword [0x661ac8], 0
xor eax, eax
mov dword [0x661acc], 7
movups xmmword [0x661ab8], xmm0
push 0x5f5930
mov word [0x661ab8], ax
call fcn.005b0f91
add esp, 4
push 0x66b940
call fcn.005b1002
add esp, 4
jmp 0x42243b
call fcn.005b7faf
call fcn.005b7faf
push 0x66b940
call fcn.005b1053
add esp, 4
cmp dword [0x66b940], 0xffffffff
jne 0x422aa6
xorps xmm0, xmm0
mov dword [0x661ac8], 0
xor eax, eax
mov dword [0x661acc], 7
movups xmmword [0x661ab8], xmm0
push 0x5f5930
mov word [0x661ab8], ax
call fcn.005b0f91
add esp, 4
push 0x66b940
call fcn.005b1002
add esp, 4
jmp 0x422aa6
call fcn.005b7faf
int3