Function at 0x1064162
Capabilities:
Check os version
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x650
mov eax, dword [0x1075fb8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x62c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x630], eax
mov dword [ebp - 0x628], edi
mov dword [ebp - 0x638], edi
mov dword [ebp - 0x634], edi
mov eax, dword [0x1075004]
mov esi, 0x1075004
mov ebx, 0x1005ccc
cmp eax, esi
je 0x10641d2
test byte [eax + 0x1c], 2
je 0x10641d2
cmp byte [eax + 0x19], 5
jb 0x10641d2
push ebx
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov eax, dword [0x1075004]
cmp dword [ebp - 0x62c], edi
je 0x1064579
cmp dword [ebp - 0x630], edi
je 0x1064579
call fcn.01061453
test eax, eax
je 0x10643c1
call fcn.010619fb
test eax, eax
jne 0x10643c1
mov dword [ebp - 0x650], edi
lea edi, [ebp - 0x64c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, 0x208
push edi
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call sub.msvcrt.dll_memset
add esp, 0x18
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1064297
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064290
test byte [eax + 0x1c], 2
je 0x1064290
cmp byte [eax + 0x19], 2
jb 0x1064290
push edi
push ebx
push 0x17
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, edi
jmp 0x106459c
lea eax, [ebp - 0x210]
push eax
push 0x1005d5c
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.01009acc
add esp, 0x10
test eax, eax
jge 0x10642e6
mov ecx, dword [0x1075004]
cmp ecx, esi
je 0x10642dc
test byte [ecx + 0x1c], 2
je 0x10642dc
cmp byte [ecx + 0x19], 2
jb 0x10642dc
push eax
push ebx
push 0x18
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.0102ca9d
mov eax, 0x10b
jmp 0x106459c
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x620]
push eax
mov dword [ebp - 0x650], 0x14
call fcn.0105d407
mov edi, eax
test edi, edi
je 0x1064338
cmp edi, 2
je 0x1064338
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064290
test byte [eax + 0x1c], 2
je 0x1064290
cmp byte [eax + 0x19], 2
jb 0x1064290
push edi
push ebx
push 0x19
jmp 0x1064285
push 5
pop eax
cmp ax, word [ebp - 0x648]
jne 0x10643bf
push 2
pop eax
cmp ax, word [ebp - 0x646]
jne 0x10643bf
mov eax, 0x6f0
cmp ax, word [ebp - 0x644]
je 0x106436c
mov eax, 0xa28
cmp ax, word [ebp - 0x644]
jne 0x10643bf
call fcn.01064030
test eax, eax
jne 0x10643a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064290
test byte [eax + 0x1c], 2
je 0x1064290
cmp byte [eax + 0x19], 2
jb 0x1064290
push edi
push ebx
push 0x1a
jmp 0x1064285
mov ecx, dword [ebp - 0x630]
and dword [ecx], 0
mov ecx, dword [ebp - 0x62c]
mov dword [ecx], eax
xor eax, eax
jmp 0x106459c
xor edi, edi
lea eax, [ebp - 0x628]
push eax
push 0x111
push edi
push 0x1001f38
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x624], eax
cmp eax, edi
je 0x106441c
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064411
test byte [eax + 0x1c], 2
je 0x1064411
cmp byte [eax + 0x19], 2
jb 0x1064411
push dword [ebp - 0x624]
push ebx
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
mov eax, dword [ebp - 0x624]
jmp 0x106459c
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x624], eax
cmp eax, edi
jne 0x1064463
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064523
test byte [eax + 0x1c], 2
je 0x1064523
cmp byte [eax + 0x19], 2
jb 0x1064523
push edi
push ebx
push 0x1c
jmp 0x1064518
push 1
push eax
push 4
push edi
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegNotifyChangeKeyValue]
mov edi, eax
test edi, edi
je 0x10644a2
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064523
test byte [eax + 0x1c], 2
je 0x1064523
cmp byte [eax + 0x19], 2
jb 0x1064523
push edi
push ebx
push 0x1d
jmp 0x1064518
lea eax, [ebp - 0x63c]
push eax
push 4
push 1
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x638]
push eax
push 0x1001d60
push 0
call fcn.01063ef2
mov edi, eax
test edi, edi
jne 0x1064527
push dword [ebp - 0x634]
push dword [ebp - 0x638]
call fcn.01063479
cmp dword [ebp - 0x63c], 4
jne 0x106455a
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x106455a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1075004]
cmp eax, esi
je 0x1064523
test byte [eax + 0x1c], 2
je 0x1064523
cmp byte [eax + 0x19], 2
jb 0x1064523
push edi
push ebx
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
test edi, edi
je 0x106455a
cmp dword [ebp - 0x624], 0
je 0x106453c
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x628], 0
je 0x1064290
push dword [ebp - 0x628]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1064290
mov eax, dword [ebp - 0x62c]
mov ecx, dword [ebp - 0x624]
mov dword [eax], ecx
mov eax, dword [ebp - 0x628]
mov ecx, dword [ebp - 0x630]
jmp 0x10643b6
cmp eax, esi
je 0x1064599
test byte [eax + 0x1c], 2
je 0x1064599
cmp byte [eax + 0x19], 2
jb 0x1064599
push 0x57
push ebx
push 0x16
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
push 0x57
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0105bb63
leave
ret 8