Function at 0x4405f0
Capabilities:
Check os version
Get common file path
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff20
lea ebx, [esp + 0x44]
mov edi, dword [0x4be450]
mov edx, dword [0x4bedd4]
mov edx, dword [edx]
mov eax, dword [0x4be32c]
call fcn.004b81b0
mov eax, dword [0x4be614]
push eax
mov eax, dword [0x4be32c]
push eax
call sub.kernel32.dll_lstrcatA
call fcn.004405d8
call fcn.00402844
push esp
call sub.kernel32.dll_GetSystemTimeAsFileTime
mov eax, dword [esp]
call fcn.004aef80
mov eax, dword [esp + 4]
mov dword [esp + 0xd8], eax
xor eax, eax
mov dword [esp + 0xdc], eax
fild qword [esp + 0xd8]
faddp st(1)
add esp, 0xfffffff8
fistp qword [esp]
wait
call fcn.004af008
mov edx, dword [0x4bee1c]
mov dword [edx], eax
mov dword [ebx], 0x94
push ebx
call sub.kernel32.dll_GetVersionExA
cmp dword [ebx + 0x10], 2
sete byte [edi]
mov eax, dword [ebx + 4]
cmp eax, 4
jne 0x440691
cmp dword [ebx + 8], 0xa
jae 0x440696
cmp eax, 4
jbe 0x44069b
cmp byte [edi], 0
je 0x44069f
xor eax, eax
jmp 0x4406a1
mov al, 1
mov edx, dword [0x4be5bc]
mov byte [edx], al
cmp byte [edi], 0
jne 0x4406c0
mov eax, dword [0x4be5bc]
cmp byte [eax], 1
je 0x4406c4
cmp word [ebx + 0xc], 0x3e8
ja 0x4406c4
xor eax, eax
jmp 0x4406c6
mov al, 1
mov edx, dword [0x4be74c]
mov byte [edx], al
cmp byte [edi], 0
je 0x4406d9
cmp dword [ebx + 4], 4
ja 0x4406dd
xor eax, eax
jmp 0x4406df
mov al, 1
mov edx, dword [0x4beb24]
mov byte [edx], al
mov eax, dword [0x4beb24]
cmp byte [eax], 0
je 0x4406fd
cmp dword [ebx + 4], 5
ja 0x440701
cmp dword [ebx + 8], 0
ja 0x440701
xor eax, eax
jmp 0x440703
mov al, 1
mov edx, dword [0x4be684]
mov byte [edx], al
mov eax, dword [0x4be5bc]
cmp byte [eax], 1
jne 0x440721
cmp dword [ebx + 8], 0x5a
jae 0x440725
cmp dword [ebx + 4], 5
ja 0x440725
xor eax, eax
jmp 0x440727
mov al, 1
mov edx, dword [0x4bec1c]
mov byte [edx], al
mov eax, dword [0x4beb24]
cmp byte [eax], 0
jne 0x440751
mov eax, dword [0x4be684]
cmp byte [eax], 0
jne 0x440751
mov eax, dword [0x4bec1c]
cmp byte [eax], 0
jne 0x440751
xor eax, eax
jmp 0x440753
mov al, 1
mov edx, dword [0x4be694]
mov byte [edx], al
mov eax, dword [0x4beeac]
mov edx, dword [ebx + 4]
mov dword [eax], edx
mov eax, dword [0x4be708]
mov edx, dword [ebx + 8]
mov dword [eax], edx
mov eax, dword [0x4bea84]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
cmp byte [edi], 0
je 0x44078a
mov eax, dword [0x4be4ec]
mov word [eax], 0x3e8
jmp 0x440794
mov eax, dword [0x4be4ec]
mov word [eax], 0x1f4
mov eax, dword [0x4be684]
mov al, byte [eax]
mov edx, dword [0x4bed38]
mov byte [edx], al
mov eax, dword [0x4be684]
cmp byte [eax], 0
je 0x4407dc
push 0x440afc
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
push 0x440b08
push ebx
call sub.kernel32.dll_GetProcAddress
mov ebp, eax
mov esi, ebp
test ebp, ebp
je 0x4407d6
call esi
mov edx, dword [0x4bed38]
mov byte [edx], al
push ebx
call sub.kernel32.dll_FreeLibrary_1
push 0x440b18
call sub.kernel32.dll_GetModuleHandleA_1
mov edx, dword [0x4be9f0]
mov dword [edx], eax
push 0x440b24
call sub.kernel32.dll_GetModuleHandleA_1
mov edx, dword [0x4be4a0]
mov dword [edx], eax
cmp byte [edi], 0
jne 0x44088b
push 0x440b34
mov eax, dword [0x4be4a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [0x4be5b8]
mov dword [edx], eax
push 0x440b50
mov eax, dword [0x4be4a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [0x4bee90]
mov dword [edx], eax
push 0x440b60
mov eax, dword [0x4be4a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [0x4bea9c]
mov dword [edx], eax
push 0x440b70
mov eax, dword [0x4be4a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [0x4be6f4]
mov dword [edx], eax
push 0x440b80
mov eax, dword [0x4be4a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetProcAddress
mov edx, dword [0x4bef74]
mov dword [edx], eax
mov eax, dword [0x4beb40]
mov eax, dword [eax + 0x18]
call fcn.004b1c50
call fcn.004b8404
mov edx, dword [0x4be62c]
mov dword [edx], eax
mov eax, dword [0x4beb40]
mov eax, dword [eax + 0x20]
call fcn.004b1c50
call fcn.004b8404
mov edx, dword [0x4bedf0]
mov dword [edx], eax
mov edx, dword [0x4bedf0]
mov edx, dword [edx]
mov eax, dword [0x4be5e8]
call fcn.004b81b0
push 0xff
mov eax, dword [0x4bedb0]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, dword [0x4bedb0]
call fcn.004aedb4
call fcn.004b8404
mov edx, dword [0x4be5b4]
mov dword [edx], eax
push 4
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4bec48]
mov byte [edx], al
push 0xf
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4be3b0]
mov byte [edx], al
push 0x20
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4be5e4]
mov byte [edx], al
push 7
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4be3f0]
mov byte [edx], al
push 0x33
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4bea44]
mov byte [edx], al
push 2
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4be83c]
mov byte [edx], al
push 1
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4beb7c]
mov dword [edx], eax
push 0
call sub.user32.dll_GetSystemMetrics
mov edx, dword [0x4be9cc]
mov dword [edx], eax
mov eax, dword [0x4beb7c]
cmp dword [eax], 0x1e2
jge 0x440987
mov eax, dword [0x4bef14]
mov byte [eax], 1
jmp 0x4409eb
mov eax, dword [0x4beb7c]
cmp dword [eax], 0x25a
jge 0x44099e
mov eax, dword [0x4bef14]
mov byte [eax], 2
jmp 0x4409eb
mov eax, dword [0x4beb7c]
cmp dword [eax], 0x302
jge 0x4409b5
mov eax, dword [0x4bef14]
mov byte [eax], 3
jmp 0x4409eb
mov eax, dword [0x4beb7c]
cmp dword [eax], 0x362
jge 0x4409cc
mov eax, dword [0x4bef14]
mov byte [eax], 4
jmp 0x4409eb
mov eax, dword [0x4beb7c]
cmp dword [eax], 0x4b0
jge 0x4409e3
mov eax, dword [0x4bef14]
mov byte [eax], 5
jmp 0x4409eb
mov eax, dword [0x4bef14]
mov byte [eax], 6
call fcn.0042a2c0
mov eax, dword [0x4be5ec]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.gdi32.dll_CreatePen
mov edx, dword [0x4bee74]
mov dword [edx], eax
mov eax, dword [0x4be494]
mov eax, dword [eax]
push eax
push 0
push 0
call sub.gdi32.dll_CreatePen
mov edx, dword [0x4bed88]
mov dword [edx], eax
push 0xf
call sub.user32.dll_GetSysColorBrush
mov edx, dword [0x4be7e8]
mov dword [edx], eax
mov eax, dword [0x4be4fc]
mov edx, 0x2a
call fcn.004066e4
mov eax, dword [0x4be328]
mov edx, 0xa8
call fcn.004066e4
lea eax, [esp + 8]
push eax
push 0x3c
push 0x10
call sub.gdi32.dll_GetStockObject
push eax
call sub.gdi32.dll_GetObjectA
cmp dword [esp + 8], 0xf
mov eax, dword [0x4bedec]
setg byte [eax]
call fcn.004b0380
call fcn.00440114
mov eax, dword [0x4be318]
cmp byte [eax], 1
jne 0x440a90
mov eax, dword [0x4be784]
mov byte [eax + 0x188c], 1
mov eax, dword [0x4be784]
cmp byte [eax + 0x18d5], 0
je 0x440aa9
mov eax, dword [0x4beac0]
mov dword [eax], 3
mov eax, dword [0x4be784]
cmp byte [eax + 0x18ee], 0
je 0x440abf
mov eax, dword [0x4beba8]
mov byte [eax], 0x18
mov eax, dword [0x4be784]
cmp byte [eax + 0x193c], 0
je 0x440ad7
mov eax, dword [0x4beacc]
mov byte [eax], 0x19
jmp 0x440adf
mov eax, dword [0x4beacc]
mov byte [eax], 0
mov ax, 0x369
call fcn.004aa600
mov edx, dword [0x4be9d4]
mov dword [edx + 0x10], eax
add esp, 0xe0
pop ebp
pop edi
pop esi
pop ebx
ret