Function at 0x463e5d
Capabilities:
Query or enumerate registry value
Read file on windows

Disassembly:
sub esp, 0x294
mov eax, dword [0x517490]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
mov ebp, dword [esp + 0x2a4]
lea eax, [esp + 0x90]
push esi
mov esi, dword [esp + 0x2a4]
xor ebx, ebx
push edi
push eax
push esi
call fcn.00463c07
pop ecx
pop ecx
test eax, eax
je 0x463f30
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [esp + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4640d8
mov esi, 0x400
push esi
call fcn.004bb17d
push esi
mov edi, eax
push ebx
push edi
call fcn.004bea90
add esp, 0x10
lea eax, [esp + 0x14]
push ebx
push eax
push 0x3ff
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 1
jne 0x4640d1
cmp dword [esp + 0x14], 0x64
jbe 0x4640d1
push edi
call fcn.00463d09
pop ecx
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x463f21
jmp 0x4640ce
push 0x53
pop eax
push 0x4f
mov word [esp + 0x1c], ax
pop eax
push 0x46
mov word [esp + 0x1e], ax
pop eax
push 0x54
mov word [esp + 0x20], ax
pop eax
push 0x57
mov word [esp + 0x22], ax
pop eax
push 0x41
mov word [esp + 0x24], ax
pop eax
push 0x52
mov word [esp + 0x26], ax
pop eax
push 0x45
mov word [esp + 0x28], ax
pop eax
push 0x5c
mov word [esp + 0x2a], ax
pop eax
mov word [esp + 0x28], ax
xor eax, eax
push 0x6c
mov word [esp + 0x2e], ax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004bea90
add esp, 0xc
mov edx, esi
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x463f91
lea edi, [esp + 0x18]
sub esi, edx
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x463fa5
mov ecx, esi
lea eax, [esp + 0x10]
mov dword [esp + 0x14], esi
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [esp + 0x1c]
mov edi, 0x20019
push edi
push ebx
push eax
push 0x80000002
call esi
test eax, eax
jne 0x464053
mov esi, 0x400
push esi
mov dword [esp + 0x18], esi
call fcn.004bb17d
push esi
mov edi, eax
push ebx
push edi
call fcn.004bea90
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebx
push 0x664df9aa
push 0x352bc1f2
push 0x74940890
call fcn.004024be
add esp, 0xc
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4640d1
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x464047
jmp 0x4640ce
lea eax, [esp + 0x10]
push eax
push edi
push ebx
lea eax, [esp + 0x24]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x4640d8
mov esi, 0x400
push esi
mov dword [esp + 0x18], esi
call fcn.004bb17d
push esi
mov edi, eax
push ebx
push edi
call fcn.004bea90
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebx
push 0x590f60f4
push 0xa6958ac
push 0x4bd691c8
call fcn.004024be
add esp, 0xc
push eax
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4640d1
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x4640c4
xor ebx, ebx
inc ebx
push edi
call fcn.004bb566
pop ecx
mov ecx, dword [esp + 0x2a0]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b94b6
add esp, 0x294
ret