Function at 0x100f40e0
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x224], 0x103
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x10212824
push str.SOFTWARE360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
xor dword [ebp - 0x20c], 0xcafedead
xor dword [ebp - 0x208], 0xcafedead
xor dword [ebp - 0x204], 0xcafedead
xor dword [ebp - 0x200], 0xcafedead
xor dword [ebp - 0x1fc], 0xcafedead
xor dword [ebp - 0x1f8], 0xcafedead
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100f4199
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 8
call fcn.10003680
add esp, 4
push 0
push 0
push 3
push 0
push 7
push SysReAllocString
push edi
test eax, eax
je 0x100f41bb
call eax
jmp 0x100f41c1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, eax
test esi, esi
je 0x100f41d0
push esi
call ebx
cmp edi, 0xffffffff
je 0x100f4431
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100f41ef
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x11
call fcn.10003680
add esp, 4
push 0
push edi
test eax, eax
je 0x100f4204
call eax
jmp 0x100f420a
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x210], eax
test esi, esi
je 0x100f4217
push esi
call ebx
mov ebx, dword [ebp - 0x210]
add ebx, 0xf
and ebx, 0xfffffff0
push 0x1025c02a
push ebx
mov dword [ebp - 0x21c], ebx
call fcn.101c85a0
mov esi, eax
push 0x1025c02a
push ebx
mov dword [ebp - 0x214], esi
call fcn.101c85a0
add esp, 0x10
mov ebx, eax
test esi, esi
je 0x100f43ea
test ebx, ebx
je 0x100f43e7
push dword [ebp - 0x21c]
push 0
push esi
call sub.msvcrt.dll_memset
push dword [ebp - 0x21c]
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0x18
mov dword [ebp - 0x218], 0
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100f429b
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 9
call fcn.10003680
add esp, 4
push 0
test eax, eax
je 0x100f42c3
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push edi
call eax
jmp 0x100f42dd
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x210]
push dword [ebp - 0x214]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x220], eax
test esi, esi
je 0x100f42ee
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x220], 0
je 0x100f4397
mov eax, dword [ebp - 0x210]
cmp dword [ebp - 0x218], eax
jne 0x100f4397
push edi
call fcn.1006c110
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
push ebx
push dword [ebp - 0x214]
call fcn.10056a90
add esp, 0x10
test eax, eax
je 0x100f43d1
cmp dword [ebx], 0x4f484951
jne 0x100f436c
mov ecx, dword [ebp - 0x228]
lea esi, [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
lea edi, [ecx + 0x10]
mov dword [ecx + 8], 0
mov eax, dword [ebx + 8]
mov dword [ecx + 0xc], eax
mov ecx, 0xfa
rep movsd dword es:[edi], dword [esi]
mov esi, 1
jmp 0x100f436e
xor esi, esi
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100f43ad
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x100f43c0
call eax
jmp 0x100f43c6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100f43d1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebp - 0x214]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 8
jmp 0x100f4431
push esi
jmp 0x100f43ef
test ebx, ebx
je 0x100f43f7
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
add esp, 4
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100f440d
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x14
call fcn.10003680
add esp, 4
push edi
test eax, eax
je 0x100f4420
call eax
jmp 0x100f4426
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x100f4431
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8