Function at 0x4076c0
Capabilities:
Read .ini file
Set registry value

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1140]
test eax, eax
je 0x4079c5
lea ebx, [esi + 0x4b6]
push str.CompsVer.inf
lea edi, [esi + 0x1144]
push ebx
push str._s_s
push edi
call fcn.00429590
lea ebp, [esi + 0x1248]
push 0
push edi
push ebp
call fcn.00425b10
add esp, 0x1c
push str.CompsVer.inf
push str.Update
push ebx
push str._s_s_s
push edi
call fcn.00429590
push 0
push edi
push ebp
call fcn.00425b10
add esp, 0x20
lea eax, [esp + 0x14]
lea ecx, [esi + 0xca0]
push eax
push 0x20006
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407885
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
lea ebp, [esi + 0x23c]
push edx
push ebp
push eax
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40787a
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esi + 0xc95]
test al, al
je 0x4077b6
lea ecx, [esp + 0x1c]
push 0x104
push ecx
push 0
push ebp
call fcn.004073f0
add esp, 0x10
jmp 0x4077c2
lea edx, [esp + 0x1c]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x1c]
push eax
push ecx
push 1
push 0
push str.datapath
push edx
call ebp
lea edi, [esi + 0x134c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x407812
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.IsUpSuccess
push ecx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
mov edx, dword [esp + 0x10]
push eax
push ebx
push 1
push 0
push str.installpath
push edx
call ebp
lea ebx, [esi + 0x136c]
push ebx
call edi
push eax
mov eax, dword [esp + 0x14]
push ebx
push 1
push 0
push str.version
push eax
call ebp
mov ecx, dword [esi + 0x1134]
add ecx, 0x28
push ecx
call edi
mov edx, dword [esi + 0x1134]
push eax
mov eax, dword [esp + 0x14]
add edx, 0x28
push edx
push 1
push 0
push str.name
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [esi + 0x23c]
push ebx
push 0x4377d4
call fcn.0042a9c0
add esp, 8
test eax, eax
jne 0x4078f3
lea ecx, [esp + 0x1c]
call fcn.00401940
push 0
lea ecx, [esp + 0x20]
call fcn.00401bf0
test eax, eax
je 0x4078ea
mov edi, str.VersionChange
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push str.VersionChange
push 0xc8
push 0x43babc
push str..exe
lea ecx, [esp + 0x30]
call fcn.00401fd0
lea ecx, [esp + 0x1c]
call fcn.00401ea0
lea ecx, [esp + 0x1c]
call fcn.00401b50
push ebx
push 0x43762c
call fcn.0042a9c0
add esp, 8
test eax, eax
jne 0x4079c5
mov ecx, 0x40
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], al
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.00409610
mov edi, str._rfw.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0
push str.RfwMain
push str.WINHANDLE
call edi
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
mov esi, eax
test esi, esi
je 0x407996
push esi
call ebp
test eax, eax
je 0x407996
push 0x5555
push 8
push 0x626
push esi
call ebx
lea ecx, [esp + 0x1c]
push ecx
push 0
push str.RfwCfg
push str.WINHANDLE
call edi
mov esi, eax
test esi, esi
je 0x4079c5
push esi
call ebp
test eax, eax
je 0x4079c5
push 0x5555
push 8
push 0x626
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret