Function at 0x5dcf60
Capabilities:
Check os version

Disassembly:
sub esp, 0x4f4
push esi
push edi
mov esi, ecx
xor edi, edi
cmp word [esi + 0x2c], di
jne 0x5dcfcd
push esi
lea eax, [esp + 0x74]
push str.RizaD3DDeviceWindow__p
push eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], 0x400000
mov dword [esp + 0x48], 0x5dc190
call fcn.005f83e4
add esp, 0xc
lea edx, [esp + 0x38]
lea ecx, [esp + 0x70]
push edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
cmp ax, di
mov word [esi + 0x2c], ax
je 0x5dd005
call sub.KERNEL32.dll_GetCurrentThreadId
push edi
push 0x400000
push edi
push edi
push edi
push edi
push edi
push edi
push 0x80000000
mov dword [esi + 0x34], eax
movzx eax, word [esi + 0x2c]
push 0x62aa66
push eax
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, edi
mov dword [esi + 0x30], eax
jne 0x5dd010
mov ecx, esi
call fcn.005dc6f0
pop edi
xor al, al
pop esi
add esp, 0x4f4
ret
push str.d3d9.dll
call fcn.00519c5e
add esp, 4
cmp eax, edi
mov dword [esi + 8], eax
je 0x5dcffe
cmp byte [esi + 0x38], 0
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x5dd06c
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x5dd06c
cmp al, 7
jae 0x5dd04c
cmp al, 6
jne 0x5dd06c
cmp ah, 1
jb 0x5dd06c
mov ecx, dword [esi + 8]
push str.Direct3DCreate9Ex
push ecx
call ebp
cmp eax, edi
je 0x5dd06c
lea ebx, [esi + 0x10]
push ebx
push 0x20
call eax
test eax, eax
jl 0x5dd06c
mov edx, dword [ebx]
mov dword [esi + 0xc], edx
cmp dword [esi + 0xc], edi
jne 0x5dd093
mov eax, dword [esi + 8]
push str.Direct3DCreate9
push eax
call ebp
cmp eax, edi
je 0x5dd3a3
push 0x20
call eax
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x5dd3a3
push 0x38
lea eax, [esi + 0x19c]
push edi
push eax
call fcn.005f7e70
mov eax, dword [esi + 0xc]
mov ebx, 1
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1b4], 3
mov dword [esi + 0x1d0], CreateStatusWindowA
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
add esp, 0xc
push eax
call edx
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], eax
mov byte [esp + 0x13], 0
jbe 0x5dd12e
mov edi, edi
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0xb8]
push edx
push 0
push ebp
push eax
mov eax, dword [ecx + 0x14]
call eax
test eax, eax
jl 0x5dd113
lea ecx, [esp + 0x2b8]
push str.PerfHUD
push ecx
call fcn.005fb2f0
add esp, 8
test eax, eax
jne 0x5dd11e
add ebp, 1
cmp ebp, dword [esp + 0x14]
jb 0x5dd0e0
jmp 0x5dd12e
test ebp, ebp
mov edi, ebp
mov ebx, 2
mov byte [esp + 0x13], 1
jne 0x5dd15e
cmp dword [esi + 0x28], 0
je 0x5dd15e
xor ebp, ebp
cmp dword [esp + 0x14], ebp
jbe 0x5dd15e
lea esp, [esp]
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
push ebp
push eax
mov eax, dword [edx + 0x3c]
call eax
cmp eax, dword [esi + 0x28]
je 0x5dd15c
add ebp, 1
cmp ebp, dword [esp + 0x14]
jb 0x5dd140
jmp 0x5dd15e
mov edi, ebp
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x68]
push edx
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
mov ecx, dword [eax]
push edi
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jl 0x5dd3a3
cmp byte [esp + 0x13], 0
je 0x5dd19a
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x19c], ecx
mov dword [esi + 0x1a0], edx
jmp 0x5dd1ae
mov dword [esi + 0x19c], 0x20
mov dword [esi + 0x1a0], 0x20
cmp dword [esi + 0x18], 0
je 0x5dd1bb
or dword [esi + 0x1c8], 0x40
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push 0x16
push 3
push 0
push 0x16
push ebx
push edi
push eax
call edx
test eax, eax
jl 0x5dd3a3
mov eax, dword [esi + 0xc]
mov ebp, 0x15
push ebp
push 1
push 1
push 0x16
push ebx
mov dword [esi + 0x1a4], ebp
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push edi
push eax
call edx
test eax, eax
jge 0x5dd21e
mov eax, dword [esi + 0xc]
push 0x16
push 1
push 1
push 0x16
push ebx
mov dword [esi + 0x1a4], ebp
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push edi
push eax
call edx
test eax, eax
jl 0x5dd3a3
mov eax, dword [esi + 0xc]
mov edx, dword [eax]
lea ecx, [esi + 0x6c]
push ecx
push ebx
push edi
push eax
mov eax, dword [edx + 0x38]
call eax
test eax, eax
jl 0x5dd3a3
cmp dword [esi + 0x130], 0xfffe0101
mov ecx, dword [esi + 0x10]
sbb eax, eax
and eax, 0xffffffe0
add eax, 0x842
test ecx, ecx
je 0x5dd270
mov ebp, dword [ecx]
lea edx, [esi + 0x18]
push edx
push 0
lea edx, [esi + 0x19c]
push edx
mov edx, dword [esi + 0x30]
push eax
mov eax, dword [ebp + 0x50]
push edx
push ebx
push edi
push ecx
call eax
jmp 0x5dd28d
mov ecx, dword [esi + 0xc]
mov ebp, dword [ecx]
lea edx, [esi + 0x14]
push edx
lea edx, [esi + 0x19c]
push edx
push eax
mov eax, dword [esi + 0x30]
push eax
push ebx
push edi
push ecx
mov ecx, dword [ebp + 0x40]
call ecx
xor ebx, ebx
cmp eax, ebx
jl 0x5dd3a3
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x5dd2a1
mov dword [esi + 0x14], eax
push 0x130
push ebx
lea edi, [esi + 0x6c]
push edi
mov byte [esi + 0x39], 1
call fcn.005f7e70
mov eax, dword [esi + 0x14]
mov edx, dword [eax]
add esp, 0xc
push edi
push eax
mov eax, dword [edx + 0x1c]
call eax
test eax, eax
mov ecx, esi
jl 0x5dd3a5
call fcn.005dba40
test al, al
jne 0x5dd3a5
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], al
mov byte [esp + 0x1f], al
mov byte [esp + 0x25], al
mov byte [esp + 0x27], al
mov byte [esp + 0x2d], al
mov al, 5
lea edx, [esi + 0x48]
push edx
mov byte [esp + 0x32], al
mov byte [esp + 0x3a], al
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x1c]
mov word [esp + 0x1c], bx
mov word [esp + 0x1e], bx
mov byte [esp + 0x20], 2
mov word [esp + 0x24], bx
mov word [esp + 0x26], 0xc
mov byte [esp + 0x28], 4
mov byte [esp + 0x2a], 0xa
mov word [esp + 0x2c], bx
mov word [esp + 0x2e], 0x10
mov byte [esp + 0x30], 1
mov byte [esp + 0x33], 0
mov word [esp + 0x34], bx
mov word [esp + 0x36], 0x18
mov byte [esp + 0x38], 1
mov byte [esp + 0x39], 0
mov byte [esp + 0x3b], 1
mov word [esp + 0x3c], 0xff
mov word [esp + 0x3e], bx
mov byte [esp + 0x40], 0x11
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x158]
call eax
test eax, eax
mov ecx, esi
jl 0x5dd3a5
call fcn.005db490
test al, al
mov ecx, esi
je 0x5dd3a5
call fcn.005dcb70
test al, al
jne 0x5dd3b7
mov ecx, esi
call fcn.005dc6f0
pop ebp
pop ebx
pop edi
xor al, al
pop esi
add esp, 0x4f4
ret
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x4f4
ret