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

Disassembly:
mov eax, 0x452c3b
call fcn.0044c764
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 0x40b1ae
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x8000080
push 4
push ebx
push 1
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
push ebx
cmp edi, 0xffffffff
jne 0x40b21f
mov eax, esi
lea ecx, [ebp - 0x70]
call fcn.0042619d
pop ecx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 0x10
jb 0x40b1e8
mov eax, dword [eax + 4]
jmp 0x40b1eb
add eax, 4
push eax
push 0x457fd4
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.004017a7
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 0x457ff0
push 8
push dword [0x467478]
mov dword [ebp - 0x18], eax
call fcn.00429210
add esp, 0x10
cmp byte [ebp + 0x10], bl
jne 0x40b264
cmp dword [ebp - 0x18], 0x80000
jae 0x40b264
push 0x458000
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0xc
jmp 0x40b20c
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00419440
pop ecx
pop ecx
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4674e4
lea ecx, [ebp - 0x38]
call fcn.0040a9c4
push 0x457f94
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00405ecc
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x70]
call fcn.00425f10
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004064f2
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004018a8
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x40b2d6
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 [0x467470]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
test eax, eax
je 0x40b353
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x70]
call fcn.0042619d
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x40b311
mov eax, dword [eax + 4]
jmp 0x40b314
add eax, 4
push eax
push 0x458018
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004017a7
mov byte [ebp + 0x13], bl
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.004018a8
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004017a7
mov al, byte [ebp + 0x13]
jmp 0x40b20e
mov eax, esi
lea ecx, [ebp - 0x8c]
call fcn.0042619d
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x40b370
mov eax, dword [eax + 4]
jmp 0x40b373
add eax, 4
push eax
push 0x45802c
push 8
push dword [0x467478]
call fcn.00429210
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x8c]
call fcn.004017a7
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
jb 0x40b3a7
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 0x40b3cc
mov eax, dword [eax + 4]
jmp 0x40b3cf
add eax, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
push edi
push ebx
push 0x45803c
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x40b3ef
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 0x40b337