Function at 0x401cb0
Capabilities:
Check if file exists
Check mutex on windows
Create process on windows
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40d480
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10b4
call fcn.00408cf0
mov eax, dword [0x41207c]
xor eax, esp
mov dword [esp + 0x10b0], eax
push ebx
push esi
push edi
mov eax, dword [0x41207c]
xor eax, esp
push eax
lea eax, [esp + 0x10c8]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
push str.5E9F93F5_810E_4EC9_AF8D_CEB50E7B3A75
xor edi, edi
push 1
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10d0], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401d31
cmp ebx, edi
jmp 0x40233c
cmp dword [ebp + 8], 5
jge 0x401d3e
cmp ebx, edi
jmp 0x40233c
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsURLW]
test eax, eax
je 0x40233a
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call edi
test eax, eax
je 0x40233a
push 0x104
lea edx, [esp + 0xa0]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x9c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401d91
sub eax, edx
sar eax, 1
mov ecx, 0x104
push str.collector.exe
sub ecx, eax
push ecx
lea edx, [esp + 0xa4]
push edx
call fcn.0040375d
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
call edi
test eax, eax
je 0x401de6
push 0
push 0
push 0
lea ecx, [esp + 0xa8]
push ecx
push str.Open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edx, dword [esi + 0xc]
push edx
lea eax, [esp + 0x6b8]
push 0x104
push eax
call fcn.004037d2
add esp, 0xc
lea ecx, [esp + 0x6b4]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea edx, [esp + 0x6b4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x40233a
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [esp + 0x6b8]
push ecx
push str._s_s
lea edx, [esp + 0x2b0]
push 0x104
push edx
call fcn.00403835
add esp, 0x14
lea eax, [esp + 0x2a4]
push eax
call edi
test eax, eax
je 0x401e78
lea ecx, [esp + 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
mov eax, dword [esi + 4]
xor edi, edi
push eax
lea edx, [esp + 0x20]
lea ecx, [esp + 0x2a8]
mov dword [esp + 0x20], edi
call section..text
add esp, 4
test eax, eax
je 0x401d2a
cmp dword [esp + 0x1c], 0xc8
jne 0x401d2a
mov ecx, dword [esi + 0x10]
push 0xa
push edi
push ecx
call fcn.004029ef
add esp, 0xc
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x401ff2
xor esi, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
push 0x400
mov byte [esp + 0x10d4], 1
call fcn.0040272b
add esp, 4
push 0x200
mov ebx, eax
push esi
push ebx
call fcn.00406240
add esp, 0xc
lea edx, [esp + 0x2a4]
push edx
push 0x200
push ebx
push esi
push str.Levels
push str.Installer
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401f20
sub eax, edx
sar eax, 1
je 0x401f84
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], 0x2c
call fcn.00403853
add esp, 8
test eax, eax
je 0x401f84
push 0xa
push 0
push eax
call fcn.004029ef
mov dword [esp + 0x30], eax
add esp, 0xc
lea eax, [esp + 0x24]
lea edi, [esp + 0x64]
call fcn.00402370
lea ecx, [esp + 0x10]
push ecx
push 0
call fcn.00403853
add esp, 8
test eax, eax
jne 0x401f4b
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x64]
push ebx
call fcn.00402822
sub edi, esi
mov ecx, edi
sar ecx, 2
add esp, 4
test ecx, ecx
je 0x401fd9
xor eax, eax
test ecx, ecx
je 0x401fb0
cmp ecx, eax
jbe 0x401fcf
mov edx, dword [esp + 0x20]
cmp dword [esi + eax*4], edx
je 0x401fd9
inc eax
cmp ecx, eax
ja 0x401fa2
test esi, esi
je 0x401fbd
push esi
call fcn.00402822
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402345
push eax
jmp 0x40233f
push str.invalid_vector_T__subscript
call fcn.004027a5
mov byte [esp + 0x10d0], 0
test esi, esi
je 0x401fee
push esi
call fcn.00402822
add esp, 4
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea eax, [esp + 0x2a4]
push eax
push 0
push str.VersionMS
push str.Installer
call ebx
lea ecx, [esp + 0x2a4]
push ecx
push 0
push str.VersionLS
push str.Installer
mov edi, eax
call ebx
lea edx, [esp + 0x2a4]
push edx
push 1
push str.InnerVersion
push str.Installer
mov dword [esp + 0x30], eax
call ebx
test eax, eax
jle 0x4020b7
mov eax, dword [esi + 8]
push eax
lea ecx, [esp + 0xa0]
push 0x104
push ecx
call fcn.004037d2
add esp, 0xc
lea edx, [esp + 0x9c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x9c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402075
sub eax, edx
sar eax, 1
mov ecx, 0x104
push str._t.ini
sub ecx, eax
push ecx
lea edx, [esp + 0xa4]
push edx
call fcn.0040375d
add esp, 0xc
lea eax, [esp + 0x9c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401fbd
push 0x200
lea ecx, [esp + 0x8c0]
push 0
push ecx
call fcn.00406240
add esp, 0xc
push 0x200
lea edx, [esp + 0xcc0]
push 0
push edx
call fcn.00406240
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0xc
lea eax, [esp + 0x2a4]
push eax
push 0x200
lea ecx, [esp + 0x8c4]
push ecx
push 0
push 0x4103d8
push str.Installer
call ebx
lea edx, [esp + 0x2a4]
push edx
push 0x200
lea eax, [esp + 0xcc4]
push eax
push 0
push str.hash
push str.Installer
call ebx
mov ebx, dword [esi + 8]
lea ecx, [esp + 0x10]
xor eax, eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
call fcn.00401760
mov eax, dword [esp + 0x20]
add esp, 8
cmp edi, eax
ja 0x40216c
jne 0x401fbd
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x10]
jbe 0x401fbd
lea ecx, [esp + 0x8bc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea edx, [esp + 0x6b8]
push edx
push str._s_s
lea eax, [esp + 0x4b8]
push 0x104
push eax
call fcn.00403835
add esp, 0x14
lea ecx, [esp + 0x4ac]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402238
lea eax, [esp + 0xcbc]
lea esi, [esp + 0x80]
call fcn.004026f0
lea eax, [esp + 0x4ac]
lea esi, [esp + 0x64]
mov byte [esp + 0x10d0], 2
call fcn.004026f0
lea esi, [esp + 0x80]
lea ecx, [esp + 0x64]
mov byte [esp + 0x10d0], 3
call fcn.004016a0
test eax, eax
lea esi, [esp + 0x64]
sete bl
call fcn.00401c70
lea esi, [esp + 0x80]
mov byte [esp + 0x10d0], 0
call fcn.00401c70
test bl, bl
je 0x402269
lea edx, [esp + 0x4ac]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x8bc]
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
lea ecx, [esp + 0x8bc]
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x4b0]
call section..text
add esp, 4
test eax, eax
je 0x401fbd
cmp dword [esp + 0x1c], 0xc8
jne 0x401fbd
lea eax, [esp + 0xcbc]
lea esi, [esp + 0x64]
call fcn.004026f0
mov byte [esp + 0x10d0], 4
mov ebx, 1
lea eax, [esp + 0x4ac]
lea esi, [esp + 0x80]
mov dword [esp + 0x10], ebx
call fcn.004026f0
mov edi, 5
mov dword [esp + 0x10d0], edi
lea esi, [esp + 0x64]
lea ecx, [esp + 0x80]
mov dword [esp + 0x10], 3
call fcn.004016a0
test eax, eax
je 0x4022d7
lea ecx, [esp + 0x4ac]
call fcn.00401800
test eax, eax
je 0x4022d7
xor bl, bl
lea esi, [esp + 0x80]
call fcn.00401c70
lea esi, [esp + 0x64]
call fcn.00401c70
test bl, bl
jne 0x401fbd
push 0x3c
lea edx, [esp + 0x2c]
push 0
push edx
call fcn.00406240
add esp, 0xc
lea ecx, [esp + 0x28]
lea eax, [esp + 0x4ac]
push ecx
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x38], str.runas
mov dword [esp + 0x48], edi
mov dword [esp + 0x3c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402345
push eax
jmp 0x40233f
test ebx, ebx
je 0x402345
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x10c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10b0]
xor ecx, esp
call fcn.00402813
mov esp, ebp
pop ebp
ret