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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push edi
or eax, 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str.PendingFileRenameOperations
push 0x100a62a0
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call esi
test eax, eax
jne 0x1005a195
cmp dword [esp + 0x14], 7
jne 0x1005a186
mov eax, dword [esp + 0x10]
cmp eax, ebx
jbe 0x1005a186
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10074adf
mov edi, eax
mov eax, dword [esp + 0x14]
lea ecx, [eax + eax]
push ecx
push ebx
push edi
call fcn.10079c60
add esp, 0x10
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push str.PendingFileRenameOperations
push 0x100a62a0
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x1005a17d
mov esi, edi
cmp word [edi], bx
je 0x1005a17d
nop
mov ecx, dword [ebp + 8]
push ecx
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x1005a170
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1005a154
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 4], bx
lea esi, [esi + eax*2 + 4]
jne 0x1005a140
jmp 0x1005a17d
mov edx, dword [ebp + 8]
mov dword [edx + 0x1218], 1
push edi
call fcn.10076993
add esp, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1218], ebx
jne 0x1005a36b
mov ecx, dword [ebp + 8]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005a293
lea edx, [esp + 0x18]
push edx
push esi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1005a28c
mov eax, dword [esp + 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x1208], eax
mov dword [edi + 0x120c], ecx
call fcn.1006c390
cmp eax, ebx
je 0x1005a28c
mov eax, dword [eax]
cmp eax, 1
jne 0x1005a243
push 0x4c
lea edx, [esp + 0x30]
push ebx
push edx
mov dword [esp + 0x34], ebx
call fcn.10079c60
add esp, 0xc
push ebx
lea eax, [esp + 0x28]
push eax
push 0x50
lea ecx, [esp + 0x34]
push ecx
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005a28c
cmp dword [esp + 0x2c], 0x346e6957
jne 0x1005a28c
mov edx, dword [esp + 0x38]
mov dword [edi + 0x1214], edx
jmp 0x1005a28c
cmp eax, 3
jl 0x1005a28c
push 0x40
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.10079c60
add esp, 0xc
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0x44
lea edx, [esp + 0x34]
push edx
push esi
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005a28c
cmp dword [esp + 0x2c], 0x346e6957
jne 0x1005a28c
mov eax, dword [esp + 0x68]
mov dword [edi + 0x1214], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1006c390
cmp eax, ebx
je 0x1005a2ae
cmp dword [eax + 0x24], 1
jne 0x1005a2ae
lea ecx, [esp + 0xc]
push ecx
push 0x20119
jmp 0x1005a2b8
lea edx, [esp + 0xc]
push edx
push 0x20019
push ebx
push 0x100a6360
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x1005a36b
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.SHLWAPI.dll_SHQueryValueExW]
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0x2c]
push ecx
push ebx
push 0x100a633c
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x1005a360
cmp dword [esp + 0x24], 1
jne 0x1005a360
mov eax, dword [esp + 0x18]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
push 0x100c49e4
neg ecx
or ecx, eax
push ecx
call fcn.10076988
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x1005a360
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
push ebx
push 0x100a633c
push edx
call edi
test eax, eax
jne 0x1005a357
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1210], eax
push esi
call fcn.10076993
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4