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

Disassembly:
sub esp, 0x294
mov eax, dword [0x5107c0]
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.0045ea2b
pop ecx
pop ecx
test eax, eax
je 0x45ed54
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 0x45eefc
mov esi, 0x400
push esi
call fcn.004b9a20
push esi
mov edi, eax
push ebx
push edi
call fcn.004b6030
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 0x45eef5
cmp dword [esp + 0x14], 0x64
jbe 0x45eef5
push edi
call fcn.0045eb2d
pop ecx
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x45ed45
jmp 0x45eef2
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.004b6030
add esp, 0xc
mov edx, esi
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x45edb5
lea edi, [esp + 0x18]
sub esi, edx
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x45edc9
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 0x45ee77
mov esi, 0x400
push esi
mov dword [esp + 0x18], esi
call fcn.004b9a20
push esi
mov edi, eax
push ebx
push edi
call fcn.004b6030
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebx
push 0xb89e4a4d
push 0x844b4cdb
push 0x929d2071
call fcn.0040217a
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 0x45eef5
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x45ee6b
jmp 0x45eef2
lea eax, [esp + 0x10]
push eax
push edi
push ebx
lea eax, [esp + 0x24]
push eax
push 0x80000001
call esi
test eax, eax
jne 0x45eefc
mov esi, 0x400
push esi
mov dword [esp + 0x18], esi
call fcn.004b9a20
push esi
mov edi, eax
push ebx
push edi
call fcn.004b6030
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push ebx
push 0x5d0fd17d
push 0x61dad7eb
push 0x770cbb47
call fcn.0040217a
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 0x45eef5
mov ecx, edi
sub ebp, edi
mov al, byte [ecx]
mov byte [ecx + ebp], al
inc ecx
test al, al
jne 0x45eee8
xor ebx, ebx
inc ebx
push edi
call fcn.004b592c
pop ecx
mov ecx, dword [esp + 0x2a0]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b35e5
add esp, 0x294
ret