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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x431b42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, ecx
call sub.mfc90.dll_Ordinal_4993
xor esi, esi
push esi
push 0x40000
push esi
mov ecx, edi
call sub.mfc90.dll_Ordinal_4513
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x30]
push eax
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [edi + 0x6b4], edx
mov edx, dword [esp + 0x3c]
mov dword [edi + 0x6b8], eax
mov dword [edi + 0x6bc], ecx
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0x40]
push eax
push ecx
mov dword [edi + 0x6c0], edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov dword [edi + 0x6c4], edx
mov edx, dword [esp + 0x4c]
mov dword [edi + 0x6c8], eax
lea eax, [edi + 0x660]
mov dword [edi + 0x6cc], ecx
push eax
mov ebx, edi
mov dword [edi + 0x6d0], edx
call fcn.00414090
mov eax, dword [edi + 0x20]
push 0x10000
xor ebp, ebp
push ebp
push eax
lea esi, [edi + 0x78]
push ebp
lea ecx, [esi + 4]
push ecx
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
jne 0x418898
call fcn.0042dc90
mov eax, dword [edi + 0x654]
push eax
mov ecx, edi
call sub.mfc90.dll_Ordinal_6559
push edi
call fcn.004176f0
cmp dword [edi + 0x658], ebp
je 0x418906
push 0x415
mov ecx, edi
call sub.mfc90.dll_Ordinal_2899
mov esi, eax
cmp esi, ebp
je 0x418906
push 0x434c0b
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_310]
push 0x7fd
lea ecx, [esp + 0x18]
mov dword [esp + 0x70], ebp
call dword [sym.imp.mfc90.dll_Ordinal_4431]
mov edx, dword [esp + 0x14]
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6559
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_601]
call fcn.00417c40
mov eax, dword [edi + 0x98]
mov edx, dword [eax + 0x144]
lea ebx, [edi + 0x98]
push edi
push 0x47e
mov ecx, ebx
call edx
push 0x413
mov ecx, edi
call sub.mfc90.dll_Ordinal_2899
mov esi, eax
cmp esi, ebp
je 0x418997
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x20]
push eax
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.USER32.dll_GetWindowRect]
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call sub.mfc90.dll_Ordinal_6048
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, ebx
call sub.mfc90.dll_Ordinal_4529
push 5
mov ecx, ebx
call sub.mfc90.dll_Ordinal_6584
mov eax, dword [esi]
mov edx, dword [eax + 0x68]
mov ecx, esi
call edx
push 0x414
mov ecx, edi
call sub.mfc90.dll_Ordinal_2899
mov esi, eax
cmp esi, ebp
je 0x418a50
push 0x434c41
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_310]
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov dword [esp + 0x70], 1
call sub.mfc90.dll_Ordinal_4116
call fcn.004231f0
call fcn.004231f0
mov ebx, dword [eax]
push 0x434c42
lea ecx, [esp + 0x1c]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov byte [esp + 0x6c], 2
mov eax, dword [ebx + 8]
cmp eax, ebp
jne 0x4189fb
xor eax, eax
jmp 0x418a14
mov ecx, dword [eax + 4]
movzx eax, word [ecx + 0x21]
mov edx, eax
shr edx, 8
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], al
movzx eax, word [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.mfc90.dll_Ordinal_2539]
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
mov ecx, esi
call sub.mfc90.dll_Ordinal_6559
lea ecx, [esp + 0x18]
call dword [sym.imp.mfc90.dll_Ordinal_601]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_601]
mov eax, dword [edi + 0x20]
push 0x10000
push ebp
push eax
lea esi, [edi + 0x78]
push ebp
lea eax, [esi + 4]
push eax
call dword [sym.imp.WINMM.dll_mixerOpen]
test eax, eax
jne 0x418b2b
call fcn.0042dc90
cmp eax, ebp
jl 0x418b2b
mov ebx, edi
call fcn.004179e0
lea esi, [esp + 0x14]
lea ecx, [edi + 0x78]
mov byte [esp + 0x14], 0
call fcn.0042dc00
test eax, eax
jl 0x418b29
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
jne 0x418ac3
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.mfc90.dll_Ordinal_2592
cmp dword [eax + 0x414], 0
sete bl
jmp 0x418ac7
mov bl, byte [esp + 0x14]
xor eax, eax
test bl, bl
sete al
mov dword [edi + 0x5f8], eax
mov eax, dword [edi + 0x568]
test eax, eax
je 0x418ae9
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0x434c43
lea ecx, [esp + 0x20]
call dword [sym.imp.mfc90.dll_Ordinal_310]
mov dword [esp + 0x6c], 3
mov esi, edi
test bl, bl
jne 0x418b0d
push 0x89a
jmp 0x418b12
push 0x89b
call fcn.00417940
lea ecx, [esp + 0x1c]
mov dword [esp + 0x6c], 0xffffffff
call dword [sym.imp.mfc90.dll_Ordinal_601]
xor ebp, ebp
lea edx, [esp + 0x50]
push edx
push 0x4448b8
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], ebp
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x418b77
mov eax, dword [0x4448bc]
mov ecx, dword [0x4448c4]
mov edx, dword [0x4448c0]
push 1
sub ecx, eax
push ecx
mov ecx, dword [0x4448b8]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, edi
call sub.mfc90.dll_Ordinal_4529
mov ecx, dword [esp + 0x64]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret