Function at 0x40a4b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x45c
xor eax, eax
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov edi, 0x43c316
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x40a4dd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x45c
ret
mov ecx, dword [ebp + 0x160]
push 0x43c09c
push 0x43c316
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [0x43c088]
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 0x43c212
call dword [edx + 0x24]
xor ebx, ebx
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
mov byte [esp + 0x5c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x103
xor eax, eax
lea edi, [esp + 0x5d]
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x50]
mov byte [esp + 0x10], bl
mov dword [esp + 0x20], eax
push eax
lea eax, [esp + 0x60]
push 0x410
push eax
push 0x43babc
push str.TailSetup
push str.INSTALL
mov word [esp + 0x29], bx
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 0x40a677
mov eax, dword [ebp + 0x30]
mov ebx, dword [eax]
cmp ebx, eax
je 0x40a650
mov esi, dword [ebx + 8]
lea ecx, [esp + 0x24]
lea edi, [esi + 0xc8]
push edi
push 0x437340
push ecx
call fcn.00429590
lea edx, [esp + 0x30]
lea eax, [esp + 0x68]
push edx
push eax
call fcn.004295f0
add esp, 0x14
test eax, eax
je 0x40a63d
push esi
push 0x3ef
mov ecx, ebp
mov byte [esp + 0x18], 1
call fcn.0040cf90
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 0x40a603
mov al, byte [esp + 0x10]
test al, al
je 0x40a603
push 1
push edi
mov ecx, 0x43d1f0
call fcn.004052f0
jmp 0x40a614
push esi
push 0x7d4
mov ecx, ebp
call fcn.0040cf90
test eax, eax
je 0x40a64c
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 0x43bb00
call fcn.004042f0
add esp, 0x14
mov ebx, dword [ebx]
mov eax, dword [ebp + 0x30]
cmp ebx, eax
jne 0x40a594
jmp 0x40a650
mov byte [ebp + 0x38], 0
mov eax, dword [esp + 0x20]
push eax
push 0x43babc
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, 0x45c
ret
cmp dword [ebp + 0x10], ebx
jne 0x40a689
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x45c
ret
mov ecx, dword [0x43d84c]
and ecx, 8
test cl, cl
jne 0x40a7ac
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
mov ecx, ebp
mov edi, dword [esi + 8]
push edi
call fcn.0040e4f0
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
push edi
call fcn.0040e1c0
mov ecx, dword [ebp + 0xc]
cmp esi, dword [ecx]
jne 0x40a69d
push ebx
push 0x3ed
mov ecx, ebp
call fcn.0040cf90
mov edi, eax
neg edi
sbb edi, edi
inc edi
mov dword [esp + 0x18], edi
je 0x40a6ee
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x45c
ret
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
cmp ebx, eax
je 0x40a798
test edi, edi
jne 0x40a79c
mov esi, dword [ebx + 8]
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 1
push esi
call dword [eax + 0x18]
mov al, byte [esp + 0x12]
test al, al
je 0x40a744
push esi
push 0x7d4
mov ecx, ebp
call fcn.0040cf90
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x18], eax
mov edi, eax
mov eax, dword [0x43d84c]
and eax, 0x10
test al, al
jne 0x40a78b
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.PreSetup__s__d_R_d
push 0x43bb00
call fcn.004042f0
mov al, byte [esp + 0x25]
mov cl, byte [ebp + 0x39]
add esp, 0x14
or cl, al
mov byte [ebp + 0x39], cl
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jne 0x40a6fb
test edi, edi
je 0x40a7ac
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x45c
ret
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
cmp edi, eax
je 0x40a899
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40ab93
mov esi, dword [edi + 8]
mov ecx, ebp
push esi
push 0x3ed
call fcn.0040cf90
test eax, eax
jne 0x40a7f8
push str.Cancel_on_InstallComponent
push 0x43bb00
call fcn.004042f0
add esp, 8
mov dword [esp + 0x18], 1
jmp 0x40a880
xor ecx, ecx
lea eax, [esp + 0x10]
mov word [esp + 0x10], cx
push eax
mov byte [esp + 0x16], cl
mov ecx, dword [ebp + 0x160]
push esi
mov edx, dword [ecx]
call dword [edx + 0xc]
mov al, byte [esp + 0x11]
test al, al
je 0x40a843
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
lea eax, [esp + 0x10]
mov word [esp + 0x10], cx
push eax
mov byte [esp + 0x16], cl
mov ecx, dword [ebp + 0x160]
push esi
mov edx, dword [ecx]
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 0x43bb00
call fcn.004042f0
mov edx, dword [0x43d84c]
add esp, 0x10
and edx, 0x10
test dl, dl
jne 0x40a880
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 0x40a7b9
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40ab93
mov ecx, 0x43be60
call fcn.00409960
test eax, eax
je 0x40a8ab
mov byte [ebp + 0x39], 1
mov al, byte [ebp + 0x39]
test al, al
je 0x40aa65
mov ecx, dword [0x437348]
mov edx, 0x437a2c
test edx, edx
mov dword [esp + 0x1c], ecx
je 0x40a931
mov eax, edx
shr eax, 0x10
jne 0x40a8e1
xor ecx, ecx
mov cx, dx
push ecx
lea ecx, [esp + 0x20]
call fcn.00409ea0
jmp 0x40a931
push 0x437a2c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40a931
lea eax, [esi + 0xd]
push eax
call fcn.00429728
add esp, 4
test eax, eax
je 0x40a931
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, 0x437a2c
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 ebx, dword [eax]
cmp ebx, eax
je 0x40aa0f
mov esi, dword [ebx + 8]
mov eax, 0x437a2c
test eax, eax
jne 0x40a952
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jmp 0x40a95f
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x437a2c
call edi
push 0x437a2c
push eax
lea ecx, [esp + 0x24]
call fcn.00404520
add esi, 0xc8
test esi, esi
jne 0x40a97c
xor eax, eax
jmp 0x40a97f
push esi
call edi
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.00404520
mov ecx, 0x437a2c
test ecx, ecx
je 0x40aa02
push ecx
call edi
test eax, eax
je 0x40aa02
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x40a9e4
mov edi, dword [edx - 8]
lea ecx, [eax + edi]
cmp ecx, dword [edx - 4]
jg 0x40a9e4
mov ecx, eax
add edi, edx
mov edx, ecx
mov esi, 0x437a2c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax - 8]
mov byte [ecx + eax], 0
jmp 0x40aa02
push 0x437a2c
push eax
push edx
mov edx, dword [edx - 8]
push edx
lea ecx, [esp + 0x2c]
call fcn.004107f0
test eax, eax
je 0x40aa02
push esi
call fcn.00409b10
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jne 0x40a93e
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push str.TailSetup
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x43734c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40ab93
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40ab93
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
jmp 0x40ab93
mov ecx, dword [esp + 0x20]
push ecx
push 0x43babc
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 0x40ab72
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40ab72
mov esi, dword [ebx + 8]
xor edx, edx
mov word [esp + 0x10], dx
push esi
push 0x3ef
mov ecx, ebp
mov byte [esp + 0x1a], dl
mov byte [esp + 0x18], 1
call fcn.0040cf90
mov ecx, dword [ebp + 0x160]
lea edx, [esp + 0x10]
push edx
push 5
mov eax, dword [ecx]
push esi
call dword [eax + 0x18]
mov al, byte [esp + 0x10]
test al, al
je 0x40ab05
lea edi, [esi + 0xc8]
push 1
push edi
mov ecx, 0x43d1f0
call fcn.004052f0
push str.RSCENTER
push edi
call fcn.0042a9c0
add esp, 8
test eax, eax
jne 0x40ab1e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ab1e
push esi
push 0x7d4
mov ecx, ebp
call fcn.0040cf90
test eax, eax
jne 0x40ab1e
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x11]
mov ecx, dword [esp + 0x10]
and eax, 0xff
and ecx, 0xff
push eax
add esi, 0xc8
push ecx
push esi
push str.TailSetup__s__d_R_d
push 0x43bb00
call fcn.004042f0
mov edx, dword [0x43d84c]
add esp, 0x14
and edx, 0x10
test dl, dl
jne 0x40ab65
mov al, byte [esp + 0x11]
mov cl, byte [ebp + 0x39]
or cl, al
mov byte [ebp + 0x39], cl
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jne 0x40aa8c
mov al, byte [ebp + 0x39]
test al, al
je 0x40ab93
mov ecx, dword [esp + 0x20]
push ecx
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.0040cf90
test eax, eax
jne 0x40abaf
mov dword [esp + 0x18], 1
jmp 0x40abb7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40abf3
cmp dword [0x43d848], 3
jne 0x40abf3
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
cmp esi, eax
je 0x40abf3
mov edi, dword [esi + 8]
mov ecx, ebp
push edi
push 0x3ee
call fcn.0040cf90
mov ecx, dword [ebp + 0x160]
lea eax, [esp + 0x10]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x14]
mov esi, dword [esi]
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x40abc9
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x45c
ret