Function at 0x10006010
Capabilities:
Check mutex on windows
Hide graphical window

Disassembly:
push ebp
lea ebp, [esp - 0x7c]
sub esp, 0x7c
push 0xffffffffffffffff
push 0x1017a038
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x101e40b0]
xor eax, ebp
mov dword [ebp + 0x78], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 0x84]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push str.RC_Main_Instance_PicHomepage_C24237CB_7988_4196_8FBA_716DD0BC9F5D
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 4], eax
test eax, eax
je 0x10006086
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1000627b
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
push 0xf
xor eax, eax
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
lea ecx, [ebp + 0x30]
push str.RCHomePageFrame
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 7
mov word [ebp + 0x30], ax
call fcn.100056d0
mov dword [ebp - 4], 0
xor eax, eax
push 3
mov dword [ebp + 0x58], 0
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x5c], 0
push 0x101a8cfc
mov dword [ebp + 0x58], 0
mov dword [ebp + 0x5c], 7
mov word [ebp + 0x48], ax
call fcn.100056d0
mov byte [ebp - 4], 1
xor eax, eax
push 0xf
mov dword [ebp + 0x70], 0
lea ecx, [ebp + 0x60]
mov dword [ebp + 0x74], 0
push str.2345PicHome.exe
mov dword [ebp + 0x70], 0
mov dword [ebp + 0x74], 7
mov word [ebp + 0x60], ax
call fcn.100056d0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
cmp dword [ebp + 0x5c], 8
lea eax, [ebp + 0x30]
cmovae ecx, dword [ebp + 0x48]
cmp dword [ebp + 0x44], 8
push ecx
cmovae eax, dword [ebp + 0x30]
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
test edi, edi
je 0x10006234
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10006234
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edx, dword [ebp - 0x10]
test edx, edx
je 0x10006234
lea ecx, [ebp]
call fcn.10032e70
mov byte [ebp - 4], 3
cmp dword [ebp + 0x10], 0
je 0x10006228
lea edx, [ebp]
lea ecx, [ebp + 0x18]
call fcn.100322a0
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x70]
cmp eax, dword [ebp + 0x28]
jne 0x1000621c
cmp dword [ebp + 0x2c], 8
lea edx, [ebp + 0x18]
lea ecx, [ebp + 0x60]
cmovae edx, dword [ebp + 0x18]
cmp dword [ebp + 0x74], 8
cmovae ecx, dword [ebp + 0x60]
call fcn.100308b0
test al, al
je 0x1000621c
push 1
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20], 0
lea eax, [eax*2 + 2]
mov dword [ebp - 0x1c], eax
jb 0x100061f8
mov esi, dword [esi]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], esi
push eax
push 0x1388
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], 0
push eax
push 1
push 0x4a
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x18]
call fcn.10005660
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.10005660
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x60]
call fcn.10005660
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x48]
call fcn.10005660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x30]
call fcn.10005660
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.10177d47
lea esp, [ebp + 0x7c]
pop ebp
ret 4
mov al, 1
jmp 0x1000625d