Function at 0x100167b0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
sub esp, 0x620
lea ebp, [esp - 4]
mov eax, dword [0x1007ef24]
xor eax, ebp
mov dword [ebp + 0x620], eax
push 0x14
mov eax, 0x1005fe57
call fcn.10042986
push 0x1ff
xor ebx, ebx
lea eax, [ebp + 0x401]
push ebx
push eax
mov byte [ebp + 0x400], 0
call fcn.10042a90
add esp, 0xc
push 0x200
lea eax, [ebp + 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp + 0x400]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1001680b
push 6
pop ecx
mov esi, str.hardpolMyIEDatamain.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebx
movsb byte es:[edi], byte [esi]
call fcn.10043e25
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x400]
push eax
push ebx
mov ebx, str.FLAG8
push ebx
mov esi, str.SYSTEM
push esi
call edi
cmp eax, dword [ebp - 0x10]
jg 0x10016992
mov ecx, dword [ebp - 0x10]
sub ecx, eax
cmp ecx, 0x2a30
jle 0x10016861
call fcn.10014776
push 0x3ff
lea eax, [ebp + 1]
push 0
push eax
mov byte [ebp], 0
call fcn.10042a90
add esp, 0xc
lea eax, [ebp + 0x400]
push eax
push 0
mov ebx, str.FLAG2
push ebx
push esi
call edi
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x400]
push eax
push 0xffffffffffffffff
push str.FLAG5
push esi
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], eax
je 0x100169d6
lea eax, [ebp + 0x400]
push eax
push 0xffffffffffffffff
push str.FLAG3
push esi
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x100169d6
lea eax, [ebp + 0x400]
push eax
push 0xffffffffffffffff
push str.FLAG4
push esi
call edi
cmp eax, 0xffffffff
mov dword [ebp - 0x20], eax
je 0x100169d6
lea eax, [ebp + 0x400]
push eax
push 0xffffffffffffffff
push str.FLAG9
push esi
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x100169d6
lea eax, [ebp + 0x400]
push eax
push 0x400
lea eax, [ebp]
push eax
push 0x10063dfc
push str.FLAG6
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp], 0
je 0x100169d6
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x14]
jge 0x10016939
push 7
pop ecx
push edx
jmp 0x10016998
sub edx, dword [ebp - 0x14]
cmp edx, edi
jle 0x100169d6
push 0x5f8
call fcn.1001e08d
pop ecx
mov dword [ebp - 0x14], eax
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
je 0x10016965
push edi
mov ecx, eax
call fcn.1000111a
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea eax, [ebp]
push eax
push dword [ebp - 0x20]
mov ecx, edi
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.10001006
mov eax, dword [edi]
push 0
push 0x71
mov ecx, edi
call dword [eax + 0x134]
mov ecx, edi
call fcn.1000126b
push 7
pop ecx
push dword [ebp - 0x10]
xor eax, eax
mov byte [ebp + 0x600], 0
lea edi, [ebp + 0x601]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x600]
push 0x10065b4c
push eax
call fcn.100436a6
add esp, 0xc
lea eax, [ebp + 0x400]
push eax
lea eax, [ebp + 0x600]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x620]
xor ecx, ebp
call fcn.10042977
add ebp, 0x624
leave
ret