Function at 0x409e30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x254
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, 0x439eb6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x409e5d
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x254
ret
mov ecx, dword [ebp + 0x160]
push 0x439c3c
push 0x439eb6
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x409e86
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x254
ret
mov eax, dword [0x439c28]
mov ecx, dword [ebp + 0x160]
mov esi, eax
xor ebx, ebx
mov edx, dword [ecx]
and esi, 0xff
mov bl, ah
push esi
push ebx
push 0x439db2
call dword [edx + 0x24]
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea esi, [ebp + 0x50]
mov byte [esp + 0x10], 0
stosb byte es:[edi], al
push esi
lea eax, [esp + 0x60]
push 0x208
push eax
push 0x43965c
push str.TailSetup
push str.INSTALL
mov word [esp + 0x29], 0
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x409ff1
mov eax, dword [ebp + 0x30]
mov ebx, dword [eax]
cmp ebx, eax
je 0x409fce
mov esi, dword [ebx + 8]
lea ecx, [esp + 0x24]
lea edi, [esi + 0xc8]
push edi
push 0x4350b0
push ecx
call fcn.00426b7c
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.00426bd0
add esp, 0x14
test eax, eax
je 0x409fbd
push esi
push 0x3ef
mov ecx, ebp
mov byte [esp + 0x18], 1
call fcn.0040c7c0
mov ecx, dword [ebp + 0x160]
lea eax, [esp + 0x10]
push eax
push 5
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
test eax, eax
je 0x409f94
mov al, byte [esp + 0x10]
test al, al
je 0x409f94
push 1
push edi
mov ecx, 0x43ad68
call fcn.00405430
mov ecx, dword [esp + 0x11]
mov edx, dword [esp + 0x10]
and ecx, 0xff
and edx, 0xff
push ecx
push edx
push edi
push str.TailSetup__s__d_R_d
push 0x4396a0
call fcn.00404420
add esp, 0x14
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x30]
cmp ebx, eax
jne 0x409f27
mov esi, dword [esp + 0x20]
push esi
push 0x43965c
push str.TailSetup
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x254
ret
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + 4]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
mov esi, dword [edi + 8]
push esi
call fcn.0040dcd0
lea ecx, [esi + 0xc8]
push ecx
push str.RsVPatch
call fcn.00427e70
add esp, 8
test eax, eax
je 0x40a02c
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
push esi
call fcn.0040d9c0
mov eax, dword [ebp + 0xc]
cmp edi, dword [eax]
jne 0x409ff4
push 0
push 0x3ed
mov ecx, ebp
call fcn.0040c7c0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
je 0x40a05c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x254
ret
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
cmp edi, eax
je 0x40a120
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40a110
mov esi, dword [edi + 8]
xor ecx, ecx
mov word [esp + 0x10], cx
lea eax, [esp + 0x10]
mov byte [esp + 0x12], cl
mov ecx, dword [ebp + 0x160]
push eax
push 1
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
mov al, byte [esp + 0x12]
test al, al
je 0x40a0b4
push esi
push 0x7d4
mov ecx, ebp
call fcn.0040c7c0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
mov ecx, dword [0x43b3bc]
and ecx, 0x10
test cl, cl
jne 0x40a0fb
mov edx, dword [esp + 0x11]
mov eax, dword [esp + 0x10]
and edx, 0xff
and eax, 0xff
push edx
add esi, 0xc8
push eax
push esi
push str.PreSetup__s__d_R_d
push 0x4396a0
call fcn.00404420
mov cl, byte [esp + 0x25]
mov al, byte [ebp + 0x39]
add esp, 0x14
or al, cl
mov byte [ebp + 0x39], al
mov edi, dword [edi]
mov eax, dword [ebp + 0xc]
cmp edi, eax
jne 0x40a069
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a120
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x254
ret
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
cmp edi, eax
je 0x40a20d
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40a48c
mov esi, dword [edi + 8]
mov ecx, ebp
push esi
push 0x3ed
call fcn.0040c7c0
test eax, eax
jne 0x40a16c
push str.Cancel_on_InstallComponent
push 0x4396a0
call fcn.00404420
add esp, 8
mov dword [esp + 0x18], 1
jmp 0x40a1f4
mov ecx, dword [ebp + 0x160]
xor edx, edx
mov word [esp + 0x10], dx
mov byte [esp + 0x12], dl
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edx
push esi
call dword [eax + 0xc]
mov al, byte [esp + 0x11]
test al, al
je 0x40a1b7
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp + 0x160]
xor eax, eax
mov word [esp + 0x10], ax
mov byte [esp + 0x12], al
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x11]
add esi, 0xc8
and ecx, 0xff
push ecx
push esi
push str.Install__s_R_d
push 0x4396a0
call fcn.00404420
mov edx, dword [0x43b3bc]
add esp, 0x10
and edx, 0x10
test dl, dl
jne 0x40a1f4
mov al, byte [esp + 0x11]
mov cl, byte [ebp + 0x39]
or cl, al
mov byte [ebp + 0x39], cl
mov edi, dword [edi]
mov eax, dword [ebp + 0xc]
cmp edi, eax
jne 0x40a12d
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40a48c
mov al, byte [ebp + 0x39]
test al, al
je 0x40a35e
mov ecx, dword [0x4350b8]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, 0x4356d4
mov dword [esp + 0x1c], ecx
test edx, edx
je 0x40a295
mov eax, edx
shr eax, 0x10
jne 0x40a249
xor ecx, ecx
mov cx, dx
push ecx
lea ecx, [esp + 0x20]
call fcn.00409820
jmp 0x40a295
push 0x4356d4
call ebx
mov esi, eax
test esi, esi
je 0x40a295
lea eax, [esi + 0xd]
push eax
call fcn.00426d08
add esp, 4
test eax, eax
je 0x40a295
mov dword [eax], 1
mov byte [eax + esi + 0xc], 0
mov ecx, esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
mov edx, ecx
mov esi, 0x4356d4
mov edi, eax
mov dword [esp + 0x1c], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
cmp edi, eax
je 0x40a308
mov esi, dword [edi + 8]
mov eax, 0x4356d4
test eax, eax
je 0x40a2b1
push 0x4356d4
call ebx
push 0x4356d4
push eax
lea ecx, [esp + 0x24]
call fcn.00404650
add esi, 0xc8
test esi, esi
jne 0x40a2ce
xor eax, eax
jmp 0x40a2d1
push esi
call ebx
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.00404650
mov ecx, 0x4356d4
test ecx, ecx
jne 0x40a2e9
xor eax, eax
jmp 0x40a2f0
push 0x4356d4
call ebx
push 0x4356d4
push eax
lea ecx, [esp + 0x24]
call fcn.00404650
mov edi, dword [edi]
mov eax, dword [ebp + 0xc]
cmp edi, eax
jne 0x40a29e
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push edx
push eax
push str.TailSetup
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x1c]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40a48c
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40a48c
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
jmp 0x40a48c
mov eax, dword [esp + 0x20]
push eax
push 0x43965c
push str.TailSetup
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
cmp ebx, eax
je 0x40a46b
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40a46b
mov esi, dword [ebx + 8]
xor ecx, ecx
mov word [esp + 0x10], cx
push esi
mov byte [esp + 0x16], cl
push 0x3ef
mov ecx, ebp
mov byte [esp + 0x18], 1
call fcn.0040c7c0
mov ecx, dword [ebp + 0x160]
lea eax, [esp + 0x10]
push eax
push 5
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
mov al, byte [esp + 0x10]
test al, al
je 0x40a3fe
lea edi, [esi + 0xc8]
push 1
push edi
mov ecx, 0x43ad68
call fcn.00405430
push str.RSCENTER
push edi
call fcn.00427e70
add esp, 8
test eax, eax
jne 0x40a417
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40a417
push esi
push 0x7d4
mov ecx, ebp
call fcn.0040c7c0
test eax, eax
jne 0x40a417
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x11]
mov edx, dword [esp + 0x10]
and ecx, 0xff
and edx, 0xff
push ecx
add esi, 0xc8
push edx
push esi
push str.TailSetup__s__d_R_d
push 0x4396a0
call fcn.00404420
mov eax, dword [0x43b3bc]
add esp, 0x14
and eax, 0x10
test al, al
jne 0x40a45e
mov cl, byte [esp + 0x11]
mov al, byte [ebp + 0x39]
or al, cl
mov byte [ebp + 0x39], al
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jne 0x40a385
mov al, byte [ebp + 0x39]
test al, al
je 0x40a48c
mov edx, dword [esp + 0x20]
push edx
push str.OnlyForReboot
push str.TailSetup
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0
push 0x3ef
mov ecx, ebp
call fcn.0040c7c0
test eax, eax
jne 0x40a4a8
mov dword [esp + 0x18], 1
jmp 0x40a4b0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40a4ec
cmp dword [0x43b3b8], 3
jne 0x40a4ec
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x40a4ec
mov edi, dword [esi + 8]
mov ecx, ebp
push edi
push 0x3ee
call fcn.0040c7c0
mov ecx, dword [ebp + 0x160]
lea edx, [esp + 0x10]
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [esi]
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x40a4c2
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x254
ret