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

Disassembly:
mov eax, 0x452f43
call fcn.0044ca14
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 0x40b536
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 0x40b5a7
mov eax, esi
lea ecx, [ebp - 0x70]
call fcn.00426250
pop ecx
mov dword [ebp - 4], ebx
cmp dword [eax + 0x18], 0x10
jb 0x40b570
mov eax, dword [eax + 4]
jmp 0x40b573
add eax, 4
push eax
push 0x458fdc
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0x10
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.004017a5
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 0x458ff8
push 8
push dword [0x468678]
mov dword [ebp - 0x18], eax
call fcn.00429300
add esp, 0x10
cmp byte [ebp + 0x10], bl
jne 0x40b5ec
cmp dword [ebp - 0x18], 0x80000
jae 0x40b5ec
push 0x459008
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0xc
jmp 0x40b594
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.00419494
pop ecx
pop ecx
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4686e4
lea ecx, [ebp - 0x38]
call fcn.0040ad4c
push 0x458f9c
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00405fa8
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x70]
call fcn.00425fc3
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.004065bf
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.004018a6
cmp dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x34]
jae 0x40b65e
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 [0x468670]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
test eax, eax
je 0x40b6db
lea eax, [ebp - 0x38]
lea ecx, [ebp - 0x70]
call fcn.00426250
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 0x10
jb 0x40b699
mov eax, dword [eax + 4]
jmp 0x40b69c
add eax, 4
push eax
push 0x459020
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x70]
call fcn.004017a5
mov byte [ebp + 0x13], bl
push ebx
push edi
lea ecx, [ebp - 0x38]
call fcn.004018a6
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004017a5
mov al, byte [ebp + 0x13]
jmp 0x40b596
mov eax, esi
lea ecx, [ebp - 0x8c]
call fcn.00426250
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x18], 0x10
jb 0x40b6f8
mov eax, dword [eax + 4]
jmp 0x40b6fb
add eax, 4
push eax
push 0x459034
push 8
push dword [0x468678]
call fcn.00429300
add esp, 0x10
push ebx
push edi
lea ecx, [ebp - 0x8c]
call fcn.004017a5
cmp dword [esi + 0x18], 8
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], ebx
jb 0x40b72f
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 0x40b754
mov eax, dword [eax + 4]
jmp 0x40b757
add eax, 4
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
push eax
push edi
push ebx
push 0x459044
push dword [ebp - 0x10]
call esi
cmp dword [ebp - 0x3c], 0x10
mov eax, dword [ebp - 0x50]
jae 0x40b777
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 0x40b6bf