Function at 0x410270
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x250
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 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 + 0x55]
mov byte [esp + 0x54], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esi + 0x39]
xor ebx, ebx
test al, al
mov dword [esp + 0xc], esi
mov byte [esp + 0x18], 0
mov word [esp + 0x19], bx
je 0x4102e8
mov ecx, dword [esi + 0x244]
lea eax, [esi + 0x50]
push eax
push ecx
push str.CompsStoped
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, esi
call fcn.00410500
pop edi
pop esi
pop ebx
add esp, 0x250
ret
mov edx, dword [esi + 0x244]
push ebp
lea ebp, [esi + 0x244]
cmp dword [edx - 8], ebx
jne 0x410366
lea eax, [esi + 0x50]
lea ecx, [esp + 0x58]
push eax
push 0x208
push ecx
push 0x43babc
push str.CompsStoped
push str.Update
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x58]
test edx, edx
je 0x410332
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00402440
test eax, eax
je 0x410366
mov edi, dword [ebp]
mov ecx, ebx
mov edx, ecx
lea esi, [esp + 0x58]
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]
mov esi, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov ecx, dword [ebp]
mov byte [ecx + ebx], 0
push 0
push 0x3f2
mov ecx, esi
call fcn.0040cf90
mov ecx, 0x43be60
call fcn.004076c0
mov edx, dword [0x437348]
mov eax, str._RSCENTER_MCENTER_
test eax, eax
mov dword [esp + 0x18], edx
je 0x41039c
push str._RSCENTER_MCENTER_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp]
push ecx
mov ecx, dword [ecx - 8]
push ecx
push str._RSCENTER_MCENTER_
push eax
lea ecx, [esp + 0x28]
call fcn.004107f0
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.004022c0
lea ecx, [esp + 0x18]
call fcn.004024e0
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
je 0x41041a
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4103e9
mov edx, dword [0x43734c]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4103f0
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4103fe
mov eax, dword [ecx - 8]
push ecx
push eax
mov ecx, ebp
call fcn.00402510
jmp 0x410416
mov ecx, ebp
call fcn.00402400
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x14]
mov eax, dword [0x43734c]
lea edx, [ecx - 0xc]
cmp edx, eax
je 0x410444
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x410444
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004292c0
add esp, 4
mov eax, dword [esi + 0x30]
mov ebx, dword [eax]
cmp ebx, eax
je 0x4104c8
mov esi, dword [ebx + 8]
lea ecx, [esp + 0x20]
lea edi, [esi + 0xc8]
push edi
push 0x437340
push ecx
call fcn.00429590
mov eax, dword [ebp]
add esp, 0xc
mov ecx, dword [eax - 8]
test ecx, ecx
jl 0x4104bd
lea edx, [esp + 0x20]
push edx
push eax
call fcn.0042a63f
add esp, 8
test eax, eax
je 0x4104bd
sub eax, dword [ebp]
mov dword [esp + 0x18], eax
js 0x4104bd
push edi
mov ecx, 0x43d1f0
call fcn.004052c0
test eax, eax
je 0x4104bd
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.0040e5e0
lea ecx, [esp + 0x20]
push 0x437a2c
push ecx
mov ecx, ebp
call fcn.00409c20
mov edx, dword [esp + 0x10]
mov ebx, dword [ebx]
cmp ebx, dword [edx + 0x30]
jne 0x41044d
mov eax, dword [esp + 0x10]
add eax, 0x50
push eax
push 0x43babc
push str.Update
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionA]
mov esi, dword [esp + 0x10]
pop ebp
mov ecx, esi
call fcn.00410500
pop edi
pop esi
pop ebx
add esp, 0x250
ret