Function at 0x409bc0
Capabilities:
Get common file path
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x41403c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0
lea eax, [ebp - 0x330]
push eax
call fcn.00401050
add esp, 0xc
lea ecx, [ebp - 0x338]
push ecx
push 0x104
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupGetSourceFileLocationA]
test eax, eax
je 0x409c47
movsx eax, byte [ebp - 0x330]
test eax, eax
je 0x409c34
push 0x41206c
lea ecx, [ebp - 0x330]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x409ca6
lea ecx, [ebp - 0x330]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea ecx, [ebp - 0x330]
push ecx
call fcn.0040d370
test eax, eax
jne 0x409ca6
lea edx, [ebp - 0x330]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov byte [ebp + eax - 0x331], 0x5f
lea eax, [ebp - 0x330]
push eax
call fcn.0040d370
test eax, eax
jne 0x409ca6
xor eax, eax
jmp 0x409e30
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x338]
push edx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0x104
lea edx, [ebp - 0x330]
push edx
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetFileCompressionInfoExA]
push 0x416238
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x334]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x330]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDecompressOrCopyFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
jne 0x409dfa
push 0x80
lea ecx, [ebp - 0x220]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp + 0xc]
push edx
push str._r_n_i__SharedLibrary_file___s__copied_to_addon._r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
push 0x415a00
call fcn.004061a0
push 0x40
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.00401050
add esp, 0xc
push 0x4271b8
push 0x104
lea ecx, [ebp - 0x110]
push ecx
push 0x411dc1
mov edx, dword [ebp + 0x10]
push edx
push str.AddFile
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 4
jbe 0x409db3
push 0x412498
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4271b8
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push str.AddFile
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x4271b8
push 0x41249c
mov edx, dword [ebp + 0xc]
push edx
push str.AddFile.StopFirstClean
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
jmp 0x409e2b
mov eax, dword [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._r_n_e__Error_in_copying_SharedLibrary_file___s_._Error_code___i_r_n_r_n_e__Parsing_stopped._r_n_r_n
push 0x400
push 0x415a00
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
push 0x415a00
call fcn.004061a0
xor eax, eax
jmp 0x409e30
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401035
mov esp, ebp
pop ebp
ret 0xc