Function at 0x405130
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 0x4efc75
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x51d584]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x51d584]
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 + 0x96]
movzx edx, word [esp + 0x92]
xor eax, eax
push ecx
mov dword [esp + 0x11d], eax
mov dword [esp + 0x121], eax
mov dword [esp + 0x125], eax
mov dword [esp + 0x129], eax
mov word [esp + 0x12d], ax
mov byte [esp + 0x12f], al
movzx eax, word [esp + 0x94]
push edx
push eax
xor ebx, ebx
push str.Singon__d__d__d
lea edx, [esp + 0x128]
mov byte [esp + 0x128], bl
call fcn.00405c00
add esp, 0x10
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]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405260
sub eax, edx
push eax
lea ecx, [esp + 0x11c]
push ecx
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 0x405298
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.004212c0
add esp, 4
lea esi, [esp + 0xbc]
lea ebx, [esp + 0x34]
call fcn.00421380
lea edx, [esp + 0x12c]
push edx
mov eax, ebx
push eax
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]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405328
sub eax, edx
push eax
lea ecx, [esp + 0x130]
push ecx
lea ecx, [esp + 0x60]
call fcn.00402a70
mov byte [esp + 0x160], 1
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0x405359
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 0x4053ff
push str.Found_an_Existing_Instance.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, ebx
je 0x40538b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x160], 0
cmp dword [esp + 0x6c], edi
jb 0x4053a6
mov edx, dword [esp + 0x58]
push edx
call fcn.00480d64
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 0x4053d8
mov eax, dword [esp + 0x74]
push eax
call fcn.00480d64
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.004809b9
mov esp, ebp
pop ebp
ret
push str.Tpsp_Begin_to_Start.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00404010
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push 0x50c250
push ebx
push ebx
mov dword [0x525320], 0x28
mov dword [0x525324], ebx
mov dword [0x525328], 0x50c2b0
mov dword [0x52532c], 0x50c2dc
mov dword [0x525334], 0x50c250
call edi
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.00481751
add esp, 4
push 0
push 0
push ebx
mov esi, eax
push esi
push 0xffffffffffffffff
push 0x50c250
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]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4054a0
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.00481b34
add esp, 4
push 0xffffffffffffffff
push edi
lea edx, [esp + 0xa8]
push edx
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 eax, [esp + 0x3c]
push eax
mov ecx, 0x523b9c
mov byte [esp + 0x16c], 3
call fcn.00402c60
mov edi, 0x10
mov byte [esp + 0x160], bl
cmp dword [esp + 0x48], edi
jb 0x405527
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00480d64
add esp, 4
lea ebx, [esp + 0x34]
mov dword [0x525338], 0x12c
mov dword [0x52533c], 0x278d00
mov dword [0x525340], 0xe10
call fcn.00449fa0
mov byte [esp + 0x160], 4
cmp dword [eax + 0x14], edi
jb 0x40555f
mov ebx, dword [eax]
jmp 0x405561
mov ebx, eax
lea esi, [esp + 0x14]
call fcn.00404f20
mov byte [esp + 0x160], 2
mov esi, eax
cmp dword [esp + 0x48], edi
jb 0x405587
mov edx, dword [esp + 0x34]
push edx
call fcn.00480d64
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 [0x525430], al
jne 0x405601
or dword [0x525430], eax
mov byte [esp + 0x160], 5
xor eax, eax
mov word [0x525414], ax
mov eax, esi
mov dword [0x525428], 7
mov dword [0x525424], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4055d1
sub eax, edx
sar eax, 1
push eax
push esi
mov ecx, 0x525414
call fcn.00405890
push 0x4f7800
call fcn.00481527
add esp, 4
mov byte [esp + 0x160], 2
push esi
call fcn.00481b34
add esp, 4
cmp dword [0x525428], 8
jb 0x405621
mov ecx, dword [0x525414]
mov dword [0x525344], ecx
jmp 0x40562b
mov dword [0x525344], 0x525414
push 0x525320
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], ebx
call fcn.00405030
test eax, eax
jne 0x405655
mov eax, dword [esp + 0x14]
push eax
push ebx
push 0x405110
call fcn.00481823
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 0x4056a3
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x405690
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [esp + 0x14], ebx
je 0x4056a3
push edi
call fcn.0044b330
add esp, 4
cmp eax, ebx
jne 0x4056a9
push edi
call fcn.00422a50
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push ebx
push ebx
push ebx
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
je 0x4056f1
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esp, [esp]
lea eax, [esp + 0x18]
push eax
call edi
lea ecx, [esp + 0x18]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
call esi
test eax, eax
jne 0x4056d0
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]