Function at 0x4cf630
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a77ac
mov eax, dword fs:[0]
push eax
mov eax, 0x10bf0
call fcn.0056e430
mov eax, dword [0x608554]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10a74], ecx
mov ebx, dword [ebp + 8]
push ecx
push str.CBaseInfoAddIn::WriteAddInTransInfo
lea ecx, [ebp - 0x10a60]
call fcn.0040a480
mov dword [ebp - 4], 0
mov esi, dword [0x608f30]
cmp esi, 0x608f30
je 0x4cf70a
test byte [esi + 0x1c], 1
je 0x4cf6c9
cmp dword [0x608f68], 8
mov eax, 0x608f54
mov edx, 0x5d8b50
mov ecx, 0x3f
cmovae eax, dword [0x608f54]
push eax
push dword [esi + 0x14]
push dword [esi + 0x10]
call fcn.00401840
mov esi, dword [0x608f30]
add esp, 0xc
cmp esi, 0x608f30
je 0x4cf70a
test byte [esi + 0x1c], 1
je 0x4cf70a
cmp dword [0x608f68], 8
mov eax, 0x608f54
push ebx
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b50
push eax
push dword [esi + 0x14]
mov ecx, 0x40
push dword [esi + 0x10]
call fcn.00405920
mov esi, dword [0x608f30]
add esp, 0x10
push 0x208
xor edi, edi
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.00571c00
push 0x208
lea eax, [ebp - 0xa28]
push edi
push eax
call fcn.00571c00
push 0x200
lea eax, [ebp - 0x620]
push edi
push eax
call fcn.00571c00
push 0x200
lea eax, [ebp - 0x820]
push edi
push eax
call fcn.00571c00
push 0x10000
lea eax, [ebp - 0x10a28]
push edi
push eax
call fcn.00571c00
add esp, 0x48
mov dword [ebp - 0x10a68], edi
mov dword [ebp - 0x10a6c], edi
test ebx, ebx
jne 0x4cf79f
mov edi, 0x80010001
mov dword [0x6183ec], 1
jmp 0x4cfb6e
lea ecx, [ebp - 0x10a64]
call fcn.0046a2f0
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push eax
call fcn.0052ee40
mov ecx, eax
call fcn.00534cc0
push eax
lea ecx, [ebp - 0x10a64]
call fcn.0046ae70
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x5c70f4
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00437f50
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cf81d
mov edi, 0x80010026
mov dword [0x6183ec], 0x26
lea ecx, [ebp - 0x10a64]
mov byte [ebp - 4], 0
call fcn.0046a3c0
test edi, edi
jne 0x4cfb68
push ebx
lea eax, [ebp - 0xa28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0x620]
push eax
push 0x5c6930
push 0x5d87d0
push str.Add_Ins
call esi
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0x820]
push eax
push 0x5c6930
push str.Version
push str.Add_Ins
call esi
lea eax, [ebp - 0x218]
push eax
push 0x8000
lea eax, [ebp - 0x10a28]
push eax
push str.notsupport
push str.DependentFiles
push str.Add_Ins
call esi
push str.notsupport
lea eax, [ebp - 0x10a28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov dword [ebp - 0x10a68], 1
test eax, eax
je 0x4cf8e7
lea eax, [ebp - 0x10a28]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x10a6c], eax
mov esi, dword [ebp - 0x10a74]
add esi, 0x218
mov dword [ebp - 0x10a64], 0
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4cf940
sub esp, 8
lea ecx, [ebp - 0x10bfc]
push 0x22
push esi
call fcn.004d50a0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x10bac], 0
je 0x4cf931
lea ecx, [ebp - 0x10bfc]
call fcn.004d5060
lea ecx, [ebp - 0x10bfc]
mov byte [ebp - 4], 0
call fcn.004cce00
sub esp, 0xc
lea ecx, [ebp - 0x10b34]
push esi
call fcn.004d4f50
mov byte [ebp - 4], 3
cmp dword [ebp - 0x10ad0], 0
je 0x4cfb5d
push 2
push 0
push 0
lea ecx, [ebp - 0x10b24]
mov dword [ebp - 0x10a70], 0
call fcn.004706d0
lea eax, [ebp - 0x10b4c]
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004705b0
mov ecx, dword [eax + 8]
add ecx, dword [eax]
je 0x4cf9e7
push 0
push 0
push 0
lea ecx, [ebp - 0x10b34]
call fcn.004d53b0
push 0
push 4
lea eax, [ebp - 0x10a70]
push eax
lea ecx, [ebp - 0x10b34]
call fcn.00470800
push 0
push 4
lea eax, [ebp - 0x10a70]
push eax
lea ecx, [ebp - 0x10b34]
call fcn.00470800
push 0
push 4
lea eax, [ebp - 0x10a64]
push eax
lea ecx, [ebp - 0x10b34]
call fcn.00470800
push 0
push 0
push 0
lea ecx, [ebp - 0x10b24]
call fcn.004706d0
push 0
push 4
push 0x60d7e4
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 4
push 0x60a64c
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
inc dword [ebp - 0x10a64]
lea eax, [ebp - 0x10a64]
push 0
push 4
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
cmp dword [ebp - 0x10a64], 1
jbe 0x4cfa56
push 2
push 0xffffffffffffffff
push 0xfffffffffffffffc
lea ecx, [ebp - 0x10b24]
call fcn.004706d0
push 0
push 4
push 0x60d7f0
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 0x208
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 0x200
lea eax, [ebp - 0x620]
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 0x200
lea eax, [ebp - 0x820]
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 4
lea eax, [ebp - 0x10a68]
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 4
lea eax, [ebp - 0x10a6c]
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push dword [ebp - 0x10a6c]
lea eax, [ebp - 0x10a28]
push eax
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 4
push 0x60d7e0
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
push 0
push 4
push 0x60d7f8
lea ecx, [ebp - 0x10b24]
call fcn.004d5260
lea ecx, [ebp - 0x10b1c]
call fcn.0042b530
test eax, eax
jne 0x4cfb5d
mov eax, dword [ebp - 0x10b34]
lea ecx, [ebp - 0x10b34]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.004133b0
lea ecx, [ebp - 0x10b34]
call fcn.00470310
mov esi, dword [0x608f30]
mov byte [ebp - 0x10a5c], 1
cmp esi, 0x608f30
je 0x4cfbb0
test byte [esi + 0x1c], 1
je 0x4cfbb0
cmp dword [0x608f68], 8
mov eax, 0x608f54
push edi
cmovae eax, dword [0x608f54]
mov edx, 0x5d8b50
push eax
push dword [esi + 0x14]
mov ecx, 0x41
push dword [esi + 0x10]
call fcn.004018a0
add esp, 0x10
lea ecx, [ebp - 0x10a60]
call fcn.0040a570
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d977
mov esp, ebp
pop ebp
ret 4