Function at 0x445430
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ed591
mov eax, dword fs:[0]
push eax
sub esp, 0x4f8
mov eax, dword [0x555ab0]
xor eax, esp
mov dword [esp + 0x4f0], eax
push ebx
push esi
push edi
mov eax, dword [0x555ab0]
xor eax, esp
push eax
lea eax, [esp + 0x508]
mov dword fs:[0], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [0x5556d8]
mov ecx, 0x5556d8
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x510], 0
mov eax, dword [0x55e860]
imul eax, eax
cdq
mov ecx, 0x14
idiv ecx
cmp edx, 0xf
jne 0x4454ca
push 0x8b
push 0x8a
push 0x53b3a8
call fcn.004b0fdf
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [0x55e860]
movzx edi, al
shr eax, 8
movzx ebx, al
lea eax, [ecx + 1]
imul eax, ecx
cdq
mov ecx, 0x17
idiv ecx
mov eax, dword [0x55f824]
mov ecx, 0x4d1c0de7
cmp edx, 0xb
cmove eax, ecx
mov dword [0x55f824], eax
cmp edi, 6
ja 0x44550e
jne 0x44556d
cmp ebx, 1
jbe 0x44556d
cmp dword [0x558ef4], reloc.OLEAUT32.dll_SysReAllocString
je 0x44556d
mov edx, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x1c]
call fcn.00444fd0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x514], 1
call fcn.004020f0
mov byte [esp + 0x510], 0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or eax, 0xffffffff
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x445564
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x14]
jmp 0x44566c
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x1c]
call fcn.00444fd0
add esp, 4
mov byte [esp + 0x510], 2
mov edx, dword [eax]
lea edi, [esi - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4455d7
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4455c6
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4455c6
call fcn.004022e0
mov ebx, eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4455bd
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
lea esi, [ebx + 0x10]
mov dword [esp + 0x14], esi
jmp 0x4455d7
push dword [edx - 0xc]
lea ecx, [esp + 0x18]
push edx
call fcn.004021b0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x510], 0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4455fd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x55e860]
imul eax, eax
cdq
mov ecx, 0x15
idiv ecx
cmp edx, 0xe
jne 0x44566c
xor edi, edi
call fcn.004b0a92
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc edi
movsd qword [esp + edi*8 + 0x1c], xmm0
cmp edi, 0x9b
jb 0x445614
xor ecx, ecx
mov eax, 0x9a
cmp ecx, eax
jge 0x445663
jmp 0x445640
movsd xmm0, qword [esp + eax*8 + 0x24]
movsd xmm1, qword [esp + eax*8 + 0x1c]
comisd xmm0, xmm1
jbe 0x44565e
movsd qword [esp + eax*8 + 0x24], xmm1
movsd qword [esp + eax*8 + 0x1c], xmm0
dec eax
cmp eax, ecx
jg 0x445640
inc ecx
cmp ecx, 0x9b
jl 0x445632
mov edi, dword [0x558ef4]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4456aa
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4456b4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x1c]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.00445720
add esi, 0xfffffff0
mov bl, al
add esp, 4
mov dword [esp + 0x510], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4456ef
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, bl
mov ecx, dword [esp + 0x508]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f0]
xor ecx, esp
call fcn.004b00a0
mov esp, ebp
pop ebp
ret