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

Disassembly:
sub esp, 0x294
mov eax, dword [0x518450]
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.004641e2
pop ecx
pop ecx
test eax, eax
je 0x46450b
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 0x4646b3
mov esi, 0x400
push esi
call fcn.004bb72d
push esi
mov edi, eax
push ebx
push edi
call fcn.004bf040
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 0x4646ac
cmp dword [esp + 0x14], 0x64
jbe 0x4646ac
push edi
call fcn.004642e4
pop ecx
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x4644fc
jmp 0x4646a9
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.004bf040
add esp, 0xc
mov edx, esi
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x46456c
lea edi, [esp + 0x18]
sub esi, edx
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x464580
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 0x46462e
mov esi, 0x400
push esi
mov dword [esp + 0x18], esi
call fcn.004bb72d
push esi
mov edi, eax
push ebx
push edi
call fcn.004bf040
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebx
push 0x927bf808
push 0xade7ee2e
push 0x33f4633
call fcn.004027e2
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 0x4646ac
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x464622
jmp 0x4646a9
lea eax, [esp + 0x10]
push eax
push edi
push ebx
lea eax, [esp + 0x24]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x4646b3
mov esi, 0x400
push esi
mov dword [esp + 0x18], esi
call fcn.004bb72d
push esi
mov edi, eax
push ebx
push edi
call fcn.004bf040
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebx
push 0xb225d435
push 0x8db9c213
push 0x23616a08
call fcn.004027e2
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 0x4646ac
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x46469f
xor ebx, ebx
inc ebx
push edi
call fcn.004bbb16
pop ecx
mov ecx, dword [esp + 0x2a0]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b9a6c
add esp, 0x294
ret