Function at 0x402100
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x50
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.start_one
call esi
xor ebx, ebx
push str.EE02FCD1_7F09_4b05_BF46_D883CA34E359
push ebx
push ebx
mov dword [0x42c3cc], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
push ebx
jne 0x402150
mov eax, dword [0x42c3cc]
push ebx
push eax
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
xor eax, eax
pop ebx
add esp, 0x50
ret 0x10
call dword [sym.imp.ole32.dll_OleInitialize]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea ecx, [esp + 8]
push ecx
mov dword [esp + 0xc], 8
mov dword [esp + 0x10], 0x404
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov dword [0x42c440], 0x42a030
mov dword [0x42b360], 0x42c3d0
mov edx, dword [esp + 0x5c]
mov dword [0x42c3d0], 0x84
push edx
push ebx
push 0x42c3d0
mov dword [0x42c434], 0x300
call fcn.004023e0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0xc
mov dword [0x42c454], eax
mov dword [0x42c458], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x4021db
mov ecx, eax
call fcn.004025d0
jmp 0x4021dd
xor eax, eax
cmp eax, ebx
mov dword [0x42c458], eax
je 0x4021ec
mov dword [0x42c45c], ebx
push 0x42c404
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.WM_ATLGETHOST
call esi
push str.WM_ATLGETCONTROL
mov dword [0x42b35c], eax
call esi
lea ecx, [esp + 0x28]
mov dword [0x42b358], eax
mov eax, dword [0x42c3d4]
push ecx
mov esi, 0x30
push str.AtlAxWin
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.USER32.dll_GetClassInfoExA]
test eax, eax
jne 0x40228b
mov edx, dword [0x42c3d4]
push 0x7f00
push ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], 0x402ab0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], ebx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x48], 6
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x44], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x54], str.AtlAxWin
mov dword [esp + 0x58], ebx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push ebp
push edi
push 0x42c404
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov cl, byte [esp + 0x68]
mov byte [esp + 0x24], cl
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.DESKTOP_HOME
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x24]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4022f1
mov edi, dword [esp + 0x24]
mov ecx, ebp
mov edx, ecx
mov esi, str.DESKTOP_HOME
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
mov al, byte [esp + 0x64]
push ebx
lea ecx, [esp + 0x14]
mov byte [esp + 0x14], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.DesktopProp.txt
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x14]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x40234a
mov edi, dword [esp + 0x14]
mov ecx, ebp
mov edx, ecx
mov esi, str.DesktopProp.txt
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Eos_unsigned_int_]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00410480
push 1
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40238a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x402381
cmp al, 0xff
je 0x402381
dec al
mov byte [ecx], al
jmp 0x40238a
push ecx
call fcn.004218a8
add esp, 4
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
push edx
push eax
call fcn.00401eb0
mov ecx, 0x42c3d0
mov edi, eax
call fcn.00402540
mov esi, dword [0x42c458]
cmp esi, ebx
je 0x4023bf
mov ecx, esi
call fcn.004025e0
push esi
call fcn.004218a8
add esp, 4
push 0x42c3d0
call fcn.00402470
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x50
ret 0x10