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

Disassembly:
mov eax, 0x50f2bf
call fcn.00508264
sub esp, 0x80
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
push edi
mov dword [ebp - 0x14], eax
jb 0x41f3d7
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push ebx
cmp edi, 0xffffffff
jne 0x41f43f
mov eax, esi
lea ecx, [ebp - 0x70]
call fcn.004221c4
pop ecx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 0x10
jb 0x41f411
mov eax, dword [eax + 4]
jmp 0x41f414
add eax, 4
push eax
push 0x53aa88
call fcn.00413df9
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.004017de
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0x53aaa4
mov dword [ebp - 0x18], eax
call fcn.00413df9
pop ecx
pop ecx
cmp byte [ebp + 0x10], bl
jne 0x41f478
cmp dword [ebp - 0x18], 0x80000
jae 0x41f478
push 0x53aab4
call fcn.00413df9
pop ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41f42c
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.0042ff63
pop ecx
pop ecx
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x55a558
lea ecx, [ebp - 0x38]
call fcn.00403757
push 0x538040
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00403850
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x70]
call fcn.00421f3d
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004039ea
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.0040184d
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x41f4ea
lea eax, [ebp - 0x34]
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push dword [0x55a4dc]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
test eax, eax
je 0x41f55e
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x70]
call fcn.004221c4
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x41f525
mov eax, dword [eax + 4]
jmp 0x41f528
add eax, 4
push eax
push 0x53aacc
call fcn.00413df9
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004017de
mov byte [ebp + 0x13], bl
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.0040184d
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004017de
mov al, byte [ebp + 0x13]
jmp 0x41f42e
mov eax, esi
lea ecx, [ebp - 0x8c]
call fcn.004221c4
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x41f57b
mov eax, dword [eax + 4]
jmp 0x41f57e
add eax, 4
push eax
push 0x53aae0
call fcn.00413df9
pop ecx
pop ecx
push ebx
push edi
lea ecx, [ebp - 0x8c]
call fcn.004017de
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
jb 0x41f5a9
mov ecx, dword [ecx]
add eax, eax
push eax
push ecx
push edi
push ebx
push str.LocalPath
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov ecx, dword [eax + 0x14]
jb 0x41f5ce
mov eax, dword [eax + 4]
jmp 0x41f5d1
add eax, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
push edi
push ebx
push 0x53aaf0
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x41f5f1
lea eax, [ebp - 0x50]
push dword [ebp - 0x40]
push eax
push edi
push ebx
push str.ModifyTime
push dword [ebp - 0x10]
call esi
push 4
pop edi
push edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push str.Length
push dword [ebp - 0x10]
call esi
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push ebx
push str.FileType
push dword [ebp - 0x10]
call esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov byte [ebp + 0x13], 1
inc edi
jmp 0x41f542