Function at 0x412810
Capabilities:
Check os version

Disassembly:
sub esp, 0x88
mov eax, dword [0x4a5584]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
push edi
call fcn.00423290
push str.IOSDB_DEV_STATUS_MSG_38610225
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov ebx, 1
mov dword [ebp + 0x5c0], eax
test byte [0x4aff0c], bl
jne 0x412862
or dword [0x4aff0c], ebx
mov dword [0x4aff08], 0
mov eax, dword [0x4aff08]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4128f6
test byte [0x4aff0c], bl
jne 0x412889
or dword [0x4aff0c], ebx
mov dword [0x4aff08], eax
mov ecx, dword [0x4a83c4]
mov eax, dword [0x4a6900]
mov edx, dword [0x4a6908]
push 0
push ecx
mov ecx, dword [0x4a68fc]
push 0
push 0
sub edx, eax
push edx
mov edx, dword [0x4a6904]
sub edx, ecx
push edx
push eax
push ecx
push 0x80000003
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x4aff08], eax
test byte [0x4aff0c], bl
jne 0x4128e3
or dword [0x4aff0c], ebx
xor eax, eax
mov dword [0x4aff08], eax
push 0x258
push 0
push 0x418
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp + 4]
push eax
lea esi, [ebp + 0x1b4]
call fcn.0041e260
mov ecx, dword [ebp + 0x1b8]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [ebp + 4]
mov dword [ebp + 0x1a8], 0x4a
cmp dword [0x4a7bb8], 0
mov edi, 0x8019
mov dword [esp + 0x10], edx
lea esi, [ebp + 0x148]
jne 0x41294d
mov dword [0x4a7bb8], str.LISTBOX
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esi + 0x54]
push ecx
mov ebx, 0x4a7b88
call fcn.00409600
mov edx, dword [esp + 0x18]
add esp, 8
push edi
push 0
push 0x56202011
movzx ebx, ax
push 0
xor eax, eax
push eax
push edx
mov eax, esi
call fcn.00418600
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
lea ecx, [esp + 0x30]
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
cmp dword [0x4ae0ec], 0
jne 0x4129b3
push 0x4a6d88
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [0x4ae0ec], 1
cmp dword [0x4a6d98], 2
jne 0x4129ca
cmp dword [0x4a6d8c], 6
mov eax, 0x4988f4
je 0x4129cf
mov eax, str.Tahoma
mov ecx, 0x20
lea edx, [esp + 0x4c]
call fcn.00401290
lea edx, [esp + 0x30]
push edx
mov dword [esp + 0x34], 0xffffffca
mov dword [esp + 0x44], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [ebp + 0x144], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x4a9ad8]
add esi, 0x10
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4ae12c]
lea ecx, [esp + 0x10]
call fcn.004194d0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x412ad5
lea eax, [ebp + 0xdc]
lea esi, [edi + 4]
lea ebx, [esp + 0x10]
mov dword [esp + 0x10], eax
call fcn.00419460
cmp dword [ebp + 0x598], 0
lea edi, [ebp + 0x598]
jne 0x412ad5
mov eax, dword [edi]
xor ebx, ebx
mov esi, 0x4154f0
test eax, eax
je 0x412a8a
mov dword [edi], ebx
lea ecx, [eax - 0xc]
mov dword [eax], 0xffffffff
mov edx, dword [ecx]
mov eax, dword [edx]
push ebx
call eax
mov eax, dword [0x4aee7c]
xor edx, edx
mov ecx, edi
call fcn.0041dcd0
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x14], 0x4188e0
mov dword [esp + 0x18], ecx
call fcn.004190a0
add esp, 4
push eax
call fcn.0041dbe0
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00451a7d
add esp, 0x88
ret 4