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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43debd
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x47b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], eax
movups xmm0, xmmword [esi + 0x18]
movups xmmword [ebp - 0x3c], xmm0
movq xmm0, qword [esi + 0x28]
movq qword [ebp - 0x18], xmm0
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edi
cmp edx, 0x100
ja 0x40c5e5
je 0x40c5c9
lea eax, [edx - 1]
cmp eax, 0x86
ja case.0x40c950.534
movzx eax, byte [eax + 0x40cab0]
jmp dword [eax*4 + 0x40ca40]
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x30]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x34]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x38]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x44]
call eax
jmp 0x40ca09
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
push ecx
push dword [ebp - 0x2c]
mov ecx, esi
call dword [edx + 0x4c]
xor eax, eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x48]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x6c]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x70]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x78]
call eax
jmp 0x40ca09
xorps xmm0, xmm0
xor eax, eax
movlpd qword [ebp - 0x28], xmm0
mov dword [ebp - 0x28], vtable.KDC.0
test ecx, ecx
mov dword [ebp - 4], eax
cmovne eax, ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x7c]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x80]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
push edi
mov ecx, esi
mov eax, dword [eax + 0x84]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x88]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x9c]
call eax
jmp 0x40ca09
mov edx, dword [esi]
mov eax, edi
shr eax, 0x10
push eax
movzx eax, di
push eax
mov eax, dword [edx + 0xa8]
push ecx
mov ecx, esi
call eax
jmp 0x40ca09
mov edx, dword [esi]
mov eax, edi
shr eax, 0x10
mov ecx, esi
push eax
movzx eax, di
push eax
mov eax, dword [edx + 0xb4]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0xc0]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0xb8]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xbc]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xc4]
call eax
jmp 0x40ca09
mov edx, dword [esi]
mov eax, edi
shr eax, 0x10
push eax
movzx eax, di
push eax
mov eax, dword [edx + 0xd8]
push ecx
mov ecx, esi
call eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0xdc]
call eax
jmp 0x40ca09
mov edx, dword [esi]
movzx eax, di
push eax
push ecx
mov eax, dword [edx + 0xe0]
mov ecx, esi
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0xe8]
call eax
jmp 0x40ca09
mov edx, dword [esi]
mov eax, edi
shr eax, 0x10
push eax
movzx eax, di
push eax
mov eax, dword [edx + 0xec]
push ecx
mov ecx, esi
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0xe4]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x100]
call eax
jmp 0x40ca09
mov edx, dword [esi]
mov eax, edi
shr eax, 0x10
push eax
movzx eax, di
push eax
mov eax, dword [edx + 0x94]
push ecx
mov ecx, esi
call eax
jmp 0x40ca09
cmp edx, 0x200
ja 0x40c853
je 0x40c834
lea eax, [edx - 0x101]
cmp eax, 0x89
ja case.0x40c950.534
movzx eax, byte [eax + 0x40cb8c]
jmp dword [eax*4 + 0x40cb38]
mov edx, dword [esi]
mov eax, edi
shr eax, 0x10
push eax
movzx eax, di
push eax
push ecx
mov ecx, esi
call dword [edx + 0x40]
xor eax, eax
jmp 0x40ca09
movzx eax, cx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x1c]
push 6
push eax
shr ecx, 0x10
push edi
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], ecx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp eax, 5
jne 0x40c6a5
cmp word [ebp - 0x1c], 0x5f
jne 0x40c6a5
cmp word [ebp - 0x1a], 0x6b
jne 0x40c6a5
cmp word [ebp - 0x18], 0x6c
jne 0x40c6a5
cmp word [ebp - 0x16], 0x69
jne 0x40c6a5
cmp word [ebp - 0x14], 0x62
jne 0x40c6a5
push 0xffffffffffffffeb
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x40c6a5
mov edx, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0x24]
mov ecx, eax
push dword [ebp - 0x2c]
call dword [edx + 0x104]
cmp dword [ebp - 0x20], 0
je 0x40c6a5
xor eax, eax
jmp 0x40ca21
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push edi
push dword [ebp - 0x24]
mov ecx, esi
push dword [ebp - 0x2c]
call dword [eax + 0x124]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x38]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_CallWindowProcW]
jmp 0x40ca21
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x54]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x58]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x5c]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x60]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x64]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x68]
call eax
jmp 0x40ca09
mov edx, dword [esi]
push edi
shr edi, 0x10
movzx eax, cx
mov ecx, esi
push edi
push eax
mov eax, dword [edx + 0x8c]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x90]
call eax
jmp 0x40ca09
mov edx, dword [esi]
mov eax, edi
shr eax, 0x10
push eax
movzx eax, di
push eax
mov eax, dword [edx + 0x98]
push ecx
mov ecx, esi
call eax
jmp 0x40ca09
mov eax, dword [esi]
lea edx, [ebp - 0x24]
push edx
push edi
push ecx
mov eax, dword [eax + 0xf0]
mov ecx, esi
mov dword [ebp - 0x24], 0
call eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0xf4]
call eax
jmp 0x40ca09
mov edx, dword [esi]
push edi
shr edi, 0x10
movzx eax, cx
mov ecx, esi
push edi
push eax
mov eax, dword [edx + 0xfc]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x10c]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x110]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x114]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
mov eax, dword [eax + 0x118]
call eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
mov ecx, esi
mov eax, dword [eax + 0x11c]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x120]
call eax
jmp 0x40ca09
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
mov eax, dword [edx + 0xac]
push ecx
push dword [ebp - 0x2c]
mov ecx, esi
call eax
jmp 0x40ca09
cmp edx, 0x20a
ja 0x40c93c
je 0x40c913
lea eax, [edx - 0x201]
cmp eax, 4
ja case.0x40c950.534
jmp dword [eax*4 + 0x40cc18]
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
mov eax, dword [edx + 0x74]
push ecx
push dword [ebp - 0x2c]
mov ecx, esi
call eax
jmp 0x40ca09
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
mov eax, dword [edx + 0xa0]
push ecx
push dword [ebp - 0x2c]
mov ecx, esi
call eax
jmp 0x40ca09
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
mov eax, dword [edx + 0xa4]
push ecx
push dword [ebp - 0x2c]
mov ecx, esi
call eax
jmp 0x40ca09
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
mov eax, dword [edx + 0xcc]
push ecx
push dword [ebp - 0x2c]
mov ecx, esi
call eax
jmp 0x40ca09
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
mov eax, dword [edx + 0xd0]
push ecx
push dword [ebp - 0x2c]
mov ecx, esi
call eax
jmp 0x40ca09
mov edx, dword [esi]
movsx ecx, di
shr edi, 0x10
movsx eax, di
push eax
push ecx
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
mov ecx, esi
push eax
mov eax, dword [edx + 0xb0]
call eax
jmp 0x40ca09
lea eax, [edx - 0x215]
cmp eax, 0xfc
ja case.0x40c950.534
movzx eax, byte [eax + 0x40cc40]
jmp dword [eax*4 + 0x40cc2c]
mov eax, dword [esi]
mov ecx, esi
push edi
mov eax, dword [eax + 0x3c]
call eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x50]
xor eax, eax
jmp 0x40ca09
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc8]
xor eax, eax
jmp 0x40ca09
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0xd4]
call eax
jmp 0x40ca09
mov eax, dword [0x481a5c]
test eax, eax
je 0x40c9b0
cmp edx, eax
jne 0x40c9b0
mov eax, dword [esi]
push edi
push ecx
mov ecx, esi
call dword [eax + 0x20]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 0xc]
lea eax, [edx - 0x400]
cmp eax, 0x7bff
ja 0x40c9ce
mov eax, dword [esi]
push edi
push ecx
push edx
mov eax, dword [eax + 0xf8]
mov ecx, esi
call eax
jmp 0x40ca09
lea eax, [edx - 0x8064]
cmp eax, 1
ja 0x40c9f4
call fcn.0040a8a0
push edi
push dword [ebp - 0x2c]
mov ecx, dword [eax + 8]
push dword [ebp + 0xc]
push dword [esi + 0x38]
mov eax, dword [ecx]
mov eax, dword [eax + 0x10]
call eax
jmp 0x40ca09
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push dword [esi + 0x38]
push dword [esi + 0x34]
call dword [sym.imp.USER32.dll_CallWindowProcW]
movups xmm0, xmmword [ebp - 0x3c]
mov ecx, dword [ebp - 0x20]
movups xmmword [esi + 0x18], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x28], xmm0
mov dword [esi + 0x30], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422009
mov esp, ebp
pop ebp
ret 0x10