Function at 0x100ead91
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x101324e0
call fcn.10059c28
sub esp, 0xa0
mov eax, dword [0x10194180]
push ebx
push esi
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push edi
mov esi, 0x101360cc
xor ebx, ebx
push esi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x74], ebx
call fcn.10002340
mov dword [ebp - 4], ebx
call fcn.100ea7b0
test al, al
jne 0x100eadef
call fcn.100ea73f
test al, al
jne 0x100eadef
lea eax, [ebp - 0x90]
push eax
call fcn.100eb872
pop ecx
mov byte [ebp - 4], 2
jmp 0x100eae00
lea eax, [ebp - 0x90]
push eax
call fcn.100ea9d4
pop ecx
mov byte [ebp - 4], 1
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x50]
push eax
call fcn.10001fd0
push ebx
lea ecx, [ebp - 0x90]
push 1
mov byte [ebp - 4], bl
call fcn.100014c0
lea eax, [ebp - 0x90]
push eax
call fcn.100eb6a3
mov dword [esp], str.win.ini
push eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 3
call fcn.10002ce0
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 5
call fcn.100014c0
cmp dword [ebp - 0x3c], ebx
jne 0x100eaeec
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x100eae68
lea eax, [ebp - 0x68]
push eax
push 0x21
lea eax, [ebp - 0x34]
push eax
push esi
mov esi, str.Flag
push esi
mov edi, str.WINSET
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x100eaf68
lea eax, [ebp - 0xac]
push eax
call fcn.100eaaa6
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.10001fd0
push ebx
push 1
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 5
call fcn.100014c0
cmp dword [ebp - 0x54], 0x10
mov ecx, dword [ebp - 0x68]
jae 0x100eaec5
lea ecx, [ebp - 0x68]
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x100eaed1
lea eax, [ebp - 0x4c]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x50]
push eax
call fcn.10002310
jmp 0x100eaf74
xor edi, edi
xor esi, esi
cmp esi, dword [ebp - 0x3c]
jae 0x100eaf22
push esi
lea ecx, [ebp - 0x50]
call fcn.10041bf0
movsx eax, byte [eax]
push eax
call fcn.10058564
test eax, eax
pop ecx
je 0x100eaf1c
push esi
lea ecx, [ebp - 0x50]
call fcn.10041bf0
mov al, byte [eax]
mov byte [ebp + edi - 0x34], al
inc edi
inc esi
cmp edi, 0x20
jb 0x100eaef0
push 0x20
pop ecx
cmp edi, ecx
jae 0x100eaf44
sub ecx, edi
lea edx, [ebp + edi - 0x34]
mov edi, edx
mov edx, ecx
shr ecx, 2
mov eax, 0x30303030
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
mov byte [ebp - 0x14], bl
jae 0x100eaf53
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Flag
push str.WINSET
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0x70]
lea eax, [ebp - 0x34]
push eax
call fcn.10002340
push ebx
lea ecx, [ebp - 0x6c]
push 1
call fcn.100014c0
push ebx
lea ecx, [ebp - 0x50]
push 1
call fcn.100014c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x70]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.100571c6
leave
ret