Function at 0x401030
Capabilities:
Check mutex on windows
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443a78
mov eax, dword fs:[0]
push eax
sub esp, 0xf98
mov eax, dword [0x456580]
xor eax, esp
mov dword [esp + 0xf90], eax
push ebx
push esi
push edi
mov eax, dword [0x456580]
xor eax, esp
push eax
lea eax, [esp + 0xfa8]
mov dword fs:[0], eax
mov edx, dword [0x449b90]
mov esi, ecx
xor eax, eax
mov ecx, 0x7f
lea edi, [esp + 0xd9c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x449b8c]
stosw word es:[edi], ax
mov eax, dword [0x449b88]
mov dword [esp + 0xd9c], eax
mov eax, dword [0x449b94]
mov dword [esp + 0xda0], ecx
mov ecx, dword [0x449b98]
mov dword [esp + 0xda4], edx
mov edx, dword [0x449b9c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0xff
mov dword [esp + 0xda8], eax
mov dword [esp + 0xdac], ecx
mov dword [esp + 0xdb0], edx
call fcn.00414236
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x401100
push 0x80004005
call fcn.004016c0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0xfb0], ebx
mov ecx, 0x100
mov edi, 0x45aa70
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xd9c]
push ecx
push 0x200
push 0x45aa70
push ebx
push str.error0
push str.ERRORTIP
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x45aa70
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401150
sub eax, edx
sar eax, 1
push eax
push 0x45aa70
lea ecx, [esp + 0x1c]
call fcn.00401340
push str.Tp_Autorun
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4011b5
mov esi, dword [esp + 0x14]
push ebx
push ebx
push esi
call fcn.00412747
lea eax, [esi - 0x10]
mov dword [esp + 0xfb0], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40126d
push 0x45a870
xor eax, eax
mov ecx, 0x80
mov edi, 0x45a870
push 0x200
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00411ea6
push ebx
call fcn.00413108
add esp, 4
push str.Local_AppWizard_Generated_Applications
mov ecx, esi
call fcn.0041367d
push ebx
lea edx, [esp + 0x28]
push edx
push 0x45a858
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call sub.gdiplus.dll_GdiplusStartup
lea esi, [esp + 0x34]
call fcn.004018f0
mov ecx, dword [esp + 0x18]
mov eax, esi
mov byte [esp + 0xfb0], 1
mov dword [ecx + 0x20], eax
mov ecx, esi
call fcn.00413fa3
mov edx, esi
push edx
mov byte [esp + 0xfb4], bl
call fcn.004012a0
mov dword [esp + 0xfb0], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401279
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0xfa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf90]
xor ecx, esp
call fcn.0042c343
mov esp, ebp
pop ebp
ret