Function at 0x405120
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Hash data with md5
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f0a35
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x51e584]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x51e584]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
lea eax, [esp + 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [esp + 0x92]
movzx edx, word [esp + 0x90]
xor eax, eax
push ecx
push edx
xor ebx, ebx
push str.Singon__d__d
lea edx, [esp + 0x124]
mov byte [esp + 0x124], bl
mov dword [esp + 0x125], eax
mov dword [esp + 0x129], eax
mov dword [esp + 0x12d], eax
mov dword [esp + 0x131], eax
mov word [esp + 0x135], ax
mov byte [esp + 0x137], al
call fcn.00405c20
add esp, 0xc
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov dword [esp + 0x12d], eax
mov dword [esp + 0x131], eax
mov dword [esp + 0x135], eax
mov dword [esp + 0x139], eax
mov dword [esp + 0x13d], eax
mov dword [esp + 0x141], eax
mov dword [esp + 0x145], eax
mov dword [esp + 0x149], eax
lea eax, [esp + 0x118]
mov byte [esp + 0x34], bl
mov byte [esp + 0x12c], bl
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405244
sub eax, edx
push eax
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x7c]
call fcn.00402a70
mov dword [esp + 0x160], ebx
mov eax, dword [esp + 0x74]
mov edi, 0x10
cmp dword [esp + 0x88], edi
jae 0x40527c
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0xc0]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xc0], 0x67452301
mov dword [esp + 0xc4], 0xefcdab89
mov dword [esp + 0xc8], 0x98badcfe
mov dword [esp + 0xcc], 0x10325476
call fcn.004217b0
add esp, 4
lea esi, [esp + 0xbc]
lea ebx, [esp + 0x34]
call fcn.00421870
lea ecx, [esp + 0x12c]
push ecx
mov edx, ebx
push edx
call fcn.004026c0
add esp, 8
xor ebx, ebx
lea eax, [esp + 0x12c]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405310
sub eax, edx
push eax
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x60]
call fcn.00402a70
mov byte [esp + 0x160], 1
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x405341
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4053e7
push str.Found_an_Existing_Instance.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, ebx
je 0x405373
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x160], 0
cmp dword [esp + 0x6c], edi
jb 0x40538e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00481974
add esp, 4
mov dword [esp + 0x160], 0xffffffff
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
cmp dword [esp + 0x88], edi
jb 0x4053c0
mov edx, dword [esp + 0x74]
push edx
call fcn.00481974
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004815c9
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Tpsp_Begin_to_Start.
call edi
call fcn.0044c1b0
cmp eax, 0xffffffff
je 0x405426
push eax
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40541f
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40542d
push str.GetParentProcessID_OpenProcess_failed.
jmp 0x40542b
push str.GetParentProcessID_failed.
call edi
call fcn.00403ff0
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x50d258
push ebx
push ebx
mov dword [0x526320], 0x28
mov dword [0x526324], ebx
mov dword [0x526328], 0x50d2fc
mov dword [0x52632c], 0x50d328
mov dword [0x526334], 0x50d258
call edi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.00482445
add esp, 4
push 0
push 0
push ebx
mov esi, eax
push esi
push 0xffffffffffffffff
push 0x50d258
push 0
push 0
mov byte [esi + ebx], 0
call edi
dec ebx
xor edi, edi
mov eax, esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0xb4], 0xf
mov dword [esp + 0xb0], edi
mov byte [esp + 0xa0], 0
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4054c2
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0xa8]
call fcn.00402a70
mov bl, 2
push esi
mov byte [esp + 0x164], bl
call fcn.00482828
add esp, 4
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0xa8]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], edi
mov byte [esp + 0x40], 0
call fcn.00402c60
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x3c]
push edx
mov ecx, 0x524b9c
mov byte [esp + 0x16c], 3
call fcn.00402c60
mov edi, 0x10
mov byte [esp + 0x160], bl
cmp dword [esp + 0x48], edi
jb 0x405549
mov eax, dword [esp + 0x34]
push eax
call fcn.00481974
add esp, 4
lea ebx, [esp + 0x34]
mov dword [0x526338], 0x12c
mov dword [0x52633c], 0x278d00
mov dword [0x526340], 0xe10
call fcn.0044aa60
mov byte [esp + 0x160], 4
cmp dword [eax + 0x14], edi
jb 0x405581
mov ebx, dword [eax]
jmp 0x405583
mov ebx, eax
lea esi, [esp + 0x14]
call fcn.00404f10
mov byte [esp + 0x160], 2
mov esi, eax
cmp dword [esp + 0x48], edi
jb 0x4055a9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00481974
add esp, 4
xor ebx, ebx
mov eax, 1
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
test byte [0x526430], al
jne 0x405624
or dword [0x526430], eax
mov byte [esp + 0x160], 5
xor edx, edx
mov eax, esi
mov word [0x526414], dx
mov dword [0x526428], 7
mov dword [0x526424], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4055f4
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, 0x526414
call fcn.004058b0
push 0x4f85b0
call fcn.00482137
add esp, 4
mov byte [esp + 0x160], 2
push esi
call fcn.00482828
add esp, 4
cmp dword [0x526428], 8
jb 0x405642
mov eax, dword [0x526414]
mov dword [0x526344], eax
jmp 0x40564c
mov dword [0x526344], 0x526414
push 0x526320
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], ebx
call fcn.00405020
test eax, eax
jne 0x405676
mov edx, dword [esp + 0x14]
push edx
push ebx
push 0x405100
call fcn.00482517
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.kernel32
mov edi, eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
je 0x4056c4
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4056b1
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x14], ebx
je 0x4056c4
push edi
call fcn.0044bda0
add esp, 4
cmp eax, ebx
jne 0x4056ca
push edi
call fcn.00422f60
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
je 0x405711
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ebx, [ebx]
lea edx, [esp + 0x18]
push edx
call edi
lea eax, [esp + 0x18]
push eax
call ebx
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call esi
test eax, eax
jne 0x4056f0
xor ebx, ebx
push str.Tpsp_Main_Thread_Exit.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]