Function at 0x408e4e
Capabilities:
Read .ini file
Set file attributes

Disassembly:
push 0xb4
mov eax, 0x4a2f1f
call fcn.00481d3a
mov ebx, ecx
mov dword [ebp - 0xc0], ebx
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 0x2c], esi
call fcn.0040a465
add esp, 0xc
mov dword [ebp - 4], esi
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x10]
call fcn.0040161b
mov byte [ebp - 4], 1
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x14]
call fcn.0040161b
mov byte [ebp - 4], 2
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x18]
call fcn.0040161b
mov byte [ebp - 4], 3
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040161b
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x14]
sub eax, esi
je 0x4093c6
dec eax
je 0x40929c
dec eax
je 0x409160
dec eax
je 0x40901e
dec eax
jne 0x40951d
mov esi, 0x4ed5e8
push esi
lea ecx, [ebp - 0x24]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 0x25
call fcn.0040a465
add esp, 0xc
mov edi, str.indexksa.txt
push edi
push eax
lea eax, [ebp + 0x14]
push eax
mov byte [ebp - 4], 0x26
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x27
call fcn.004015ba
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea ecx, [ebp - 0x7c]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 0x28
call fcn.0040a465
add esp, 0xc
mov esi, str.indexksa.dat
push esi
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0x29
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x2a
call fcn.004015ba
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x7c]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x2b
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
add ecx, 0xfffffff0
call fcn.00401325
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xbc]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x2c
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xbc]
jmp 0x409515
mov esi, 0x4ed5e8
push esi
lea ecx, [ebp - 0x4c]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 0x1d
call fcn.0040a465
add esp, 0xc
mov edi, str.indexdata.txt
push edi
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 0x1e
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x1f
call fcn.004015ba
mov ecx, dword [ebp - 0x44]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x84]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea ecx, [ebp - 0x8c]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 0x20
call fcn.0040a465
add esp, 0xc
mov esi, str.indexdata.dat
push esi
push eax
lea eax, [ebp - 0xa4]
push eax
mov byte [ebp - 4], 0x21
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x22
call fcn.004015ba
mov ecx, dword [ebp - 0xa4]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x54]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x8c]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x23
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.00401325
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x24
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb4]
jmp 0x409515
mov esi, 0x4ed5e8
push esi
lea ecx, [ebp - 0x30]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 5
call fcn.0040a465
add esp, 0xc
mov edi, str.indexksg.txt
push edi
push eax
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 6
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.004015ba
mov ecx, dword [ebp - 0x64]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x94]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea ecx, [ebp - 0x9c]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 8
call fcn.0040a465
add esp, 0xc
mov esi, str.indexksg.dat
push esi
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 4], 9
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.004015ba
mov ecx, dword [ebp - 0xac]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x74]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x9c]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffffff0
call fcn.00401325
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xc
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x38]
jmp 0x409515
mov esi, 0x4ed5e8
push esi
lea ecx, [ebp - 0x50]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x48]
push eax
mov byte [ebp - 4], 0x15
call fcn.0040a465
add esp, 0xc
mov edi, str.indexengine.txt
push edi
push eax
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x16
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0x17
call fcn.004015ba
mov ecx, dword [ebp - 0x40]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x48]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea ecx, [ebp - 0x68]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 0x18
call fcn.0040a465
add esp, 0xc
mov esi, str.indexengine.dat
push esi
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 0x19
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x1a
call fcn.004015ba
mov ecx, dword [ebp - 0x58]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x60]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x68]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1b
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x70]
add ecx, 0xfffffff0
call fcn.00401325
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x1c
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x78]
jmp 0x409515
mov esi, 0x4ed5e8
push esi
lea ecx, [ebp - 0x90]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xd
call fcn.0040a465
add esp, 0xc
mov edi, 0x4ad1b4
push edi
push eax
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 0xe
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xf
call fcn.004015ba
mov ecx, dword [ebp - 0x80]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x88]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x90]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea ecx, [ebp - 0xa8]
call fcn.00401640
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0xa0]
push eax
mov byte [ebp - 4], 0x10
call fcn.0040a465
add esp, 0xc
mov esi, str.index.dat
push esi
push eax
lea eax, [ebp - 0x98]
push eax
mov byte [ebp - 4], 0x11
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x12
call fcn.004015ba
mov ecx, dword [ebp - 0x98]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0xa0]
add ecx, 0xfffffff0
call fcn.00401325
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xa8]
add ecx, 0xfffffff0
call fcn.00401325
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x13
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb0]
add ecx, 0xfffffff0
call fcn.00401325
push edi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00402dca
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0x14
call fcn.004015ba
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0xb8]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x18]
push ecx
push eax
mov ecx, ebx
call fcn.004610b2
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov ecx, ebx
call fcn.004610b2
push dword [ebp - 0x14]
call fcn.0042e9b9
test eax, eax
pop ecx
jne 0x40958c
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401325
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401325
mov eax, esi
call fcn.00481e12
ret 0x10
xor ebx, ebx
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.004020c7
cmp eax, ebx
pop ecx
pop ecx
je 0x40971f
lea eax, [ebp - 0x10]
call fcn.0040602a
cmp eax, ebx
mov dword [ebp - 0x28], eax
jle 0x4096eb
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x20]
mov dword [ebp - 0x20], 1
call fcn.0040603f
mov dword [ebp - 0x24], eax
call fcn.0045db7e
push eax
lea ecx, [ebp + 0x14]
call fcn.0040161b
mov byte [ebp - 4], 0x2d
cmp dword [ebp - 0x24], ebx
je 0x4095f9
lea eax, [ebp + 0x14]
push eax
mov eax, dword [ebp - 0x20]
call fcn.004061ff
pop ecx
cmp dword [ebp - 0x28], 0
jle 0x4096be
mov edi, 0x104
call fcn.0045db7e
push eax
lea ecx, [ebp - 0x20]
call fcn.0040161b
push ebx
lea eax, [ebp - 0x20]
push 0x4ad28c
push eax
mov byte [ebp - 4], 0x2e
call fcn.004063eb
add esp, 0xc
call fcn.0045db7e
push eax
lea ecx, [ebp + 0xc]
call fcn.0040161b
push edi
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x2f
call fcn.0040133f
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
push edi
push eax
push 0x4ac888
push esi
push 0x4acf30
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
call fcn.00402fd4
cmp dword [ebp - 0x24], 0
je 0x409681
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call fcn.0047bbb4
test eax, eax
pop ecx
pop ecx
jne 0x40969d
mov ecx, dword [ebp - 0xc0]
push 0
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00408e4e
test eax, eax
je 0x4096cb
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401325
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0x2d
call fcn.00401325
inc ebx
cmp ebx, dword [ebp - 0x28]
jl 0x409608
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00401325
jmp 0x409718
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401325
lea ecx, [esi - 0x10]
call fcn.00401325
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
call fcn.00401325
jmp 0x40971f
cmp dword [0x4efde8], ebx
je 0x40970e
lea eax, [ebp + 8]
push eax
push 0x4ef3e4
push dword [0x4ef1d4]
lea ebx, [ebp - 0x10]
call fcn.00405d2e
test eax, eax
jne 0x409718
mov edi, 0x4efdd8
call fcn.004052ff
mov dword [ebp - 0x2c], 1
mov esi, dword [ebp - 0x2c]
jmp 0x40954b