Function at 0x40d6a0
Capabilities:
Check if file exists
Create process on windows
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7890
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x50545c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc4], ecx
push 1
mov ecx, dword [ebp - 0xc4]
call fcn.0040d990
mov ecx, dword [ebp - 0xc4]
call fcn.00401db0
cmp dword [ebp + 8], 0
je 0x40d748
push 0x4d5488
mov eax, dword [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0040f270
add esp, 0xc
mov dword [ebp - 0x70], eax
mov edx, dword [ebp - 0x70]
mov eax, dword [edx]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
push 1
push 0x4d5480
push 0x4d5474
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x54], eax
lea ecx, [ebp - 0x58]
call fcn.004129d0
cmp dword [ebp - 0x54], 0
jne 0x40d748
push 0x4d546c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
jmp 0x40d97e
mov edx, dword [ebp - 0xc4]
mov eax, dword [edx]
sub eax, 0x10
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call fcn.00412ee0
add esp, 4
mov dword [ebp - 0x80], eax
mov edx, dword [ebp - 0x80]
add edx, 0x10
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov eax, str.MSM1_
test eax, eax
jne 0x40d78a
mov dword [ebp - 0x84], 0
jmp 0x40d79d
push str.MSM1_
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
push ecx
push str.MSM1_
lea ecx, [ebp - 0x14]
call fcn.00411880
mov edx, 0x4d5440
test edx, edx
jne 0x40d7c6
mov dword [ebp - 0x88], 0
jmp 0x40d7d9
push 0x4d5440
call fcn.004939fc
add esp, 4
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
push eax
push 0x4d5440
lea ecx, [ebp - 0x14]
call fcn.00411880
push 0x4d5438
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d83b
push 0x4d5430
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov eax, dword [ebp - 0x5c]
jmp 0x40d97e
mov dword [ebp - 0x50], 0
push 0x38
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.004931a0
add esp, 0xc
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
cmp dword [ebp + 8], 0
je 0x40d886
mov dword [ebp - 0xc8], 0x4d5428
jmp 0x40d890
mov dword [ebp - 0xc8], 0x4d5420
mov edx, dword [ebp - 0xc8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x4c], 0x440
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x40d8d7
push 0x4d5418
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov eax, dword [ebp - 0x60]
jmp 0x40d97e
mov dword [ebp - 0x10], 0xffff
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4d5410
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4d5408
lea ecx, [ebp - 0x68]
call fcn.00412370
mov byte [ebp - 4], 1
push ecx
mov edx, esp
mov dword [ebp - 0x64], esp
lea eax, [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0xc4]
push ecx
push edx
call fcn.0040f190
add esp, 0xc
mov dword [ebp - 0xcc], eax
mov ecx, dword [ebp - 0xc4]
call fcn.00408f90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.004129d0
mov ecx, dword [ebp - 0xc4]
call fcn.004023f0
xor edx, edx
cmp dword [ebp - 0x10], 0
sete dl
mov dword [ebp - 0x6c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004129d0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4