Function at 0x46dff0
Capabilities:
Get file size
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
xor edi, edi
cmp dword [ebp + 0x20], 8
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
jae 0x46e00f
lea eax, [ebp + 0xc]
push 0
push 0x20
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46e095
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, 0x38
jbe 0x46e08b
cmp ebx, 0x500000
jge 0x46e08b
lea eax, [ebx + 1]
push eax
call fcn.004bffc9
mov edi, eax
add esp, 4
test edi, edi
je 0x46e08b
lea eax, [ebx + 1]
push eax
push 0
push edi
mov dword [ebp - 0xc], 0
call fcn.004c5470
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e08b
cmp ebx, dword [ebp - 0xc]
jne 0x46e08b
mov byte [ebp - 1], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 8]
xor eax, eax
cmp dword [edi], 0x38
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
je 0x46e0b0
mov byte [ebp - 1], al
jmp 0x46e139
cmp byte [ebp - 1], 0
je 0x46e139
cmp ebx, 0x3c
ja 0x46e0c5
mov byte [ebp - 1], 0
jmp 0x46e139
mov esi, 0x38
mov ecx, str.IESTUB_3D02BA48_9BBF_40BD_A76B_EA82ED70629D_2.0.0.1003_n
lea edx, [edi + 4]
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x46e0ea
sub esi, 4
add ecx, 4
add edx, 4
cmp esi, 4
jae 0x46e0d2
test esi, esi
je 0x46e139
movzx eax, byte [edx]
movzx ebx, byte [ecx]
sub eax, ebx
jne 0x46e125
cmp esi, 1
jbe 0x46e136
movzx eax, byte [edx + 1]
movzx ebx, byte [ecx + 1]
sub eax, ebx
jne 0x46e125
cmp esi, 2
jbe 0x46e136
movzx eax, byte [edx + 2]
movzx ebx, byte [ecx + 2]
sub eax, ebx
jne 0x46e125
cmp esi, 3
jbe 0x46e136
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
mov ebx, dword [ebp - 8]
sar eax, 0x1f
or eax, 1
je 0x46e139
mov byte [ebp - 1], 0
jmp 0x46e139
mov ebx, dword [ebp - 8]
mov esi, dword [edi]
add esi, 4
cmp byte [ebp - 1], 0
je 0x46e2a3
cmp esi, ebx
jge 0x46e2a3
cmp byte [esi + edi], 0x5b
lea eax, [esi + edi]
mov dword [ebp - 0x20], eax
jne 0x46e1ee
lea eax, [esi + 1]
cmp eax, ebx
jge 0x46e29a
cmp byte [edi + esi + 1], 0x53
jne 0x46e29a
mov esi, eax
cmp esi, ebx
jge 0x46e29a
lea edx, [esi + edi]
mov dword [ebp - 0xc], edx
cmp byte [esi + edi], 0x5d
je 0x46e191
inc esi
cmp esi, ebx
jl 0x46e186
lea eax, [esi + 1]
cmp eax, ebx
jge 0x46e29a
cmp byte [edi + esi + 1], 0xa
jne 0x46e29a
mov byte [esi + edi], 0
mov esi, eax
cmp esi, ebx
jge 0x46e1b5
mov byte [esi + edi], 0
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push ecx
push SysReAllocStringLen
mov dword [ebp - 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x46e29a
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x46e29a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46e29a
cmp esi, ebx
jge 0x46e29a
cmp byte [esi + edi], 0x3d
je 0x46e206
inc esi
cmp esi, ebx
jl 0x46e1f6
jmp 0x46e29a
cmp esi, ebx
jge 0x46e29a
mov byte [esi + edi], 0
inc esi
lea eax, [esi + 2]
xor ebx, ebx
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jge 0x46e236
add esi, edi
push esi
call fcn.004c36ea
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x1c], eax
mov ebx, 1
lea eax, [esi + 6]
cmp eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jge 0x46e253
add esi, edi
push esi
call fcn.004c36ea
mov esi, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x14], eax
inc ebx
mov ecx, dword [ebp - 0x14]
lea eax, [esi + ecx]
cmp eax, dword [ebp - 8]
jge 0x46e266
add esi, edi
mov dword [ebp - 0x18], esi
mov esi, eax
inc ebx
cmp ebx, 3
jne 0x46e287
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
mov edx, dword [ebp - 0xc]
push eax
push ecx
push edx
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
cmp esi, dword [ebp - 8]
jge 0x46e297
mov al, byte [esi + edi]
cmp al, 0xa
je 0x46e297
cmp al, 0xd
je 0x46e2a3
mov ebx, dword [ebp - 8]
inc esi
cmp esi, ebx
jl 0x46e150
push edi
call fcn.004c2214
add esp, 4
cmp dword [ebp + 0x20], 8
pop edi
pop esi
pop ebx
jb 0x46e2c1
mov eax, dword [ebp + 0xc]
push eax
call fcn.004c097a
add esp, 4
mov esp, ebp
pop ebp
ret