Function at 0x1000d1b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb2b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1010e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x20], edi
jle 0x1000d221
push dword [ebp + 0x1c]
mov eax, dword [esi + 0x14]
lea ebx, [edi*4]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov ecx, dword [ebx + eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov eax, dword [ecx]
push dword [ebp + 8]
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x1000d213
inc edi
cmp edi, dword [esi + 0x20]
jl 0x1000d1e1
jmp 0x1000d221
mov eax, dword [esi + 0x14]
mov edi, dword [ebx + eax]
test edi, edi
jne 0x1000d489
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x10], ebx
lea eax, [ebx + 1]
cmp eax, ecx
jle 0x1000d2ba
mov eax, dword [esi + 0x1c]
test eax, eax
js 0x1000d2ba
lea edi, [ebx + 1]
je 0x1000d265
mov eax, ebx
mov ecx, ebx
cdq
idiv dword [esi + 0x1c]
sub ecx, edx
add ecx, dword [esi + 0x1c]
mov dword [esi + 0x18], ecx
cmp ecx, edi
jge 0x1000d291
test ecx, ecx
jne 0x1000d280
lea eax, [ecx - 1]
cmp eax, edi
jl 0x1000d280
mov dword [esi + 0x18], eax
jmp 0x1000d291
test ecx, ecx
mov eax, 8
cmove ecx, eax
cmp ecx, edi
jge 0x1000d24e
add ecx, ecx
cmp ecx, edi
jl 0x1000d273
jmp 0x1000d28e
lea eax, [ecx + edi]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ecx, edi
jl 0x1000d280
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
shl eax, 2
push eax
mov eax, dword [0x101101c8]
test ecx, ecx
je 0x1000d2af
push ecx
mov ecx, 0x101101c8
call dword [eax + 0xc]
jmp 0x1000d2b7
mov ecx, 0x101101c8
call dword [eax + 4]
mov dword [esi + 0x14], eax
inc dword [esi + 0x20]
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x14]
sub eax, ebx
dec eax
mov dword [esi + 0x24], ecx
test eax, eax
jle 0x1000d2e1
shl eax, 2
lea edx, [ecx + ebx*4]
push eax
lea ecx, [edx + 4]
push edx
push ecx
call fcn.100a2850
add esp, 0xc
push 0x390
call fcn.1009f48b
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
lea ecx, [edi + 0x4c]
mov dword [edi], vtable.CWin32Font.0
mov dword [ebp - 0x18], ecx
mov dword [ecx], 0x10099540
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0x100
mov byte [ebp - 4], 1
mov eax, dword [ecx + 4]
mov dword [ecx + 0x10], 0xffff
mov dword [ecx + 0x14], 0xffffffff
mov dword [ecx + 0x18], eax
mov byte [ebp - 4], 2
mov byte [edi + 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x84], 0
mov dword [edi + 0x88], 0
mov dword [edi + 0x8c], 0
mov word [edi + 0x30], 0
mov byte [edi + 0x38], 0
mov dword [edi + 0x78], 0
mov dword [edi + 0x74], 0
mov byte [edi + 0x32], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x68], 0
cmp dword [edi + 0x54], 0x80
jge 0x1000d3f0
cmp dword [edi + 0x58], 0
jl 0x1000d3f0
mov eax, dword [edi + 0x50]
mov ecx, 0x101101c8
mov dword [edi + 0x54], 0x80
push 0x700
test eax, eax
je 0x1000d3e5
push eax
mov eax, dword [0x101101c8]
call dword [eax + 0xc]
jmp 0x1000d3ed
mov eax, dword [0x101101c8]
call dword [eax + 4]
mov dword [edi + 0x50], eax
push 0x300
lea eax, [edi + 0x90]
mov dword [edi + 0x7c], 0
push 0
push eax
call fcn.100a2620
add esp, 0xc
cmp byte [0x1011a47c], 0
jne 0x1000d454
push 0x90
push 0
push 0x1011acac
mov byte [0x1011a47c], 1
call fcn.100a2620
add esp, 0xc
mov dword [0x1011aca8], 0x94
push 0x1011aca8
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x1011acac], 5
setae byte [0x1010f861]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov dword [eax + ebx*4], edi
mov eax, dword [esi + 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [eax + ebx*4]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
mov ecx, dword [esi + 0x14]
mov edi, dword [ecx + ebx*4]
test al, al
je 0x1000d49f
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebp + 0x1c], edi
test edi, edi
je 0x1000d504
mov dword [edi], vtable.CWin32Font.0
mov dword [ebp - 4], 3
mov eax, dword [edi + 0x84]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x1000d4c6
push eax
call ebx
mov eax, dword [edi + 0x88]
test eax, eax
je 0x1000d4d7
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x1000d4e4
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [edi + 0x4c]
call fcn.1009a890
push 0x390
push edi
call fcn.1009f178
mov ebx, dword [ebp - 0x10]
add esp, 8
mov edx, dword [esi + 0x20]
sub edx, ebx
dec edx
test edx, edx
jle 0x1000d529
mov eax, dword [esi + 0x14]
lea ecx, [eax + ebx*4]
lea eax, [edx*4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.100a2850
add esp, 0xc
dec dword [esi + 0x20]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18