Function at 0x100187c9
Capabilities:
Get common file path
Get program files directory
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
lea ebp, [esp - 0x3ac]
sub esp, 0x42c
mov eax, dword [0x1007ef24]
xor eax, ebp
mov dword [ebp + 0x3a8], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x77]
push ebx
push eax
mov byte [ebp - 0x78], bl
call fcn.10042a90
add esp, 0xc
push 0x200
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x78]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10018811
push 6
pop ecx
mov esi, str.hardpolMyIEDatamain.ini
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x78]
push eax
movsb byte es:[edi], byte [esi]
push ebx
mov esi, str.FLAG11
push esi
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebx
mov edi, eax
call fcn.10043e25
mov edx, eax
sub eax, edi
cmp eax, 0x2a30
pop ecx
jb 0x100189f8
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x388], bl
lea edi, [ebp + 0x389]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
stosb byte es:[edi], al
lea eax, [ebp + 0x388]
push 0x10065b4c
push eax
call fcn.100436a6
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x388]
push eax
push esi
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x1ff
lea eax, [ebp + 0x189]
push ebx
push eax
mov byte [ebp + 0x188], bl
call fcn.10042a90
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x80], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100189f8
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x188]
push eax
push ebx
push ebx
push str.Path
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp - 0x7c]
je 0x10018907
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100189f8
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0x188], bl
je 0x100189f8
lea eax, [ebp + 0x188]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x10018922
sub eax, edx
cmp byte [ebp + eax + 0x187], 0x3b
jne 0x1001894e
lea eax, [ebp + 0x188]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1001893e
sub eax, edx
mov byte [ebp + eax + 0x187], bl
lea edi, [ebp + 0x188]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x10018955
mov esi, str.iexplore.exe
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x188]
push 0x10063f1c
push eax
movsw word es:[edi], word [esi]
call fcn.100435d9
cmp eax, ebx
pop ecx
pop ecx
je 0x10018987
push eax
call fcn.1004338d
pop ecx
jmp 0x100189ce
push 0x200
lea eax, [ebp + 0x188]
push ebx
push eax
call fcn.10042a90
add esp, 0xc
push ebx
push 0x26
lea eax, [ebp + 0x188]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp byte [ebp + 0x188], bl
je 0x100189f8
lea edi, [ebp + 0x188]
dec edi
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x100189bc
push 8
pop ecx
mov esi, str.Internet_ExplorerIEXPLORE.EXE
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp + 0x188]
push eax
call fcn.10017e90
test al, al
pop ecx
je 0x100189f8
lea eax, [ebp - 0x78]
push eax
push 0x100643c0
push str.FLAG1
push str.SYSTEM
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp + 0x3a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10042977
add ebp, 0x3ac
leave
ret