Function at 0x408e84
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows

Disassembly:
push ebp
sub esp, 0x78
lea ebp, [esp - 4]
mov eax, dword [0x49b390]
xor eax, ebp
mov dword [ebp + 0x78], eax
push 0x28
mov eax, 0x47d94d
call fcn.004642f2
lea eax, [ebp - 0x28]
push eax
push 0x20019
xor ebx, ebx
push ebx
push 0x4889c0
push 0x80000002
mov byte [ebp - 0xe], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x408f0b
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x4889f8
push dword [ebp - 0x28]
mov dword [ebp - 0x1c], 0x40
mov dword [ebp - 0x18], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x408f02
lea eax, [ebp + 0x38]
push eax
call fcn.0045f05d
test eax, eax
pop ecx
setne byte [ebp - 0xe]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x4a6c0c]
add eax, 0x1b0
push 0x488a08
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x14], ebx
call fcn.00404ee1
mov dword [ebp - 4], ebx
mov eax, dword [0x4a6c0c]
add eax, 0x1b0
push 0x488a20
push eax
lea eax, [ebp]
push eax
call fcn.00404ee1
add esp, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
jae 0x408f5c
lea eax, [ebp + 0x20]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408fc1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0x6400000
jae 0x408fba
lea eax, [esi + 1]
push eax
call fcn.0045b098
pop ecx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push esi
push eax
mov byte [esi + eax], bl
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x2c]
cmp eax, esi
ja 0x408fba
mov ecx, dword [ebp - 0x14]
mov byte [eax + ecx], bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x48
call fcn.0045d605
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x408fdf
push eax
call fcn.00445a10
mov dword [ebp - 0x20], eax
jmp 0x408fe2
mov dword [ebp - 0x20], ebx
mov esi, dword [ebp - 0x20]
cmp esi, ebx
mov byte [ebp - 4], 1
je 0x409179
mov eax, dword [esi]
push ebx
push ebx
push dword [ebp - 0x14]
mov ecx, esi
call dword [eax + 8]
mov eax, esi
call fcn.00405cdc
cmp eax, ebx
je 0x409170
push 0x488a38
mov byte [ebp - 0xf], 1
call fcn.00405d00
mov edi, eax
cmp edi, ebx
je 0x409170
cmp byte [ebp - 0xe], bl
je 0x409030
push 0x488a40
jmp 0x409035
push 0x488a48
call fcn.00405d00
push 0x488a50
mov esi, eax
call fcn.00405d00
mov dword [ebp - 0x30], eax
push 0x488a58
mov eax, esi
call fcn.00405d00
mov dword [ebp - 0x18], eax
push 0x488a60
mov eax, esi
call fcn.00405d00
mov dword [ebp - 0x1c], eax
push 0x488a64
mov eax, edi
call fcn.00405d00
mov edi, eax
push str.f_f8
mov eax, esi
call fcn.00405d00
mov dword [ebp - 0x34], eax
push 0x488a74
mov eax, esi
call fcn.00405d00
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x30]
cmp eax, ebx
je 0x409170
cmp dword [ebp - 0x18], ebx
je 0x409170
cmp dword [ebp - 0x1c], ebx
je 0x409170
cmp edi, ebx
je 0x409170
push 0x4a6d98
call fcn.004459f6
push eax
call fcn.0044ab28
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
push 0x4a6db4
call fcn.004459f6
push eax
call fcn.0044ab28
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
push 0x4a6dd0
call fcn.004459f6
push eax
call fcn.0044ab28
pop ecx
pop ecx
mov esi, 0x4a6dec
push esi
mov eax, edi
call fcn.004459f6
push eax
call fcn.0044ab28
mov eax, dword [ebp - 0x34]
cmp eax, ebx
pop ecx
pop ecx
je 0x409122
push 0x4a6e08
call fcn.004459f6
push eax
call fcn.0044ab28
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x40913b
push 0x4a6e24
call fcn.004459f6
push eax
call fcn.0044ab28
pop ecx
pop ecx
mov edi, 0x488a80
push edi
call fcn.0045c7b8
pop ecx
mov ecx, dword [0x4a6e00]
push edi
mov edi, eax
mov eax, esi
call fcn.0040b55c
test eax, eax
jne 0x40916c
mov byte [0x4a6eb1], 1
mov dword [0x4a6f00], 0x1f40
mov byte [ebp - 0xd], 1
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [ebp - 0x14], ebx
je 0x409187
push dword [ebp - 0x14]
call fcn.0045c98a
pop ecx
cmp dword [ebp + 0x18], 8
mov ecx, dword [ebp + 4]
jae 0x409193
lea ecx, [ebp + 4]
cmp dword [0x4a6e20], 8
mov eax, dword [0x4a6e0c]
jae 0x4091a6
mov eax, 0x4a6e0c
push ecx
push eax
push 0x488a8c
push 0x488a98
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
cmp byte [ebp - 0xf], bl
push ebx
push ebx
je 0x4091d2
cmp byte [ebp - 0xd], bl
je 0x4091cb
push 0x4c9
jmp 0x4091e1
push 0x4ce
jmp 0x4091e1
mov dword [0x4a6d50], 1
push 0x4c8
push dword [0x4a6744]
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
push 1
lea esi, [ebp]
call fcn.004049f4
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.004049f4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.0045c28f
add ebp, 0x7c
leave
ret