Function at 0x407210
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 + 0x111c]
test eax, eax
je 0x40749d
lea edi, [esi + 0x1120]
lea ebp, [esi + 0x1224]
push 0
push edi
push ebp
call fcn.00423550
add esp, 0xc
lea ebx, [esi + 0x4b6]
push str.CompsVer.inf
push str.Update
push ebx
push str._s_s_s
push edi
call fcn.00426b7c
push 0
push edi
push ebp
call fcn.00423550
add esp, 0x20
lea eax, [esp + 0x14]
lea ecx, [esi + 0xc7c]
push eax
push 0x20006
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40735d
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], eax
lea edx, [esp + 0x10]
lea eax, [esi + 0x23c]
push edx
push eax
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x10]
test edx, edx
je 0x407352
lea edi, [esi + 0x1328]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
not ecx
dec ecx
je 0x4072ea
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push str.IsUpSuccess
push edx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call ebp
mov ecx, dword [esp + 0x10]
push eax
push ebx
push 1
push 0
push str.installpath
push ecx
call edi
lea ebx, [esi + 0x1348]
push ebx
call ebp
mov edx, dword [esp + 0x10]
push eax
push ebx
push 1
push 0
push str.version
push edx
call edi
mov eax, dword [esi + 0x1110]
add eax, 0x28
push eax
call ebp
mov ecx, dword [esi + 0x1110]
mov edx, dword [esp + 0x10]
add ecx, 0x28
push eax
push ecx
push 1
push 0
push str.name
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ebx, [esi + 0x23c]
push ebx
push 0x435470
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x4073cb
lea ecx, [esp + 0x1c]
call fcn.00401370
push 0
lea ecx, [esp + 0x20]
call fcn.00401620
test eax, eax
je 0x4073c2
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 0x43965c
push str..exe
lea ecx, [esp + 0x30]
call fcn.00401a00
lea ecx, [esp + 0x1c]
call fcn.004018d0
lea ecx, [esp + 0x1c]
call fcn.00401580
push ebx
push 0x43534c
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40749d
mov ecx, 0x40
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], al
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00409010
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 0x40746e
push esi
call ebp
test eax, eax
je 0x40746e
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 0x40749d
push esi
call ebp
test eax, eax
je 0x40749d
push 0x5555
push 8
push 0x626
push esi
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret