Function at 0x1054a28
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.0105443a
cmp eax, esi
je 0x1054a58
push dword [ebp + 8]
push 0x1009038
push eax
call fcn.01059fde
mov dword [ebp - 4], eax
jmp 0x1054a5b
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
jne 0x1054a78
cmp dword [ebp - 4], esi
je 0x1054a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80004003
jmp 0x1054c73
cmp dword [ebp - 4], esi
je 0x1054c71
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054a87
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 0x1054abe
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054ac1
sub eax, edx
sar eax, 1
mov ecx, 0x10073b0
cmp dword [ebp + 0xc], esi
jne 0x1054adb
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.01057a24
mov eax, 0x10073b0
cmp dword [ebp + 0x10], esi
jne 0x1054b03
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054b06
sub eax, edx
sar eax, 1
mov ecx, 0x10073b0
cmp dword [ebp + 0x10], esi
jne 0x1054b20
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.01057a24
push dword [ebp + 8]
call fcn.010561eb
test eax, eax
je 0x1054c65
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 0x1054c65
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 0x1054bfe
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0x10], eax
cmp eax, 0xffffffff
je 0x1054bf5
push eax
cmp dword [ebp + 0xc], esi
jbe 0x1054bbf
push dword [ebp + 0xc]
push 0x10090bc
push 0x41
push edi
call fcn.0103592d
add esp, 0x14
jmp 0x1054bcf
push 0x1007cc0
push 0x41
push edi
call fcn.0103592d
add esp, 0x10
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1054bd4
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.010569c6
test eax, eax
jl 0x1054c5e
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.0103592d
mov eax, edi
add esp, 0x1c
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
cmp dx, si
jne 0x1054c3d
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
invalid