Function at 0x1000d630
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 0x1000d682
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 0x1000d674
inc edi
cmp edi, dword [esi + 0x20]
jl 0x1000d642
jmp 0x1000d682
mov eax, dword [esi + 0x14]
mov edi, dword [ebx + eax]
test edi, edi
jne 0x1000d8de
mov ebx, dword [esi + 0x20]
mov ecx, dword [esi + 0x18]
mov dword [ebp - 4], ebx
lea eax, [ebx + 1]
cmp eax, ecx
jle 0x1000d70d
mov eax, dword [esi + 0x1c]
test eax, eax
js 0x1000d70d
lea edi, [ebx + 1]
je 0x1000d6c2
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 0x1000d6e9
test ecx, ecx
jne 0x1000d6d8
lea eax, [ecx - 1]
cmp eax, edi
jl 0x1000d6d8
mov dword [esi + 0x18], eax
jmp 0x1000d6e9
test ecx, ecx
mov eax, 8
cmove ecx, eax
cmp ecx, edi
jge 0x1000d6ab
add ecx, ecx
cmp ecx, edi
jl 0x1000d6d0
jmp 0x1000d6e6
lea eax, [ecx + edi]
cdq
sub eax, edx
sar eax, 1
mov ecx, eax
cmp ecx, edi
jl 0x1000d6d8
mov dword [esi + 0x18], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
shl eax, 2
push eax
test ecx, ecx
je 0x1000d702
push ecx
call fcn.10089ca3
add esp, 8
jmp 0x1000d70a
call fcn.10089cae
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
mov dword [esi + 0x24], ecx
test eax, eax
jle 0x1000d734
shl eax, 2
lea edx, [ecx + ebx*4]
push eax
lea ecx, [edx + 4]
push edx
push ecx
call fcn.10086cf0
add esp, 0xc
push 0x390
call fcn.1008467a
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
mov dword [edi], vtable.CWin32Font.0
mov dword [edi + 0x4c], 0x1001f8f0
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 0x1000d84c
cmp dword [edi + 0x58], 0
jl 0x1000d84c
mov eax, dword [edi + 0x50]
mov dword [edi + 0x54], 0x80
push 0x700
test eax, eax
je 0x1000d841
push eax
call fcn.10089ca3
add esp, 8
jmp 0x1000d849
call fcn.10089cae
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.10086b30
add esp, 0xc
cmp byte [0x100eb425], 0
jne 0x1000d8b0
push 0x90
push 0
push 0x100eb4b4
mov byte [0x100eb425], 1
call fcn.10086b30
add esp, 0xc
mov dword [0x100eb4b0], 0x94
push 0x100eb4b0
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x100eb4b4], 5
setae byte [0x100e3b04]
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 0x1000d8e9
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test edi, edi
je 0x1000d94d
mov eax, dword [edi + 0x84]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [edi], vtable.CWin32Font.0
test eax, eax
je 0x1000d906
push eax
call ebx
mov eax, dword [edi + 0x88]
test eax, eax
je 0x1000d917
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x8c]
test eax, eax
je 0x1000d924
push eax
call ebx
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x1000d934
push eax
call fcn.100849f5
add esp, 4
lea ecx, [edi + 0x4c]
call fcn.10020c70
push 0x390
push edi
call fcn.100846aa
mov ebx, dword [ebp - 4]
add esp, 8
mov edx, dword [esi + 0x20]
sub edx, ebx
dec edx
test edx, edx
jle 0x1000d972
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.10086cf0
add esp, 0xc
dec dword [esi + 0x20]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18