Function at 0x407aa0
Capabilities:
Read .ini file
Set registry value

Disassembly:
sub esp, 0x510
xor eax, eax
push ebx
mov ebx, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x108]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, 0x10
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [ebx + 0x8b60]
test eax, eax
je 0x407da8
push ebp
push esi
lea eax, [esp + 0x50]
push 0x40
push eax
lea ebp, [ebx + 0x110]
push 0
push 0
push str.RefClass
mov ecx, ebp
call fcn.00403190
test eax, eax
jne 0x407cc3
mov ecx, 0x10
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xd0]
push 0x40
push ecx
push eax
push eax
push str.RefName
mov ecx, ebp
call fcn.00403190
lea edx, [esp + 0xd0]
mov ecx, ebx
push edx
call fcn.004094d0
lea eax, [esp + 0x214]
push 0x104
push eax
push 1
push 0
push str.RefName
mov ecx, ebp
call fcn.00403190
lea ecx, [esp + 0x318]
push 0x104
push ecx
push 2
push 0
push str.RefName
mov ecx, ebp
call fcn.00403190
lea edx, [esp + 0x10]
push 0x40
push edx
push 3
push 0
push str.RefName
mov ecx, ebp
call fcn.00403190
mov al, byte [esp + 0x10]
test al, al
jne 0x407bba
lea edi, [ebx + 0x8460]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x110]
push 0x104
lea edx, [esp + 0x218]
push ecx
push edx
mov ecx, ebp
call fcn.00403140
mov eax, dword [ebx + 0x877c]
test eax, eax
je 0x407bf6
lea eax, [ebx + 0x8567]
lea ecx, [esp + 0x110]
push eax
push ecx
mov ecx, ebp
call fcn.00403c60
mov al, byte [ebx + 0x8567]
lea edi, [ebx + 0x8567]
test al, al
je 0x407c2a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x110]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x10f], 0x5c
je 0x407c76
mov edi, 0x41449c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xd0]
lea ecx, [esp + 0x110]
push eax
push ecx
lea edx, [esp + 0x118]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [esp + 0x110]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x10]
push eax
push 0x40
push ecx
push 0
lea eax, [esp + 0x328]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea esi, [ebx + 0x8b60]
mov ecx, ebx
push esi
call fcn.00407dd0
lea edi, [esp + 0x50]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
not ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ecx
lea ecx, [esp + 0x54]
push ecx
push 1
push eax
push str.RefClass
push edx
call ebp
lea edi, [esp + 0x90]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x90]
push ecx
mov ecx, dword [esi]
push eax
push 1
push 0
push str.RefName
push ecx
call ebp
mov eax, dword [ebx + 0x86f0]
xor esi, esi
test eax, eax
jle 0x407d76
push esi
lea edx, [esp + 0x420]
push str.ShortcutIcons__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebx + 0x86ec]
or ecx, 0xffffffff
add esp, 0xc
mov edx, dword [eax + esi*4]
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebx + 0x8b60]
push 1
lea ecx, [esp + 0x428]
push eax
push ecx
push edx
call ebp
mov eax, dword [ebx + 0x86f0]
inc esi
cmp esi, eax
jl 0x407d2a
lea eax, [ebx + 0x86f0]
push 4
push eax
mov eax, dword [ebx + 0x8b60]
push 4
push 0
push str.Icon_number
push eax
call ebp
mov ecx, ebx
call fcn.00407e80
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
add esp, 0x510
ret
push str.Registry_key_is_invalid___
push 0
push ebx
call fcn.00404400
add esp, 0xc
mov eax, 1
pop edi
pop ebx
add esp, 0x510
ret