Function at 0x407f90
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4cf858
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1d80
call fcn.004ae4e0
mov eax, dword [0x500770]
xor eax, esp
mov dword [esp + 0x1d7c], eax
push esi
push edi
mov eax, dword [0x500770]
xor eax, esp
push eax
lea eax, [esp + 0x1d90]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
mov edi, ecx
mov dword [esp + 0x18], 8
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, edi
call fcn.00491b11
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x14]
call fcn.00401f00
push str.Peanuthull_5.0.0.1
push 1
push 0
mov dword [esp + 0x1da4], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4080c4
push 0
push 0x4d9b40
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4080ad
mov ecx, dword [esp + 0x10]
cmp dword [ecx - 0xc], 0
jl 0x408092
push 0x4d9b78
push ecx
call fcn.004a84f5
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x40806f
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x40809d
cmp dword [ecx - 0xc], 0
jl 0x408092
push 0x4d9b80
push ecx
call fcn.004a84f5
add esp, 8
test eax, eax
je 0x408092
sub eax, dword [esp + 0x10]
sar eax, 1
cmp eax, 0xffffffff
jne 0x40809d
push 0
push 0
push 0x467
jmp 0x4080a6
push 0
push 0
push 0x4c8
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [esp + 0x1d98], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x4081c3
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 0xc]
test eax, eax
jl 0x4080f2
push 0x4d9b78
push ecx
call fcn.004a84f5
mov ecx, dword [esp + 0x18]
add esp, 8
test eax, eax
je 0x4080f2
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4081b5
cmp dword [ecx - 0xc], 0
jl 0x40811b
push 0x4d9b80
push ecx
call fcn.004a84f5
add esp, 8
test eax, eax
je 0x40811b
mov ecx, dword [esp + 0x10]
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x4081b5
call fcn.0049402d
mov eax, dword [eax + 8]
lea ecx, [esp + 0x1c]
push ecx
push str.32770
push eax
call dword [sym.imp.USER32.dll_GetClassInfoW]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x44], 0x4d9b40
call fcn.0048ef93
push 0
call fcn.0049322e
add esp, 4
call fcn.0049402d
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x44]
mov esi, 0x506f68
call fcn.0045b730
push 0x4d9ba4
mov ecx, edi
call fcn.004940ac
lea eax, [esp + 0x44]
push eax
call fcn.00444a30
lea ecx, [esp + 0x44]
mov byte [esp + 0x1d98], 1
mov dword [edi + 0x20], ecx
call fcn.004903b4
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x1d9c], 0
call fcn.00444ba0
mov dword [esp + 0x1d98], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
jmp 0x4081c3
mov dword [esp + 0x1d98], 0xffffffff
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1d90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1d7c]
xor ecx, esp
call fcn.004a74b2
mov esp, ebp
pop ebp
ret