Function at 0x1000d510
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
jle 0x1000d562
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 0x1000d554
inc edi
cmp edi, dword [esi + 0x20]
jl 0x1000d522
jmp 0x1000d562
mov eax, dword [esi + 0x14]
mov edi, dword [ebx + eax]
test edi, edi
jne 0x1000d7e4
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 8], ebx
lea eax, [ebx + 1]
cmp eax, ecx
jle 0x1000d5ed
mov eax, dword [esi + 0x1c]
test eax, eax
js 0x1000d5ed
lea edi, [ebx + 1]
je 0x1000d5a2
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 0x1000d5c9
test ecx, ecx
jne 0x1000d5b8
lea eax, [ecx - 1]
cmp eax, edi
jl 0x1000d5b8
mov dword [esi + 0x18], eax
jmp 0x1000d5c9
test ecx, ecx
mov eax, 8
cmove ecx, eax
cmp ecx, edi
jge 0x1000d58b
add ecx, ecx
cmp ecx, edi
jl 0x1000d5b0
jmp 0x1000d5c6
lea eax, [ecx + edi]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ecx, edi
jl 0x1000d5b8
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
shl eax, 2
push eax
test ecx, ecx
je 0x1000d5e2
push ecx
call fcn.10089873
add esp, 8
jmp 0x1000d5ea
call fcn.1008987e
add esp, 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
shl ebx, 2
mov dword [esi + 0x24], ecx
test eax, eax
jle 0x1000d617
shl eax, 2
lea edx, [ebx + ecx]
push eax
lea ecx, [edx + 4]
push edx
push ecx
call fcn.100868c0
add esp, 0xc
push 0x390
call fcn.1008424b
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [ebp - 4], ebx
mov dword [edi], vtable.CWin32Font.0
mov dword [edi + 0x4c], 0x1001f390
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0x100
mov dword [edi + 0x5c], 0xffff
mov dword [edi + 0x60], 0xffffffff
mov dword [edi + 0x64], 0
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 word [edi + 0x38], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x80], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x70], 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 0x1000d744
cmp dword [edi + 0x58], 0
mov dword [ebp - 4], ebx
jl 0x1000d744
mov eax, dword [edi + 0x50]
mov dword [edi + 0x54], 0x80
push 0x700
test eax, eax
je 0x1000d736
push eax
call fcn.10089873
mov dword [edi + 0x50], eax
add esp, 8
mov eax, dword [ebp - 8]
shl eax, 2
mov dword [ebp - 4], eax
jmp 0x1000d744
call fcn.1008987e
add esp, 4
mov dword [edi + 0x50], eax
mov dword [ebp - 4], ebx
push 0x300
lea eax, [edi + 0x90]
mov dword [edi + 0x7c], 0
push 0
push eax
call fcn.10086700
add esp, 0xc
cmp byte [0x100eb39d], 0
jne 0x1000d7b6
push 0x90
push 0
push 0x100eb42c
mov byte [0x100eb39d], 1
call fcn.10086700
add esp, 0xc
mov dword [0x100eb428], 0x94
push 0x100eb428
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x100eb42c], 5
jb 0x1000d7af
mov ebx, dword [ebp - 4]
mov byte [0x100e3a94], 1
jmp 0x1000d7b6
mov byte [0x100e3a94], 0
mov eax, dword [esi + 0x14]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov dword [ebx + eax], edi
mov eax, dword [esi + 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov ecx, dword [ebx + eax]
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 [ebx + ecx]
test al, al
je 0x1000d7ef
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test edi, edi
je 0x1000d852
mov eax, dword [edi + 0x84]
mov dword [edi], vtable.CWin32Font.0
test eax, eax
je 0x1000d80a
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x88]
test eax, eax
je 0x1000d81b
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x1000d82c
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1000d83c
push eax
call fcn.100845c6
add esp, 4
lea ecx, [edi + 0x4c]
call fcn.10020750
push 0x390
push edi
call fcn.1008427b
add esp, 8
mov edx, dword [esi + 0x20]
sub edx, dword [ebp - 8]
dec edx
test edx, edx
jle 0x1000d877
mov ecx, dword [esi + 0x14]
lea eax, [edx*4]
add ecx, ebx
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.100868c0
add esp, 0xc
dec dword [esi + 0x20]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18