Function at 0x40efd0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x260
push ebx
push ebp
mov ebp, ecx
push edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 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 + 0x65]
mov byte [esp + 0x64], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [ebp + 0x39]
xor ebx, ebx
test al, al
mov dword [esp + 0xc], ebp
mov byte [esp + 0x20], 0
mov word [esp + 0x21], bx
je 0x40f048
mov ecx, dword [ebp + 0x244]
lea eax, [ebp + 0x50]
push eax
push ecx
push str.CompsStoped
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, ebp
call fcn.0040f3e0
pop edi
pop ebp
pop ebx
add esp, 0x260
ret
mov edx, dword [ebp + 0x244]
lea edi, [ebp + 0x244]
push esi
cmp dword [edx - 8], ebx
jne 0x40f0c7
lea eax, [ebp + 0x50]
lea ecx, [esp + 0x68]
push eax
push 0x208
push ecx
push 0x43965c
push str.CompsStoped
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x68]
test edx, edx
je 0x40f092
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00401e70
test eax, eax
je 0x40f0c7
mov edi, dword [edi]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x68]
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 + 0x244]
mov dword [eax - 8], ebx
mov ecx, dword [ebp + 0x244]
mov byte [ecx + ebx], 0
push 0
push 0x3f2
mov ecx, ebp
call fcn.0040c7c0
mov ecx, 0x439a00
call fcn.00407210
mov ecx, dword [ebp + 0x30]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x20], eax
je 0x40f3b9
jmp 0x40f0f6
mov eax, dword [esp + 0x20]
mov ebx, dword [eax + 8]
lea edx, [esp + 0x30]
lea esi, [ebx + 0xc8]
push esi
push 0x4350b0
push edx
call fcn.00426b7c
mov eax, dword [ebp + 0x244]
lea edi, [ebp + 0x244]
add esp, 0xc
mov dword [esp + 0x18], edi
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x40f3a4
lea ecx, [esp + 0x30]
push ecx
push eax
call fcn.00427aec
add esp, 8
test eax, eax
je 0x40f3a4
sub eax, dword [edi]
mov dword [esp + 0x2c], eax
js 0x40f3a4
push esi
mov ecx, 0x43ad68
call fcn.00405400
test eax, eax
je 0x40f3a4
lea edx, [esp + 0x24]
mov ecx, ebp
push edx
push ebx
call fcn.0040dd80
lea eax, [esp + 0x30]
test eax, eax
je 0x40f3a4
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
test ebx, ebx
je 0x40f3a4
mov edx, 0x43965c
test edx, edx
jne 0x40f19f
mov dword [esp + 0x1c], edx
jmp 0x40f1ae
push 0x43965c
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], edi
mov esi, dword [eax]
mov ebp, dword [esi - 8]
add ebp, esi
cmp esi, ebp
jae 0x40f3a0
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00427aec
add esp, 8
test eax, eax
je 0x40f1ef
lea edx, [esp + 0x30]
lea esi, [eax + ebx]
push edx
push esi
inc edi
call fcn.00427aec
add esp, 8
test eax, eax
jne 0x40f1d9
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp esi, ebp
jb 0x40f1c7
test edi, edi
mov dword [esp + 0x14], edi
jle 0x40f3a0
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x244]
lea ebp, [eax + 0x244]
cmp dword [esi - 0xc], 1
jle 0x40f24f
mov ecx, ebp
call fcn.00401e30
mov ecx, dword [esi - 8]
push ecx
mov ecx, ebp
call fcn.00401dd0
test eax, eax
je 0x40f24f
mov ecx, dword [esi - 8]
mov edi, dword [ebp]
inc ecx
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 edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
sub ebp, ebx
mov esi, dword [eax + 0x244]
imul ebp, edi
lea ecx, [eax + 0x244]
mov eax, dword [esi - 8]
mov dword [esp + 0x14], eax
add ebp, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x18], ecx
cmp eax, ebp
mov dword [esp + 0x2c], ebp
jl 0x40f286
cmp dword [esi - 0xc], 1
jle 0x40f2d3
lea edi, [esi - 0xc]
push ebp
mov dword [esp + 0x2c], edi
call fcn.00401dd0
test eax, eax
je 0x40f3a0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 0x18]
mov eax, ecx
mov edi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
mov eax, dword [0x4350bc]
cmp esi, eax
je 0x40f2d3
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f2d3
push esi
call fcn.00426ac0
add esp, 4
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 0x244]
lea eax, [ecx + 0x244]
mov eax, dword [esi - 8]
add eax, esi
cmp esi, eax
mov dword [esp + 0x18], eax
jae 0x40f38d
lea edx, [esp + 0x30]
push edx
push esi
call fcn.00427aec
mov edi, eax
add esp, 8
test edi, edi
je 0x40f376
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add eax, 0x244
mov esi, dword [esp + 0x1c]
lea ecx, [edi + ebx]
mov ebp, dword [eax]
lea eax, [edi + esi]
sub ebp, edi
mov dword [esp + 0x28], eax
sub ebp, ebx
add ebp, edx
push ebp
push ecx
push eax
call fcn.00427720
mov ecx, esi
mov esi, 0x43965c
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, edx
and ecx, 3
sub eax, ebx
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x3c]
push ecx
push esi
mov byte [esi + ebp], 0
mov ebp, dword [esp + 0x28]
add ebp, eax
mov dword [esp + 0x28], ebp
call fcn.00427aec
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x40f308
mov ebp, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x18]
cmp esi, eax
jb 0x40f2f4
mov edx, dword [esp + 0x10]
lea eax, [edx + 0x244]
mov eax, dword [edx + 0x244]
mov dword [eax - 8], ebp
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [ebp + 0x30]
cmp eax, ecx
mov dword [esp + 0x20], eax
jne 0x40f0f2
lea edx, [ebp + 0x50]
push edx
push 0x43965c
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
pop esi
mov ecx, ebp
call fcn.0040f3e0
pop edi
pop ebp
pop ebx
add esp, 0x260
ret