Function at 0x4222e0
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 0x5df591
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4d0
mov eax, dword [0x663000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x180], ecx
mov eax, dword [ebx + 8]
mov dword [ebp - 0x184], eax
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x422951
call fcn.0041ca00
push ecx
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x188], eax
call fcn.00415de0
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
push str.TRACE
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 1
call fcn.00415110
xor edx, edx
mov dword [ebp - 0x5c], 0
mov edi, 7
mov dword [ebp - 0x4c], edx
xor eax, eax
mov dword [ebp - 0x48], edi
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 2
xor esi, esi
mov eax, dword [ebp - 0x188]
cmp dword [eax + 0xc], esi
jle 0x422412
cmp esi, 0xa
jge 0x422412
mov eax, edi
lea ecx, [ebp - 0x5c]
sub eax, edx
cmp eax, 2
jb 0x4223e3
cmp edi, 8
lea eax, [edx + 2]
mov dword [ebp - 0x4c], eax
cmovae ecx, dword [ebp - 0x5c]
mov eax, dword [0x6315a0]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x4223fe
push 2
push 0x6315a0
mov byte [ebp - 0x190], 0
push dword [ebp - 0x190]
push 2
call fcn.0041d780
mov eax, dword [ebp - 0x188]
inc esi
cmp esi, dword [eax + 0xc]
jge 0x422412
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
jmp 0x4223b4
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
mov byte [ebp - 4], 4
call fcn.005bb7bb
lea eax, [ebp - 0x2c]
push 0xb
push eax
call fcn.005bb8c6
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x8c]
push eax
call fcn.00415110
push ecx
lea ecx, [ebp - 0x380]
call fcn.00415de0
mov byte [ebp - 4], 5
mov esi, dword [ebp - 0x188]
mov eax, dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x10], 0
jne 0x4224ab
call eax
push 0
lea ecx, [ebp - 0x370]
mov dword [esi + 0x10], eax
call fcn.00410290
jmp 0x4224d7
call eax
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x370]
movd xmm0, eax
cvtdq2pd xmm1, xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6376f0]
divsd xmm1, qword [0x637690]
call fcn.0041d1a0
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x368]
call fcn.00416850
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xd8]
cmp ecx, 8
jb 0x42252d
mov edx, dword [ebp - 0xec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422523
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423c68
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0x14c]
xor eax, eax
lea ecx, [ebp - 0x380]
mov word [ebp - 0x14c], ax
movups xmmword [ebp - 0xec], xmm0
movq xmm0, qword [ebp - 0x13c]
movq qword [ebp - 0xdc], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 7
mov byte [ebp - 4], 4
call fcn.00415cc0
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0x2040
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x18c]
push eax
call fcn.005b1d32
mov ecx, dword [ebp - 0x290]
lea edx, [ebp - 0x290]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
cmp dword [ebp - 0x78], 8
lea edx, [ebp - 0x8c]
push dword [ebp - 0x7c]
cmovae edx, dword [ebp - 0x8c]
lea ecx, [ebp - 0x290]
call fcn.00413940
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x1a4]
push 0x10
push eax
call fcn.005b1d32
mov edx, 0x6311e0
mov ecx, esi
mov edi, eax
call fcn.00413680
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.005b1d60
add esp, 0x1c
mov edx, eax
mov ecx, esi
call fcn.0041d750
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 - 0x1c8]
push eax
call fcn.005b1d46
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041d750
cmp dword [ebp - 0xd8], 8
lea edx, [ebp - 0xec]
push dword [ebp - 0xdc]
cmovae edx, dword [ebp - 0xec]
mov ecx, eax
call fcn.00413940
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x1b8]
push 5
push eax
call fcn.005b1d60
add esp, 0xc
mov edx, 0x6311e0
mov ecx, edi
mov esi, eax
call fcn.00413680
mov edx, esi
mov ecx, eax
call fcn.0041d750
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 - 0x19c]
push eax
call fcn.005b1d32
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 - 0x60], 8
lea edx, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae edx, dword [ebp - 0x74]
mov ecx, esi
call fcn.00413940
add esp, 0x14
mov edx, 0x6315e0
mov ecx, eax
call fcn.00413680
mov edx, dword [ebp - 0x190]
mov ecx, eax
call fcn.00413680
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x66d948]
cmp eax, dword [ecx + 4]
jg 0x423c6d
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x288]
call fcn.00416850
mov byte [ebp - 4], 7
mov ecx, dword [0x663aec]
cmp ecx, 8
jb 0x42276a
mov edx, dword [0x663ad8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423cc4
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0x134]
xor eax, eax
mov word [ebp - 0x134], ax
movups xmmword [0x663ad8], xmm0
movq xmm0, qword [ebp - 0x124]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0xd8]
movq qword [0x663ae8], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 7
cmp ecx, 8
jb 0x4227e9
mov edx, dword [ebp - 0xec]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4227df
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423cc4
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
cmp ecx, 8
jb 0x422847
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42283d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423cc4
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp ecx, 8
jb 0x42289c
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422892
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423cc4
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x4228ed
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4228e3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423cc4
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00415cc0
call fcn.0041ca00
cmp dword [0x663aec], 8
mov edx, 0x663ad8
push dword [0x663ae8]
cmovae edx, dword [0x663ad8]
mov ecx, eax
call fcn.00413940
mov edx, dword [ebp - 0x184]
add esp, 4
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x422f93
call fcn.0041ca00
push ecx
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x188], eax
call fcn.00415de0
mov dword [ebp - 4], 8
xor eax, eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
push str.TRACE
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 9
call fcn.00415110
xor edx, edx
mov dword [ebp - 0x5c], 0
mov edi, 7
mov dword [ebp - 0x4c], edx
xor eax, eax
mov dword [ebp - 0x48], edi
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 0xa
xor esi, esi
mov eax, dword [ebp - 0x188]
cmp dword [eax + 0xc], esi
jle 0x422a3e
nop
cmp esi, 0xa
jge 0x422a3e
mov eax, edi
lea ecx, [ebp - 0x5c]
sub eax, edx
cmp eax, 2
jb 0x422a0f
cmp edi, 8
lea eax, [edx + 2]
mov dword [ebp - 0x4c], eax
cmovae ecx, dword [ebp - 0x5c]
mov eax, dword [0x6315a0]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x422a2a
push 2
push 0x6315a0
mov byte [ebp - 0x184], 0
push dword [ebp - 0x184]
push 2
call fcn.0041d780
mov eax, dword [ebp - 0x188]
inc esi
cmp esi, dword [eax + 0xc]
jge 0x422a3e
mov edi, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
jmp 0x4229e0
xor eax, eax
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0xc4], eax
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
mov byte [ebp - 4], 0xc
call fcn.005bb7bb
lea eax, [ebp - 0x2c]
push 0xb
push eax
call fcn.005bb8c6
add esp, 8
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x74]
push eax
call fcn.00415110
push ecx
lea ecx, [ebp - 0x380]
call fcn.00415de0
mov byte [ebp - 4], 0xd
mov esi, dword [ebp - 0x188]
cmp dword [esi + 0x10], 0
jne 0x422acd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0x370]
mov dword [esi + 0x10], eax
call fcn.00410290
jmp 0x422afd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x370]
movd xmm0, eax
cvtdq2pd xmm1, xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6376f0]
divsd xmm1, qword [0x637690]
call fcn.0041d1a0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x368]
call fcn.00416850
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0xc0]
cmp ecx, 8
jb 0x422b53
mov edx, dword [ebp - 0xd4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422b49
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423cc9
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0x134]
xor eax, eax
lea ecx, [ebp - 0x380]
mov word [ebp - 0x134], ax
movups xmmword [ebp - 0xd4], xmm0
movq xmm0, qword [ebp - 0x124]
movq qword [ebp - 0xc4], xmm0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x120], 7
mov byte [ebp - 4], 0xc
call fcn.00415cc0
cmp dword [ebp - 0x48], 8
lea eax, [ebp - 0x5c]
push 0x2040
cmovae eax, dword [ebp - 0x5c]
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x19c]
push eax
call fcn.005b1d32
mov ecx, dword [ebp - 0x290]
lea edx, [ebp - 0x290]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
push dword [ebp - 0x64]
cmovae edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x290]
call fcn.00413940
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x1a4]
push 0x10
push eax
call fcn.005b1d32
mov edx, 0x6311e0
mov ecx, esi
mov edi, eax
call fcn.00413680
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 - 0x1b8]
push 6
push eax
call fcn.005b1d60
add esp, 0x1c
mov edx, eax
mov ecx, esi
call fcn.0041d750
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 - 0x1c8]
push eax
call fcn.005b1d46
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041d750
cmp dword [ebp - 0xc0], 8
lea edx, [ebp - 0xd4]
push dword [ebp - 0xc4]
cmovae edx, dword [ebp - 0xd4]
mov ecx, eax
call fcn.00413940
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x1d8]
push 5
push eax
call fcn.005b1d60
add esp, 0xc
mov edx, 0x6311e0
mov ecx, edi
mov esi, eax
call fcn.00413680
mov edx, esi
mov ecx, eax
call fcn.0041d750
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 - 0x194]
push eax
call fcn.005b1d32
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 - 0x78], 8
lea edx, [ebp - 0x8c]
push dword [ebp - 0x7c]
cmovae edx, dword [ebp - 0x8c]
mov ecx, esi
call fcn.00413940
add esp, 0x14
mov edx, 0x6315e0
mov ecx, eax
call fcn.00413680
mov edx, dword [ebp - 0x184]
mov ecx, eax
call fcn.00413680
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x66d948]
cmp eax, dword [ecx + 4]
jg 0x423cce
lea eax, [ebp - 0x14c]
push eax
lea ecx, [ebp - 0x288]
call fcn.00416850
mov byte [ebp - 4], 0xf
mov ecx, dword [0x663aec]
cmp ecx, 8
jb 0x422d90
mov edx, dword [0x663ad8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422d86
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d25
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0x14c]
xor eax, eax
mov word [ebp - 0x14c], ax
movups xmmword [0x663ad8], xmm0
movq xmm0, qword [ebp - 0x13c]
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xc0]
movq qword [0x663ae8], xmm0
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 7
cmp ecx, 8
jb 0x422e0f
mov edx, dword [ebp - 0xd4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422e05
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d25
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 7
mov word [ebp - 0xd4], ax
cmp ecx, 8
jb 0x422e6a
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422e60
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d25
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp ecx, 8
jb 0x422ebc
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422eb2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d25
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x78]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 8
jb 0x422f11
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x422f07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d25
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x2a0]
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00415cc0
call fcn.0041ca00
cmp dword [0x663aec], 8
mov edx, 0x663ad8
push dword [0x663ae8]
cmovae edx, dword [0x663ad8]
mov ecx, eax
call fcn.00413940
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x180]
mov ecx, eax
mov edx, dword [eax]
mov edx, dword [edx + 4]
call edx
mov edx, str.name:
mov ecx, edi
mov esi, eax
call fcn.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423646
call fcn.0041ca00
push ecx
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x188], eax
call fcn.00415de0
mov dword [ebp - 4], 0x10
xor eax, eax
mov dword [ebp - 0x104], 0
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
push str.TRACE
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0x11
call fcn.00415110
xor edx, edx
mov dword [ebp - 0xa4], 0
mov edi, 7
mov dword [ebp - 0x94], edx
xor eax, eax
mov dword [ebp - 0x90], edi
mov word [ebp - 0xa4], ax
mov byte [ebp - 4], 0x12
xor esi, esi
mov eax, dword [ebp - 0x188]
cmp dword [eax + 0xc], esi
jle 0x42309f
cmp esi, 0xa
jge 0x42309f
mov eax, edi
lea ecx, [ebp - 0xa4]
sub eax, edx
cmp eax, 2
jb 0x42306a
cmp edi, 8
lea eax, [edx + 2]
mov dword [ebp - 0x94], eax
cmovae ecx, dword [ebp - 0xa4]
mov eax, dword [0x6315a0]
mov dword [ecx + edx*2], eax
xor eax, eax
mov word [ecx + edx*2 + 4], ax
jmp 0x423085
push 2
push 0x6315a0
mov byte [ebp - 0x184], 0
push dword [ebp - 0x184]
push 2
call fcn.0041d780
mov eax, dword [ebp - 0x188]
inc esi
cmp esi, dword [eax + 0xc]
jge 0x42309f
mov edi, dword [ebp - 0x90]
mov edx, dword [ebp - 0x94]
jmp 0x423032
xor eax, eax
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 7
mov word [ebp - 0x11c], ax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
mov byte [ebp - 4], 0x14
call fcn.005bb7bb
lea eax, [ebp - 0x44]
push 0xb
push eax
call fcn.005bb8c6
add esp, 8
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x11c]
push eax
call fcn.00415110
push ecx
lea ecx, [ebp - 0x4e0]
call fcn.00415de0
mov byte [ebp - 4], 0x15
mov esi, dword [ebp - 0x188]
cmp dword [esi + 0x10], 0
jne 0x42313d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
lea ecx, [ebp - 0x4d0]
mov dword [esi + 0x10], eax
call fcn.00410290
jmp 0x42316d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x10]
lea ecx, [ebp - 0x4d0]
movd xmm0, eax
cvtdq2pd xmm1, xmm0
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x6376f0]
divsd xmm1, qword [0x637690]
call fcn.0041d1a0
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x4c8]
call fcn.00416850
mov byte [ebp - 4], 0x16
mov ecx, dword [ebp - 0xa8]
cmp ecx, 8
jb 0x4231c3
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4231b9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d2a
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0x17c]
xor eax, eax
lea ecx, [ebp - 0x4e0]
mov word [ebp - 0x17c], ax
movups xmmword [ebp - 0xbc], xmm0
movq xmm0, qword [ebp - 0x16c]
movq qword [ebp - 0xac], xmm0
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 7
mov byte [ebp - 4], 0x14
call fcn.00415cc0
cmp dword [ebp - 0x90], 8
lea eax, [ebp - 0xa4]
push 0x2040
cmovae eax, dword [ebp - 0xa4]
mov dword [ebp - 0x184], eax
lea eax, [ebp - 0x1f0]
push eax
call fcn.005b1d32
mov ecx, dword [ebp - 0x420]
lea edx, [ebp - 0x420]
push dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [eax]
add ecx, edx
push ecx
call eax
cmp dword [ebp - 0x108], 8
lea edx, [ebp - 0x11c]
push dword [ebp - 0x10c]
cmovae edx, dword [ebp - 0x11c]
lea ecx, [ebp - 0x420]
call fcn.00413940
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x1e8]
push 0x10
push eax
call fcn.005b1d32
mov edx, 0x6311e0
mov ecx, esi
mov edi, eax
call fcn.00413680
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 - 0x2d0]
push 6
push eax
call fcn.005b1d60
add esp, 0x1c
mov edx, eax
mov ecx, esi
call fcn.0041d750
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 - 0x2c0]
push eax
call fcn.005b1d46
add esp, 0xc
mov edx, eax
mov ecx, esi
call fcn.0041d750
cmp dword [ebp - 0xa8], 8
lea edx, [ebp - 0xbc]
push dword [ebp - 0xac]
cmovae edx, dword [ebp - 0xbc]
mov ecx, eax
call fcn.00413940
add esp, 4
push 0
mov edi, eax
lea eax, [ebp - 0x2b0]
push 5
push eax
call fcn.005b1d60
add esp, 0xc
mov edx, 0x6311e0
mov ecx, edi
mov esi, eax
call fcn.00413680
mov edx, esi
mov ecx, eax
call fcn.0041d750
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 - 0x1e0]
push eax
call fcn.005b1d32
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.00413940
add esp, 0x14
mov edx, 0x6315e0
mov ecx, eax
call fcn.00413680
mov edx, dword [ebp - 0x184]
mov ecx, eax
call fcn.00413680
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x66d948]
cmp eax, dword [ecx + 4]
jg 0x423d2f
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x418]
call fcn.00416850
mov byte [ebp - 4], 0x17
mov ecx, dword [0x663aec]
cmp ecx, 8
jb 0x42341b
mov edx, dword [0x663ad8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x423411
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d86
push ecx
push edx
call fcn.005af9e7
add esp, 8
movups xmm0, xmmword [ebp - 0x164]
xor eax, eax
mov word [ebp - 0x164], ax
movups xmmword [0x663ad8], xmm0
movq xmm0, qword [ebp - 0x154]
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0xa8]
movq qword [0x663ae8], xmm0
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x150], 7
cmp ecx, 8
jb 0x42349a
mov edx, dword [ebp - 0xbc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x423490
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d86
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
cmp ecx, 8
jb 0x4234fb
mov edx, dword [ebp - 0x11c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4234f1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d86
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 7
mov word [ebp - 0x11c], ax
cmp ecx, 8
jb 0x42355c
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x423552
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d86
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0xf0]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
cmp ecx, 8
jb 0x4235bd
mov edx, dword [ebp - 0x104]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4235b3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x423d86
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
mov dword [ebp - 0xf4], 0
lea ecx, [ebp - 0x430]
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00415cc0
call fcn.0041ca00
cmp dword [0x663aec], 8
mov edx, 0x663ad8
push dword [0x663ae8]
cmovae edx, dword [0x663ad8]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
add esp, 4
add ecx, 0x78
mov edi, eax
mov edx, dword [ecx]
mov edx, dword [edx + 4]
call edx
mov edx, str.deviceID:
mov ecx, edi
mov esi, eax
call fcn.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x4236b3
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423674
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423720
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4236e1
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x42378d
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x42374e
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x4237fa
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4237bb
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423867
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423828
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x4238d4
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423895
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423941
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423902
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x4239ae
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x42396f
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423a1b
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x4239dc
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423a88
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423a49
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423af8
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423ab6
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423b68
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423b26
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423bd8
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423b96
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
add esp, 4
call fcn.0041ca00
cmp dword [eax + 4], 3
jl 0x423c48
push 3
push ecx
call fcn.0041ca00
add esp, 4
mov ecx, eax
call fcn.0041cb60
mov esi, eax
call fcn.0041ca00
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x423c06
mov edx, dword [esi]
push dword [esi + 0x10]
mov ecx, eax
call fcn.00413940
mov ecx, dword [ebp - 0x180]
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.00413680
mov edx, esi
mov ecx, eax
call fcn.00413680
push eax
call fcn.00414970
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.005af765
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.005b681f
push 0x66d948
call fcn.005afb28
add esp, 4
cmp dword [0x66d948], 0xffffffff
jne 0x422714
push 0x5f3ee0
mov dword [0x663ad8], 0
mov dword [0x663ae8], 0
mov dword [0x663aec], 7
call fcn.005af9af
add esp, 4
push 0x66d948
call fcn.005afade
add esp, 4
jmp 0x422714
call fcn.005b681f
call fcn.005b681f
push 0x66d948
call fcn.005afb28
add esp, 4
cmp dword [0x66d948], 0xffffffff
jne 0x422d3a
push 0x5f3ee0
mov dword [0x663ad8], 0
mov dword [0x663ae8], 0
mov dword [0x663aec], 7
call fcn.005af9af
add esp, 4
push 0x66d948
call fcn.005afade
add esp, 4
jmp 0x422d3a
call fcn.005b681f
call fcn.005b681f
push 0x66d948
call fcn.005afb28
add esp, 4
cmp dword [0x66d948], 0xffffffff
jne 0x4233c5
push 0x5f3ee0
mov dword [0x663ad8], 0
mov dword [0x663ae8], 0
mov dword [0x663aec], 7
call fcn.005af9af
add esp, 4
push 0x66d948
call fcn.005afade
add esp, 4
jmp 0x4233c5
call fcn.005b681f
int3