Function at 0x40a6d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x258
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 0x40a6fd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x258
ret
mov ecx, dword [ebp + 0x160]
push 0x439c3c
push 0x43ae74
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [ebp + 0x160]
xor esi, esi
push esi
push esi
mov edx, dword [ecx]
push 0x43ad70
call dword [edx + 0x24]
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], 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 + 0x61]
mov byte [esp + 0x60], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ebx, [ebp + 0x50]
mov dword [esp + 0x20], esi
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x64]
push 0x208
push eax
push 0x43965c
push str.TailUpdate
push str.INSTALL
mov byte [esp + 0x2c], 0
mov word [esp + 0x2d], si
mov dword [esp + 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a825
mov eax, dword [ebp + 0x30]
mov edi, dword [eax]
cmp edi, eax
je 0x40a802
mov esi, dword [edi + 8]
lea edx, [esp + 0x28]
lea ecx, [esi + 0xc8]
push ecx
push 0x4350b0
push edx
call fcn.00426b7c
add esp, 0xc
mov ecx, ebp
push esi
push 0x3f1
call fcn.0040c7c0
lea eax, [esp + 0x28]
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00426bd0
add esp, 8
test eax, eax
je 0x40a7f9
mov ecx, dword [ebp + 0x160]
lea eax, [esp + 0x14]
mov byte [esp + 0x14], 1
push eax
mov edx, dword [ecx]
push 4
push esi
call dword [edx + 0x18]
mov edi, dword [edi]
mov eax, dword [ebp + 0x30]
cmp edi, eax
jne 0x40a7a2
push ebx
push 0x43965c
push str.TailUpdate
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x258
ret
mov ecx, ebp
call fcn.0040f600
cmp dword [ebp + 0x1c], esi
jne 0x40a83e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x258
ret
mov edi, dword [ebp + 0x18]
mov edi, dword [edi + 4]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
mov esi, dword [edi + 8]
push esi
call fcn.0040dcd0
test eax, eax
je 0x40a897
mov edx, dword [0x43b3bc]
and edx, 0x10
test dl, dl
jne 0x40a871
mov al, byte [esp + 0x15]
mov cl, byte [ebp + 0x39]
or cl, al
mov byte [ebp + 0x39], cl
lea ecx, [esp + 0x14]
push ecx
push esi
mov ecx, ebp
call fcn.0040d9c0
mov edx, dword [0x43b3bc]
and edx, 0x10
test dl, dl
jne 0x40a897
mov al, byte [esp + 0x15]
mov cl, byte [ebp + 0x39]
or cl, al
mov byte [ebp + 0x39], cl
mov ecx, dword [ebp + 0x18]
cmp edi, dword [ecx]
jne 0x40a841
xor eax, eax
mov bl, 1
jmp 0x40a8a8
mov eax, dword [esp + 0x1c]
cmp bl, 1
jne 0x40a945
mov edx, eax
inc eax
cmp edx, 0xa
mov dword [esp + 0x1c], eax
jae 0x40a945
mov esi, dword [ebp + 0x18]
xor bl, bl
mov esi, dword [esi + 4]
xor eax, eax
mov ecx, ebp
mov edi, dword [esi + 8]
mov word [esp + 0x14], ax
push edi
push 0x3f1
mov byte [esp + 0x1e], al
call fcn.0040c7c0
mov ecx, dword [ebp + 0x160]
lea eax, [esp + 0x14]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x10]
add edi, 0xc8
push 1
push edi
mov ecx, 0x43ad68
call fcn.00405430
mov cl, byte [esp + 0x15]
or bl, cl
mov ecx, dword [ebp + 0x18]
cmp esi, dword [ecx]
jne 0x40a8c6
push 0
push 0x3f1
mov ecx, ebp
call fcn.0040c7c0
mov esi, eax
neg esi
sbb esi, esi
inc esi
test bl, bl
mov dword [esp + 0x20], esi
je 0x40a93d
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x40a8a4
mov edx, dword [0x43b3bc]
and edx, 0x10
test dl, dl
jne 0x40a955
or byte [ebp + 0x39], bl
mov al, byte [ebp + 0x39]
test al, al
je 0x40ab6c
test bl, bl
jne 0x40ac40
mov eax, dword [0x4350b8]
mov ecx, 0x4356d4
test ecx, ecx
mov dword [esp + 0x10], eax
je 0x40a9ca
mov edx, ecx
shr edx, 0x10
jne 0x40a992
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00409820
jmp 0x40a9ca
push 0x4356d4
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40a9ca
push esi
lea ecx, [esp + 0x14]
call fcn.00401dd0
test eax, eax
je 0x40a9ca
mov edi, dword [esp + 0x10]
mov ecx, esi
mov edx, ecx
mov esi, 0x4356d4
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 + 0x18]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
je 0x40ab16
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esp + 0x1c]
mov ecx, 0x4356d4
test ecx, ecx
mov esi, dword [eax + 8]
jne 0x40a9f5
xor eax, eax
jmp 0x40a9fc
push 0x4356d4
call ebx
push 0x4356d4
push eax
lea ecx, [esp + 0x18]
call fcn.00404650
add esi, 0xc8
test esi, esi
je 0x40aa7b
push esi
call ebx
test eax, eax
je 0x40aa7b
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea ebx, [edx - 0xc]
cmp ecx, 1
jg 0x40aa61
mov edi, dword [edx - 8]
lea ecx, [edi + eax]
cmp ecx, dword [edx - 4]
jg 0x40aa61
mov ecx, eax
add edi, edx
mov edx, ecx
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 + 0x10]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov byte [ecx + eax], 0
jmp 0x40aa7b
push esi
push eax
push edx
mov edx, dword [edx - 8]
push edx
lea ecx, [esp + 0x20]
call fcn.0040f800
test eax, eax
je 0x40aa7b
push ebx
call fcn.00409490
mov eax, 0x4356d4
test eax, eax
je 0x40aafb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x40ab01
mov edx, dword [esp + 0x10]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x40aadb
mov edi, dword [edx - 8]
lea ecx, [edi + eax]
cmp ecx, dword [edx - 4]
jg 0x40aadb
mov ecx, eax
add edi, edx
mov edx, ecx
mov esi, 0x4356d4
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 + 0x10]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov byte [ecx + eax], 0
jmp 0x40ab01
push 0x4356d4
push eax
push edx
mov edx, dword [edx - 8]
push edx
lea ecx, [esp + 0x20]
call fcn.0040f800
test eax, eax
je 0x40ab01
push esi
call fcn.00409490
jmp 0x40ab01
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax]
cmp eax, ecx
mov dword [esp + 0x1c], eax
jne 0x40a9e1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push ecx
push edx
push str.TailUpdate
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4350bc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40ac40
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40ac40
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00426ac0
add esp, 4
jmp 0x40ac40
mov eax, dword [esp + 0x24]
push eax
push 0x43965c
push str.TailUpdate
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [ebp + 0x18]
mov edi, dword [eax]
cmp edi, eax
je 0x40ac40
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40ac40
mov esi, dword [edi + 8]
mov ecx, ebp
push esi
push 0x3f2
call fcn.0040c7c0
xor ecx, ecx
lea eax, [esp + 0x14]
mov word [esp + 0x14], cx
push eax
mov byte [esp + 0x1a], cl
mov ecx, dword [ebp + 0x160]
push 4
push esi
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esp + 0x15]
mov edx, dword [esp + 0x14]
and ecx, 0xff
and edx, 0xff
push ecx
lea eax, [esi + 0xc8]
push edx
push eax
push str.TailUpdate__s__d_R_d
push 0x4396a0
call fcn.00404420
mov al, byte [esp + 0x2a]
add esp, 0x14
test al, al
je 0x40ac1a
push esi
push 0x7d7
mov ecx, ebp
call fcn.0040c7c0
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [0x43b3bc]
and ecx, 0x10
test cl, cl
jne 0x40ac33
mov dl, byte [esp + 0x15]
mov al, byte [ebp + 0x39]
or al, dl
mov byte [ebp + 0x39], al
mov edi, dword [edi]
mov eax, dword [ebp + 0x18]
cmp edi, eax
jne 0x40ab93
mov ecx, dword [esp + 0x20]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x258
ret