Function at 0x40add0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x258
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 0x40adfd
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x258
ret
mov ecx, dword [ebp + 0x160]
push 0x43c09c
push 0x43d2fc
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 0x43d1f8
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 0x43babc
push str.TailUpdate
push str.INSTALL
mov byte [esp + 0x28], 0
mov word [esp + 0x29], 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 0x40af42
mov eax, dword [ebp + 0x30]
mov edi, dword [eax]
cmp edi, eax
je 0x40af1f
mov esi, dword [edi + 8]
lea edx, [esp + 0x28]
lea ecx, [esi + 0xc8]
push ecx
push 0x437340
push edx
call fcn.00429590
add esp, 0xc
mov ecx, ebp
push esi
push 0x3f1
call fcn.0040cf90
lea eax, [esp + 0x28]
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.004295f0
add esp, 8
test eax, eax
je 0x40af16
mov ecx, dword [ebp + 0x160]
lea eax, [esp + 0x10]
mov byte [esp + 0x10], 1
push eax
mov edx, dword [ecx]
push 4
push esi
call dword [edx + 0x18]
mov al, byte [esp + 0x12]
test al, al
jne 0x40af09
mov al, byte [esp + 0x10]
test al, al
jne 0x40af16
push esi
push 0x7d7
mov ecx, ebp
call fcn.0040cf90
mov edi, dword [edi]
mov eax, dword [ebp + 0x30]
cmp edi, eax
jne 0x40aea2
push ebx
push 0x43babc
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
cmp dword [ebp + 0x1c], esi
jne 0x40af54
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 + 0x10]
push ecx
mov ecx, ebp
mov esi, dword [edi + 8]
push esi
call fcn.0040e4f0
test eax, eax
je 0x40afad
mov edx, dword [0x43d84c]
and edx, 0x10
test dl, dl
jne 0x40af87
mov al, byte [esp + 0x11]
mov cl, byte [ebp + 0x39]
or cl, al
mov byte [ebp + 0x39], cl
lea ecx, [esp + 0x10]
push ecx
push esi
mov ecx, ebp
call fcn.0040e1c0
mov edx, dword [0x43d84c]
and edx, 0x10
test dl, dl
jne 0x40afad
mov al, byte [esp + 0x11]
mov cl, byte [ebp + 0x39]
or cl, al
mov byte [ebp + 0x39], cl
mov ecx, dword [ebp + 0x18]
cmp edi, dword [ecx]
jne 0x40af57
xor eax, eax
mov bl, 1
jmp 0x40afbe
mov eax, dword [esp + 0x1c]
cmp bl, 1
jne 0x40b05b
mov edx, eax
inc eax
cmp edx, 0xa
mov dword [esp + 0x1c], eax
jae 0x40b05b
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 + 0x10], ax
push edi
push 0x3f1
mov byte [esp + 0x1a], al
call fcn.0040cf90
mov ecx, dword [ebp + 0x160]
lea eax, [esp + 0x10]
push eax
push edi
mov edx, dword [ecx]
call dword [edx + 0x10]
add edi, 0xc8
push 1
push edi
mov ecx, 0x43d1f0
call fcn.004052f0
mov cl, byte [esp + 0x11]
or bl, cl
mov ecx, dword [ebp + 0x18]
cmp esi, dword [ecx]
jne 0x40afdc
push 0
push 0x3f1
mov ecx, ebp
call fcn.0040cf90
mov esi, eax
neg esi
sbb esi, esi
inc esi
test bl, bl
mov dword [esp + 0x20], esi
je 0x40b053
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
test esi, esi
je 0x40afba
mov edx, dword [0x43d84c]
and edx, 0x10
test dl, dl
jne 0x40b06b
or byte [ebp + 0x39], bl
mov al, byte [ebp + 0x39]
test al, al
je 0x40b282
test bl, bl
jne 0x40b35e
mov eax, dword [0x437348]
mov ecx, 0x437a2c
test ecx, ecx
mov dword [esp + 0x18], eax
je 0x40b0e0
mov edx, ecx
shr edx, 0x10
jne 0x40b0a8
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x18]
push eax
call fcn.00409ea0
jmp 0x40b0e0
push 0x437a2c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x40b0e0
push esi
lea ecx, [esp + 0x1c]
call fcn.004023a0
test eax, eax
je 0x40b0e0
mov edi, dword [esp + 0x18]
mov ecx, esi
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 eax, dword [ebp + 0x18]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
je 0x40b22c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov eax, dword [esp + 0x1c]
mov ecx, 0x437a2c
test ecx, ecx
mov esi, dword [eax + 8]
jne 0x40b10b
xor eax, eax
jmp 0x40b112
push 0x437a2c
call ebx
push 0x437a2c
push eax
lea ecx, [esp + 0x20]
call fcn.00404520
add esi, 0xc8
test esi, esi
je 0x40b191
push esi
call ebx
test eax, eax
je 0x40b191
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
lea ebx, [edx - 0xc]
cmp ecx, 1
jg 0x40b177
mov edi, dword [edx - 8]
lea ecx, [edi + eax]
cmp ecx, dword [edx - 4]
jg 0x40b177
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 + 0x18]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
mov byte [ecx + eax], 0
jmp 0x40b191
push esi
push eax
push edx
mov edx, dword [edx - 8]
push edx
lea ecx, [esp + 0x28]
call fcn.004107f0
test eax, eax
je 0x40b191
push ebx
call fcn.00409b10
mov eax, 0x437a2c
test eax, eax
je 0x40b211
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
test eax, eax
je 0x40b217
mov edx, dword [esp + 0x18]
mov ecx, dword [edx - 0xc]
lea esi, [edx - 0xc]
cmp ecx, 1
jg 0x40b1f1
mov edi, dword [edx - 8]
lea ecx, [edi + eax]
cmp ecx, dword [edx - 4]
jg 0x40b1f1
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 + 0x18]
mov edx, dword [ecx - 8]
add edx, eax
mov dword [ecx - 8], edx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax - 8]
mov byte [ecx + eax], 0
jmp 0x40b217
push 0x437a2c
push eax
push edx
mov edx, dword [edx - 8]
push edx
lea ecx, [esp + 0x28]
call fcn.004107f0
test eax, eax
je 0x40b217
push esi
call fcn.00409b10
jmp 0x40b217
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 0x40b0f7
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
push ecx
push edx
push str.TailUpdate
push str.INSTALL
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov eax, dword [esp + 0x18]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b35e
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40b35e
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
jmp 0x40b35e
mov eax, dword [esp + 0x24]
push eax
push 0x43babc
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 0x40b35e
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40b35e
mov esi, dword [edi + 8]
mov ecx, ebp
push esi
push 0x3f2
call fcn.0040cf90
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 4
push esi
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esp + 0x11]
mov edx, dword [esp + 0x10]
and ecx, 0xff
and edx, 0xff
push ecx
lea eax, [esi + 0xc8]
push edx
push eax
push str.TailUpdate__s__d_R_d
push 0x43bb00
call fcn.004042f0
mov al, byte [esp + 0x26]
add esp, 0x14
test al, al
jne 0x40b322
mov al, byte [esp + 0x10]
test al, al
jne 0x40b338
push esi
push 0x7d7
mov ecx, ebp
call fcn.0040cf90
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x20], eax
mov ecx, dword [0x43d84c]
and ecx, 0x10
test cl, cl
jne 0x40b351
mov dl, byte [esp + 0x11]
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 0x40b2a9
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