Function at 0x40f800
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x250
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x55]
mov byte [esp + 0x54], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.CompsVer.inf
push 0x43d2fc
lea eax, [esp + 0x5c]
push str._s_s
push eax
call fcn.00429590
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x169]
mov byte [esp + 0x168], bl
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x158]
stosw word es:[edi], ax
push str.CompsVer.inf
push 0x43c41a
push str._s_s
push ecx
stosb byte es:[edi], al
call fcn.00429590
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x25]
mov byte [esp + 0x24], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x54]
stosb byte es:[edi], al
push edx
lea eax, [esp + 0x38]
push 0x20
push eax
push 0x43babc
push str.Version
push str.UPDATE
call esi
lea ecx, [esp + 0x158]
lea edx, [esp + 0x14]
push ecx
push 0x20
push edx
push 0x43babc
push str.Version
push str.UPDATE
call esi
lea esi, [esp + 0x14]
lea eax, [esp + 0x34]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40f90b
cmp cl, bl
je 0x40f907
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40f90b
add eax, 2
add esi, 2
cmp cl, bl
jne 0x40f8e7
xor eax, eax
jmp 0x40f910
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jle 0x40fa28
mov eax, dword [0x437348]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
push 0x75
push ecx
mov dword [esp + 0x18], eax
call fcn.004249d0
add esp, 0xc
lea edx, [esp + 0x14]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
push eax
push ecx
lea eax, [esp + 0x18]
push edx
push eax
call fcn.004025c0
mov ecx, dword [esp + 0x20]
push ebx
push 0x40024
push ecx
call fcn.00424c50
add esp, 0x20
cmp eax, 7
mov eax, dword [esp + 0x10]
jne 0x40f9d0
mov ecx, dword [0x43734c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x40f999
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40f999
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f9c4
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40f9c4
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x250
ret
mov edx, dword [0x43734c]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40f9fd
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40f9fd
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
mov eax, dword [esp + 0xc]
mov edx, dword [0x43734c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40fa28
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x40fa28
mov edx, dword [esp + 0xc]
add edx, 0xfffffff4
push edx
call fcn.004292c0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x250
ret