Function at 0x4381e0
Capabilities:
Check mutex on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x4c143c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x138], eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x140], esi
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x438235
cmp dword [0x4c12e0], 0
je 0x438235
cmp dword [0x4c3630], 0
je 0x438235
mov eax, dword [ecx]
push str.In_CCleanUp::_MergeIniFiles__
push ecx
call dword [eax + 0x10]
mov eax, dword [ebp - 0x138]
pop ecx
pop ecx
test esi, esi
je 0x4385a9
cmp byte [esi], 0
je 0x4385a9
test eax, eax
je 0x4385a9
cmp byte [eax], 0
je 0x4385a9
push esi
push 0x104
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [ebp - 0x12c], 0
jne 0x43829f
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4385c6
cmp dword [0x4c12e0], 0
je 0x4385c6
mov eax, dword [ecx]
push esi
push str.File__s_exists_but_there_are_no_sections_to_process._Cannot_merge
push ecx
call dword [eax + 0x14]
add esp, 0xc
jmp 0x4385c6
push edi
push 8
pop ecx
mov esi, str.7A7FDB9D9B354AFC931A0F2499C46945
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push eax
push 0
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x4382e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x438341
cmp dword [0x4c12e0], esi
je 0x438341
mov ecx, dword [edx]
push eax
push str...There_was_an_error__d__in_creating_the_mutex._There_will_not_be_any_sync_between_multiple_invocations_of_mcinst_for_this_cleanup
push edx
call dword [ecx + 0x18]
jmp 0x43833e
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x43830d
cmp dword [0x4c12e0], 0
je 0x43830d
cmp dword [0x4c3630], 0
je 0x43830d
mov eax, dword [ecx]
push esi
push str...Successfully_created_a_mutex___x__to_sync_merge
push ecx
call dword [eax + 0x10]
add esp, 0xc
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x438341
cmp dword [0x4c12e0], 0
je 0x438341
cmp dword [0x4c3630], 0
je 0x438341
mov eax, dword [ecx]
push esi
push str...Current_process_has_gained_ownership_of_mutex__x_for_executing_merge
push ecx
call dword [eax + 0x10]
add esp, 0xc
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x438367
cmp dword [0x4c12e0], 0
je 0x438367
cmp dword [0x4c3630], 0
je 0x438367
mov eax, dword [ecx]
push str...Enumerating_sections_and_processing_each_one
push ecx
call dword [eax + 0x10]
pop ecx
pop ecx
lea edi, [ebp - 0x12c]
cmp byte [edi], 0
je 0x438548
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x43839e
cmp dword [0x4c12e0], 0
je 0x43839e
cmp dword [0x4c3630], 0
je 0x43839e
mov eax, dword [ecx]
push edi
push str...Processing_section__s
push ecx
call dword [eax + 0x10]
add esp, 0xc
push 0x7fff
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x130], eax
test eax, eax
je 0x43852b
push dword [ebp - 0x140]
push 0x7fff
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
cmp eax, 0x7ffe
mov eax, dword [ebp - 0x130]
jae 0x4384d5
cmp byte [eax], 0
je 0x4384d5
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x43841b
cmp dword [0x4c12e0], 0
je 0x43841b
cmp dword [0x4c3630], 0
je 0x43841b
mov eax, dword [ecx]
push edi
push str...Enumerating_entries_in_section__s_and_processing_each_one
push ecx
call dword [eax + 0x10]
mov eax, dword [ebp - 0x130]
add esp, 0xc
mov ecx, eax
mov dword [ebp - 0x134], eax
cmp byte [ecx], 0
je 0x4384cf
mov edx, dword [ebx + 0x10]
test edx, edx
je 0x438461
cmp dword [0x4c12e0], 0
je 0x438461
cmp dword [0x4c3630], 0
je 0x438461
push dword [ebp - 0x138]
mov eax, dword [edx]
push edi
push ecx
push str...Writing_entry__s_into_section___s__of_file__s
push edx
call dword [eax + 0x10]
mov ecx, dword [ebp - 0x134]
add esp, 0x14
push ecx
call fcn.00465f76
mov dword [ebp - 0x13c], eax
pop ecx
test eax, eax
je 0x4384f7
push 0x3d
push eax
call fcn.0046ff25
pop ecx
pop ecx
test eax, eax
je 0x43848e
push eax
mov byte [eax], 0
call fcn.004662b8
pop ecx
push dword [ebp - 0x138]
push eax
push dword [ebp - 0x13c]
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push dword [ebp - 0x13c]
call fcn.0045f1d9
pop ecx
push dword [ebp - 0x134]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x134]
inc ecx
add ecx, eax
mov dword [ebp - 0x134], ecx
jne 0x438423
mov eax, dword [ebp - 0x130]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc edi
add edi, eax
jne 0x43836d
jmp 0x438548
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x438514
cmp dword [0x4c12e0], 0
je 0x438514
mov eax, dword [ecx]
push str.FATAL:_Not_enough_memory
push ecx
call dword [eax + 0x1c]
pop ecx
pop ecx
push dword [ebp - 0x130]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x438548
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x438548
cmp dword [0x4c12e0], 0
je 0x438548
mov eax, dword [ecx]
push str.FATAL._Could_not_allocate_memory
push ecx
call dword [eax + 0x1c]
pop ecx
pop ecx
pop edi
test esi, esi
je 0x438583
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x438575
cmp dword [0x4c12e0], 0
je 0x438575
cmp dword [0x4c3630], 0
je 0x438575
mov eax, dword [ecx]
push esi
push str...Relinquishing_ownership_of_mutex__x
push ecx
call dword [eax + 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4385c6
cmp dword [0x4c12e0], 0
je 0x4385c6
cmp dword [0x4c3630], 0
je 0x4385c6
mov eax, dword [ecx]
push str.CCleanUp::_MergeIniFiles___returns
push ecx
call dword [eax + 0x10]
jmp 0x4385c4
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4385c6
cmp dword [0x4c12e0], 0
je 0x4385c6
mov eax, dword [ecx]
push str.Parameters_to_CCleanUp::_MergeIniFiles___are_invalid
push ecx
call dword [eax + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00458eeb
leave
ret 8