Function at 0x406000
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41fad7
push eax
mov eax, 0x2734
mov dword fs:[0], esp
call fcn.0041a120
push ebx
push esi
mov edx, ecx
push edi
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
mov ecx, edx
push eax
call fcn.00405990
mov eax, dword [eax]
lea ecx, [esp + 0x30]
push eax
push 0x2710
push ecx
push str.custom
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov eax, dword [esp + 0x10]
mov ecx, dword [0x425060]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x406084
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x406084
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00419d30
add esp, 4
mov cl, byte [esp + 0x1b]
xor eax, eax
mov byte [esp + 0x1c], cl
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push eax
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2750], eax
call fcn.00407830
mov edx, dword [esp + 0x2750]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
push eax
push ecx
mov ecx, edx
call fcn.00407830
mov edx, dword [esp + 0x2754]
mov eax, dword [edx + 8]
mov ecx, dword [edx + 4]
push eax
push ecx
mov ecx, edx
call fcn.00407830
mov al, byte [esp + 0x30]
lea ebx, [esp + 0x30]
test al, al
je 0x406275
push ebp
mov ebp, dword [sym.imp.USER32.dll_CharNextA]
mov edx, dword [0x42505c]
test ebx, ebx
mov dword [esp + 0x10], edx
je 0x406143
mov eax, ebx
shr eax, 0x10
jne 0x406117
mov eax, ebx
lea ecx, [esp + 0x10]
and eax, 0xffff
push eax
call fcn.00408250
jmp 0x406143
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x406143
push esi
lea ecx, [esp + 0x14]
call fcn.004037d0
test eax, eax
je 0x406143
mov ecx, dword [esp + 0x10]
push esi
inc esi
push ebx
push esi
push ecx
call fcn.00407120
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x274c], 1
call fcn.00408780
mov edi, dword [esp + 0x10]
mov dl, byte [edi]
mov byte [esp + 0x14], dl
mov eax, dword [esp + 0x14]
and eax, 0xff
push eax
call fcn.0041a495
add esp, 4
test eax, eax
je 0x406196
push edi
call ebp
mov edi, eax
mov cl, byte [edi]
mov byte [esp + 0x14], cl
mov edx, dword [esp + 0x14]
and edx, 0xff
push edx
call fcn.0041a495
add esp, 4
test eax, eax
jne 0x406174
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 8]
mov edx, dword [eax - 4]
sub esi, edi
add esi, eax
inc edx
lea ecx, [esi + 1]
push ecx
push edi
push edx
push eax
call fcn.00407150
mov eax, dword [esp + 0x20]
add esp, 0x10
lea ecx, [esp + 0x10]
mov dword [eax - 8], esi
call fcn.00408780
mov edi, dword [esp + 0x10]
xor esi, esi
cmp byte [edi], 0
je 0x406214
mov cl, byte [edi]
mov byte [esp + 0x18], cl
mov edx, dword [esp + 0x18]
and edx, 0xff
push edx
call fcn.0041a495
add esp, 4
test eax, eax
je 0x4061f4
test esi, esi
jne 0x4061f6
mov esi, edi
jmp 0x4061f6
xor esi, esi
push edi
call ebp
mov edi, eax
cmp byte [edi], 0
jne 0x4061cf
test esi, esi
je 0x406210
mov byte [esi], 0
mov eax, dword [esp + 0x10]
sub esi, eax
mov dword [eax - 8], esi
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 8]
test eax, eax
je 0x406232
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.004076a0
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 8]
lea edx, [edi - 0xc]
mov byte [esp + 0x274c], 0
lea ebx, [ebx + eax + 1]
mov eax, dword [0x425060]
cmp edx, eax
je 0x40626b
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40626b
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00419d30
add esp, 4
cmp byte [ebx], 0
jne 0x4060ef
pop ebp
xor esi, esi
mov bl, 2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x406377
mov ecx, dword [esp + 0x24]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jae 0x406377
push 0
push 0x425154
lea ecx, [eax + esi*4]
call fcn.00407cd0
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edi
push edx
lea ecx, [eax + esi*4]
call fcn.00407540
mov ecx, dword [esp + 0x20]
mov byte [esp + 0x2748], bl
mov edx, dword [ecx + esi*4]
lea ecx, [ecx + esi*4]
mov eax, dword [edx - 8]
sub eax, edi
dec eax
push eax
lea eax, [esp + 0x10]
push eax
call fcn.00407930
mov eax, dword [esp + 0xc]
mov byte [esp + 0x2748], 3
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x3d
jne 0x406326
mov eax, ecx
lea ecx, [esp + 0x2c]
dec eax
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.00407540
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x274c], 4
call fcn.004036d0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2748], 3
call fcn.004037a0
mov ecx, dword [esp + 0x2750]
lea edx, [esp + 0x14]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.004076a0
mov ecx, dword [esp + 0x2754]
lea edx, [esp + 0xc]
push edx
mov eax, dword [ecx + 8]
push eax
call fcn.004076a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x2748], bl
call fcn.004037a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x2748], 0
call fcn.004037a0
inc esi
jmp 0x406279
mov ecx, dword [esp + 0x2750]
call fcn.004071d0
xor ecx, ecx
mov dword [esp + 0x2748], 0xffffffff
cmp ecx, eax
lea ecx, [esp + 0x1c]
sbb esi, esi
neg esi
call fcn.00407170
mov ecx, dword [esp + 0x2740]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2740
ret 8