Function at 0x401f7b
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ec
and byte [ebp - 0x1ec], 0
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x1eb]
push 0x25
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xe8]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xe8], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ebx, dword [ebp + 8]
cmp byte [ebx], 0
jne 0x401ff4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.004023ac
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x493e0
jbe 0x401fc4
cmp byte [ebx], 0
jne 0x401ff4
mov dword [ebx + 0x594], 2
push esi
push ebx
call fcn.00402415
and byte [ebx + 0x5a4], 0
lea edi, [ebx + 0x104]
push edi
push 0x104
call fcn.0040407e
push edi
call fcn.00402415
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
lea edx, [ebx + 0x5a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.version.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov dword [ebp + 8], eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [ebp + 8]
dec edi
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [ebx + 0xbb0], 4
je 0x4020ba
mov edi, str.user.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [ebx + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or dword [ebx + 0xbb0], 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4021bd
mov edi, 0x406040
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [ebx + 0x104]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x104]
mov ecx, edx
push eax
lea eax, [ebp - 0xc]
and ecx, 3
push 0xa
push eax
push 0x407a44
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push str.SetTime
push str.UpdateTiming
call esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0xc]
push 0x4061c8
push eax
call edi
test eax, eax
jne 0x402128
or dword [ebx + 0xbb0], 0x20
lea eax, [ebx + 0x104]
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0x407a44
push str.WinStart
push str.UpdateTiming
call esi
lea eax, [ebp - 0xc]
push 0x4061c8
push eax
call edi
test eax, eax
jne 0x40215c
or dword [ebx + 0xbb0], 0x40
lea eax, [ebx + 0x104]
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0x407a44
push str.LogOn
push str.UpdateTiming
call esi
lea eax, [ebp - 0xc]
push 0x4061c8
push eax
call edi
test eax, eax
jne 0x402190
or byte [ebx + 0xbb0], 0x80
mov eax, dword [ebx + 0xbb0]
test al, 0xe0
jne 0x4021a2
or al, 0x10
mov dword [ebx + 0xbb0], eax
push str.SetUpdate.ini
push ebx
lea eax, [ebx + 0x104]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push str.SCMUpdate.ini
push ebx
lea eax, [ebx + 0x208]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
and byte [ebp - 0x54], 0
add esp, 0x10
xor eax, eax
lea edi, [ebp - 0x53]
push 0xf
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebx + 0x5a4]
push eax
lea eax, [ebp - 0x54]
push 0x40
push eax
push 0x407a44
push str.CAPSULE
push str.VERSION
call esi
test eax, eax
je 0x40222f
cmp byte [ebp - 0x54], 0
je 0x40222f
lea eax, [ebp - 0x54]
push 1
push eax
push str.1.3.18.7
call fcn.00403536
add esp, 0xc
test eax, eax
je 0x40222f
push ebx
call fcn.00402c6b
pop ecx
push ebx
call fcn.0040245e
mov dword [ebx + 0x598], eax
pop ecx
and dword [ebx + 0x59c], 0
lea eax, [ebx + 0x104]
lea edi, [ebx + 0x30c]
push eax
push 0x104
push edi
push 0x406184
push str.Place
push str.UserInfo
call esi
push edi
call fcn.00402415
test byte [ebx + 0xbb0], 1
pop ecx
mov dword [ebx + 0xbac], 1
je 0x4022c1
lea eax, [ebx + 0x104]
push eax
lea eax, [ebp - 0xc]
push 0xa
push eax
push 0x407a44
push str.VerType
push str.AutoUpdate
call esi
lea eax, [ebp - 0xc]
push 0x406158
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4022c1
push 2
pop eax
or dword [ebx + 0xba8], eax
mov dword [ebx + 0xbac], eax
push str.SCMUpdate.ini
push edi
lea eax, [ebp - 0x1ec]
push str._s_s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
cmp dword [ebp - 0xd8], 2
jne 0x40236b
cmp dword [ebp - 0xe4], 4
ja 0x40236b
mov esi, dword [sym.imp.USER32.dll_FindWindowA]
mov edi, str.Progman
push str.Program_Manager
push edi
call esi
test eax, eax
jne 0x402322
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
test byte [ebx + 0xbb0], 0x40
jne 0x40236b
push str.Program_Manager
push edi
jmp 0x402303
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x14]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40236b
lea eax, [ebp - 0x10]
push eax
push 0xa
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402368
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
push dword [ebp - 0x10]
call esi
push edi
call esi
lea eax, [ebp - 0x1ec]
push eax
push 0
push str.CAB_MODE
push str.UPDATE
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
pop esi
jne 0x402390
or dword [ebx + 0xba8], eax
cmp dword [ebp - 0xd8], 2
pop edi
pop ebx
jne 0x4023aa
cmp dword [ebp - 0xe4], 4
ja 0x4023aa
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
leave
ret