Function at 0x429cf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53ae36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [ebp + 0xc]
push ebx
mov ecx, eax
push esi
push edi
mov edx, dword [ecx]
mov dword [esp + 0x5c], edx
mov esi, dword [ecx + 4]
mov dword [esp + 0x60], esi
mov edx, dword [ecx + 8]
mov dword [esp + 0x64], edx
mov edx, dword [0x5b0808]
mov ecx, dword [ecx + 0xc]
cmp edx, 2
mov dword [esp + 0x68], ecx
jge 0x429d55
mov eax, dword [ebp + 0x20]
lea ecx, [esp + 0x5c]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.00522dd5
jmp 0x42a17e
mov edx, dword [eax]
mov edi, dword [eax + 8]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
sub ecx, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x18]
sub ecx, ebx
mov dword [esp + 0x10], ecx
mov ecx, eax
and ecx, 0xff
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], ecx
xor ecx, ecx
fild dword [esp + 0xc]
mov cl, ah
add edx, ebx
and ecx, 0xff
mov dword [esp + 0x24], edi
fst qword [esp + 0x4c]
shr eax, 0x10
mov dword [esp + 0xc], ecx
and eax, 0xff
fild dword [esp + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x1c]
mov ecx, eax
mov dword [esp + 0x28], edx
fst qword [esp + 0x3c]
fild dword [esp + 0xc]
and ecx, 0xff
mov dword [esp + 0xc], ecx
xor ecx, ecx
fst qword [esp + 0x44]
fild dword [esp + 0xc]
mov cl, ah
and ecx, 0xff
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
shr eax, 0x10
and eax, 0xff
fstp qword [esp + 0x14]
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fild dword [esp + 0x10]
fld st(5)
fsub st(3)
fdiv st(1)
fstp qword [esp + 0x74]
fld st(4)
fsub qword [esp + 0x14]
fdiv st(1)
fstp qword [esp + 0x7c]
fld st(3)
fsub st(2)
fdiv st(1)
fstp qword [esp + 0x6c]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.004fa6b4
xor edx, edx
mov dh, al
mov dword [esp + 0x10], edx
call fcn.004fa6b4
mov edx, dword [esp + 0x10]
mov dl, al
shl edx, 8
mov dword [esp + 0x10], edx
call fcn.004fa6b4
mov edx, dword [esp + 0x10]
and eax, 0xff
or edx, eax
lea eax, [esp + 0x1c]
push edx
push eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00522dd5
mov eax, dword [ebp + 0x14]
test eax, eax
jge 0x429eb3
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 0x94]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], 0x94
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x429eac
cmp dword [esp + 0x98], 5
jb 0x429eac
mov edx, dword [ebp + 0x14]
neg edx
mov dword [ebp + 0x14], edx
jmp 0x429eb3
mov dword [ebp + 0x14], 0
mov eax, dword [esi]
lea ecx, [esp + 0x84]
push ecx
mov ecx, esi
call dword [eax + 0x50]
cmp eax, 2
jl 0x429ef2
cmp eax, 3
jg 0x429ef2
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x1c]
cmp ecx, eax
jge 0x429edf
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
jle 0x429ef2
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x68]
add ebx, edx
cmp ebx, eax
mov dword [esp + 0xc], ebx
jge 0x42a17e
jmp 0x429f0e
mov ebx, dword [esp + 0xc]
fld qword [esp + 0x4c]
fsub qword [esp + 0x74]
mov eax, dword [esi]
lea ecx, [esp + 0x1c]
lea edi, [ebx + 1]
push ecx
mov ecx, esi
mov dword [esp + 0x24], ebx
fstp qword [esp + 0x50]
fld qword [esp + 0x40]
fsub qword [esp + 0x80]
mov dword [esp + 0x5c], edi
mov dword [esp + 0x2c], edi
fstp qword [esp + 0x40]
fld qword [esp + 0x48]
fsub qword [esp + 0x70]
fstp qword [esp + 0x48]
call dword [eax + 0x58]
test eax, eax
je 0x42a16e
xor eax, eax
mov dword [esp + 0x34], vtable.CBrush.0
mov dword [esp + 0x38], eax
fld qword [esp + 0x44]
mov dword [esp + 0x130], eax
call fcn.004fa6b4
fld qword [esp + 0x3c]
xor ebx, ebx
mov bh, al
call fcn.004fa6b4
fld qword [esp + 0x4c]
mov bl, al
shl ebx, 8
call fcn.004fa6b4
and eax, 0xff
or ebx, eax
push ebx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x38]
call fcn.0051a6c7
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x34]
neg eax
sbb eax, eax
and eax, edx
lea edx, [esp + 0x1c]
push eax
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x42a147
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
cmp edi, eax
jge 0x42a143
call fcn.004fa6e8
cdq
mov ecx, 0xa
idiv ecx
sub edx, 5
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fadd qword [esp + 0x4c]
fstp qword [esp + 0x14]
call fcn.004fa6e8
cdq
mov ecx, 0xa
idiv ecx
sub edx, 5
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fadd qword [esp + 0x3c]
fstp qword [esp + 0x2c]
call fcn.004fa6e8
cdq
mov ecx, 0xa
idiv ecx
sub edx, 5
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fadd qword [esp + 0x44]
fld qword [esp + 0x14]
fcomp qword [0x559fe0]
fnstsw ax
test ah, 1
je 0x42a061
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jmp 0x42a082
fld qword [esp + 0x14]
fcomp qword [0x55a040]
fnstsw ax
test ah, 0x41
jne 0x42a082
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x406fe000
fld qword [esp + 0x2c]
fcomp qword [0x559fe0]
fnstsw ax
test ah, 1
je 0x42a0a5
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
jmp 0x42a0c6
fld qword [esp + 0x2c]
fcomp qword [0x55a040]
fnstsw ax
test ah, 0x41
jne 0x42a0c6
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0x406fe000
fcom qword [0x559fe0]
fnstsw ax
test ah, 1
je 0x42a0dd
fstp st(0)
fld qword [0x559fe0]
jmp 0x42a0f2
fcom qword [0x55a040]
fnstsw ax
test ah, 0x41
jne 0x42a0f2
fstp st(0)
fld qword [0x55a040]
call fcn.004fa6b4
fld qword [esp + 0x2c]
xor ebx, ebx
mov bh, al
call fcn.004fa6b4
fld qword [esp + 0x14]
mov bl, al
shl ebx, 8
call fcn.004fa6b4
mov edx, dword [esp + 0xc]
and eax, 0xff
or ebx, eax
mov eax, dword [esi + 4]
push ebx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_SetPixelV]
call fcn.004fa6e8
cdq
idiv dword [ebp + 0x14]
mov eax, dword [esp + 0x24]
lea edi, [edi + edx + 1]
cmp edi, eax
jl 0x429fe2
mov edi, dword [esp + 0x58]
mov dword [esp + 0x34], vtable.CGdiObject.0
lea ecx, [esp + 0x34]
mov dword [esp + 0x130], 1
call fcn.0051a71e
mov dword [esp + 0x130], 0xffffffff
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], edi
cmp edi, eax
jl 0x429f0a
mov ecx, dword [esp + 0x128]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret