Function at 0x1000d310
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 0x1000d35b
push dword [ebp + 0x1c]
mov eax, dword [esi + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov ecx, dword [eax + edi*4]
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 0x1000d34d
inc edi
cmp edi, dword [esi + 0x20]
jl 0x1000d322
jmp 0x1000d35b
mov eax, dword [esi + 0x14]
mov edi, dword [eax + edi*4]
test edi, edi
jne 0x1000d5be
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 4], ebx
lea eax, [ebx + 1]
cmp eax, ecx
jle 0x1000d3ed
mov ebx, dword [esi + 0x1c]
test ebx, ebx
js 0x1000d3ea
mov eax, dword [ebp - 4]
lea edi, [eax + 1]
je 0x1000d3a1
cdq
idiv ebx
mov ecx, dword [ebp - 4]
sub ecx, edx
add ecx, ebx
mov dword [esi + 0x18], ecx
cmp ecx, edi
jge 0x1000d3c9
test ecx, ecx
jne 0x1000d3b8
lea eax, [ecx - 1]
cmp eax, edi
jl 0x1000d3b8
mov dword [esi + 0x18], eax
mov ecx, eax
jmp 0x1000d3c9
test ecx, ecx
mov eax, 8
cmove ecx, eax
cmp ecx, edi
jge 0x1000d388
nop
add ecx, ecx
cmp ecx, edi
jl 0x1000d3b0
jmp 0x1000d3c6
lea eax, [ecx + edi]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
cmp ecx, edi
jl 0x1000d3b8
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x14]
shl ecx, 2
push ecx
test eax, eax
je 0x1000d3df
push eax
call fcn.1008c933
add esp, 8
jmp 0x1000d3e7
call fcn.1008c93e
add esp, 4
mov dword [esi + 0x14], eax
mov ebx, dword [ebp - 4]
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 0x1000d414
shl eax, 2
lea edx, [ecx + ebx*4]
push eax
lea ecx, [edx + 4]
push edx
push ecx
call fcn.1008a0f0
add esp, 0xc
push 0x390
call fcn.10087a63
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
mov dword [edi], vtable.CWin32Font.0
mov dword [edi + 0x4c], 0x1001fe60
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 0x1000d52c
cmp dword [edi + 0x58], 0
jl 0x1000d52c
mov eax, dword [edi + 0x50]
mov dword [edi + 0x54], 0x80
push 0x700
test eax, eax
je 0x1000d521
push eax
call fcn.1008c933
add esp, 8
jmp 0x1000d529
call fcn.1008c93e
add esp, 4
mov dword [edi + 0x50], eax
push 0x300
lea eax, [edi + 0x90]
mov dword [edi + 0x7c], 0
push 0
push eax
call fcn.10089ec0
add esp, 0xc
cmp byte [0x100ee3d5], 0
jne 0x1000d590
push 0x90
push 0
push 0x100ee464
mov byte [0x100ee3d5], 1
call fcn.10089ec0
add esp, 0xc
mov dword [0x100ee460], 0x94
push 0x100ee460
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x100ee464], 5
setae byte [0x100e7da0]
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 0x1000d5c9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test edi, edi
je 0x1000d62d
mov eax, dword [edi + 0x84]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi], vtable.CWin32Font.0
test eax, eax
je 0x1000d5e6
push eax
call ebx
mov eax, dword [edi + 0x88]
test eax, eax
je 0x1000d5f7
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x1000d604
push eax
call ebx
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1000d614
push eax
call fcn.10087dde
add esp, 4
lea ecx, [edi + 0x4c]
call fcn.10021200
push 0x390
push edi
call fcn.10087a93
mov ebx, dword [ebp - 4]
add esp, 8
mov eax, dword [esi + 0x20]
mov edx, eax
sub edx, ebx
dec edx
test edx, edx
jle 0x1000d657
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.1008a0f0
mov eax, dword [esi + 0x20]
add esp, 0xc
dec eax
pop edi
mov dword [esi + 0x20], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18