Function at 0x10002476
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10008af0
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x1000d018]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push esi
push edi
mov eax, dword [0x1000d018]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov edi, ecx
mov eax, edi
mov dword [esp + 0x1c], edi
call fcn.100034b7
test al, al
jne 0x10002a1d
cmp byte [edi + 0x624], al
je 0x100024da
push str.swiftshader_d3d9.dll
jmp 0x100024df
push 0x1000931c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x100024fa
mov eax, edi
call fcn.10002a43
xor al, al
jmp 0x10002a1f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Direct3DCreate9Ex
push eax
call esi
and dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
lea ebx, [edi + 0x67c]
mov eax, dword [esp + 0x14]
push ebx
push dword [eax + 0x1000d060]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExA]
test eax, eax
jne 0x1000253a
add dword [esp + 0x14], 4
cmp dword [esp + 0x14], 8
jb 0x10002517
mov ebx, dword [ebx]
test ebx, ebx
je 0x100024ec
push str.D3DCompile
push ebx
call esi
xor ebx, ebx
mov dword [edi + 0x680], eax
cmp dword [esp + 0x10], ebx
je 0x1000257a
lea esi, [edi + 0x1c]
push esi
push 0x20
call dword [esp + 0x18]
test eax, eax
js 0x1000257a
mov eax, dword [esi]
mov ecx, dword [eax]
lea esi, [edi + 0x18]
push esi
push 0x100091ac
push eax
mov dword [esp + 0x24], esi
call dword [ecx]
jmp 0x1000258b
lea esi, [edi + 0x18]
push 0x20
mov dword [esp + 0x1c], esi
call dword [sym.imp.d3d9.dll_Direct3DCreate9]
mov dword [esi], eax
cmp dword [esi], ebx
je 0x100029bd
lea esi, [edi + 0x98]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
push esi
push dword [edi + 0x14]
push dword [edi + 0x10]
push eax
call dword [ecx + 0x38]
xor edx, edx
cmp eax, edx
jge 0x100025c9
cmp eax, 0x8876086a
jne 0x100025e3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebx
cmp ebx, 0xa
jl 0x10002599
xor edx, edx
cmp dword [edi + 0x164], 0xffff0200
jae 0x100025fa
mov eax, edi
call fcn.10002a43
push 0x3001
jmp 0x100025ef
mov eax, edi
call fcn.10002a43
push 0x3003
call fcn.10007c50
pop ecx
jmp 0x100024f3
test byte [edi + 0x16c], 0x10
je 0x100025d5
test dword [edi + 0xac], 0x80000000
lea esi, [edi + 0x620]
lea eax, [edi + 0x61c]
mov dword [esp + 0x28], esi
mov dword [esi], 4
mov dword [esp + 0x24], eax
mov dword [eax], edx
je 0x1000264f
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
cmp dword [esi], edx
jg 0x10002639
mov ecx, esi
mov ecx, dword [ecx]
mov dword [esi], ecx
mov dword [esp + 0x10], edx
lea ecx, [esp + 0x10]
cmp edx, edx
jl 0x1000264b
mov ecx, eax
mov ecx, dword [ecx]
mov dword [eax], ecx
test byte [edi + 0xac], 1
je 0x1000267f
xor ebx, ebx
inc ebx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
cmp dword [esi], ebx
jg 0x10002669
mov ecx, esi
mov ecx, dword [ecx]
mov dword [esi], ecx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
cmp dword [eax], ebx
jl 0x1000267b
mov ecx, eax
mov ecx, dword [ecx]
mov dword [eax], ecx
push 2
pop ebx
test byte [edi + 0xac], bl
je 0x100026ae
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
cmp dword [esi], ebx
jg 0x10002698
mov ecx, esi
mov ecx, dword [ecx]
mov dword [esi], ecx
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x10]
cmp dword [eax], ebx
jl 0x100026aa
mov ecx, eax
mov ecx, dword [ecx]
mov dword [eax], ecx
test byte [edi + 0xac], 4
je 0x100026de
push 3
pop ecx
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
cmp dword [esi], ecx
jg 0x100026c8
mov edx, esi
mov edx, dword [edx]
mov dword [esi], edx
cmp dword [eax], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
jl 0x100026da
mov ecx, eax
mov ecx, dword [ecx]
mov dword [eax], ecx
test byte [edi + 0xac], 8
je 0x10002711
push 4
pop ecx
cmp dword [esi], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
jg 0x100026f8
mov ecx, esi
mov ecx, dword [ecx]
mov dword [esi], ecx
push 4
pop ecx
cmp dword [eax], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
jl 0x1000270d
mov ecx, eax
mov ecx, dword [ecx]
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [edi + 0x1c8]
push edx
push 0
push dword [edi + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [edi + 0xd4]
test bl, al
jne 0x1000276b
test eax, 0x20100
jne 0x1000276b
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
shl cx, 8
or cx, ax
mov eax, 0x600
cmp cx, ax
jae 0x10002766
cmp dword [edi + 0x5f0], 0x1002
je 0x1000276b
xor eax, eax
inc eax
jmp 0x1000276d
xor eax, eax
and dword [esp + 0x10c], 0
mov byte [edi + 0x625], al
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0xec]
push edx
push dword [edi + 0x10]
mov dword [esp + 0x104], 0x19
push eax
mov dword [esp + 0x10c], 0x15
mov dword [esp + 0x110], 0x17
mov dword [esp + 0x114], 0x16
mov dword [esp + 0x11c], 0x47
mov dword [esp + 0x120], 0x4b
mov dword [esp + 0x124], 0x4d
mov dword [esp + 0x128], 0x50
call dword [ecx + 0x20]
lea ebx, [esp + 0x30]
call fcn.10001382
and dword [esp + 0x130], 0
and dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0xfc]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov edx, dword [eax]
push ecx
push 1
push 1
push dword [esp + 0x104]
push dword [edi + 0x14]
push dword [edi + 0x10]
push eax
call dword [edx + 0x28]
test eax, eax
js 0x10002938
and dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + eax*4 + 0x10c]
test ebx, ebx
je 0x10002898
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push 1
push 2
push dword [esp + 0x104]
push dword [edi + 0x14]
push dword [edi + 0x10]
push eax
call dword [ecx + 0x28]
test eax, eax
js 0x10002929
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push dword [esp + edx*4 + 0x100]
push dword [esp + 0x100]
push dword [edi + 0x14]
push dword [edi + 0x10]
push eax
call dword [ecx + 0x30]
test eax, eax
js 0x10002929
mov ecx, dword [edi + 0xf4]
mov edx, dword [edi + 0xf0]
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [esi]
push ecx
push edx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*4 + 0x104]
lea esi, [esp + 0xf4]
lea edi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
push eax
push dword [esp + 0x3c]
movsd dword es:[edi], dword [esi]
push dword [esp + 0x34]
and dword [esp + 0x7c], 0
sub esp, 0x10
mov edi, esp
lea esi, [esp + 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x74]
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], ebx
call fcn.1000104f
mov eax, esi
push eax
lea eax, [esp + 0x34]
call fcn.10001c1f
push eax
lea eax, [esp + 0x34]
push eax
lea esi, [esp + 0x4c]
call fcn.100019eb
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x28]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 5
jb 0x10002836
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 4
jb 0x10002800
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], eax
cmp eax, ecx
je 0x100029a9
add edi, 0x638
mov dword [esp + 0x10], edi
lea esi, [eax + 0xc]
push 0x28
pop ecx
lea eax, [esp + 0x4c]
lea edi, [esp + 0x4c]
rep movsd dword es:[edi], dword [esi]
push eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x98], ebx
inc ebx
call fcn.10001c1f
push eax
push dword [esp + 0x14]
lea esi, [esp + 0x4c]
call fcn.100019eb
lea eax, [esp + 0x14]
call fcn.10001852
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x38]
jne 0x10002962
mov edi, dword [esp + 0x1c]
or dword [esp + 0x130], 0xffffffff
lea eax, [esp + 0x30]
push eax
call fcn.10001763
xor ebx, ebx
mov eax, edi
call fcn.100034b7
test al, al
je 0x100024ec
push edi
call fcn.10003c09
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push ebx
push 0xfffffffffffffffd
push 1
push 1
push ebx
push ebx
push 0x88000000
push str.AngleHiddenWindow
push str.STATIC
push 0x8000000
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [edi + 0x614], eax
call fcn.10002d39
test al, al
je 0x100024ec
mov eax, dword [edi + 0x20]
mov dword [edi + 0x64], eax
mov dword [edi + 0x94], eax
mov al, 1
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.10007c63
mov esp, ebp
pop ebp
ret