Function at 0x1054a06
Capabilities:
Get file size
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
mov dword [ebp - 8], ecx
mov ebx, 0x8007000e
call fcn.01054418
cmp eax, esi
je 0x1054a36
push dword [ebp + 8]
push 0x1009038
push eax
call fcn.01059fbd
mov dword [ebp - 4], eax
jmp 0x1054a39
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jne 0x1054a56
cmp dword [ebp - 4], esi
je 0x1054a4c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004003
jmp 0x1054c51
cmp dword [ebp - 4], esi
je 0x1054c4f
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054a65
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 8]
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
mov edi, 0x10073b4
mov eax, 0x10073b0
cmp dword [ebp + 0xc], esi
jne 0x1054a9c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054a9f
sub eax, edx
sar eax, 1
mov ecx, 0x10073b0
cmp dword [ebp + 0xc], esi
jne 0x1054ab9
mov ecx, edi
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 8]
push ecx
push 1
push esi
push 0x1009030
push dword [ebp - 4]
push dword [eax + 0x14]
call fcn.01057a03
mov eax, 0x10073b0
cmp dword [ebp + 0x10], esi
jne 0x1054ae1
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054ae4
sub eax, edx
sar eax, 1
mov ecx, 0x10073b0
cmp dword [ebp + 0x10], esi
jne 0x1054afe
mov ecx, edi
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ebp - 8]
push ecx
push 1
push esi
push 0x1009020
push dword [ebp - 4]
push dword [eax + 0x14]
call fcn.01057a03
push dword [ebp + 8]
call fcn.010561ca
test eax, eax
je 0x1054c43
push 0x41
pop eax
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
pop ecx
cmp edi, esi
je 0x1054c43
push esi
push 0x8000080
push 3
push esi
push 3
push esi
push dword [ebp + 8]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x1054bdc
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x1054bd3
push eax
cmp dword [ebp + 0xc], esi
jbe 0x1054b9d
push dword [ebp + 0xc]
push 0x10090bc
push 0x41
push edi
call fcn.0103590d
add esp, 0x14
jmp 0x1054bad
push 0x1007cc0
push 0x41
push edi
call fcn.0103590d
add esp, 0x10
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054bb2
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push 0x10090b0
push dword [ebp - 4]
call ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.010569a5
test eax, eax
jl 0x1054c3c
mov eax, dword [ebp + 0x10]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp + 0xc]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push 0x1007d80
push 0x41
push edi
call fcn.0103590d
mov eax, edi
add esp, 0x1c
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x1054c1b
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push esi
push 0x1002250
push dword [ebp - 4]
call ebx
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 4]
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret 0xc