Function at 0x4063f8
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
mov eax, dword [0x47f0a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x260], ebx
call fcn.004320f0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call esi
lea eax, [ebp - 0x20c]
push eax
call esi
push str.V3update.log
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00411850
push str.http:__s.ludashi.com_store
lea ecx, [ebp - 0x258]
call fcn.00402d97
push 0x68
push str._pidpidmidmidmid2mid2appverappvermodvermodvertypetypeactionactionapppcstore
lea ecx, [ebp - 0x258]
call fcn.00402ddd
mov eax, dword [ebp - 0x258]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x264], eax
call fcn.00402fad
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x25c]
pop ecx
push eax
call fcn.00403d9f
pop ecx
pop ecx
push dword [ebp - 0x25c]
push 0x467bfc
push 2
call fcn.00405177
mov ecx, eax
call fcn.00412680
push ebx
call fcn.00405121
mov ecx, eax
call fcn.00402b2f
push str.AB4A44A7_AFA1_4527_8089_E08348103CBB
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [ebp - 0x258], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x406879
cmp eax, 5
je 0x406879
lea ecx, [ebp - 0x2a8]
call fcn.0040acff
call fcn.00411550
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
push 0xf
pop esi
sub eax, 1
jne 0x4065ed
push 0x3f
xor ebx, ebx
mov dword [ebp - 0x210], esi
push str.d:jenkins.jenkinsworkspacepcstorepcstore_updateupdate.cpp
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x224], bl
call fcn.0040576d
push 3
push 0x467ca0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], esi
mov byte [ebp - 0x23c], bl
call fcn.0040576d
call fcn.00411550
mov edi, eax
lea ecx, [ebp - 0x340]
push 0x29
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00404886
mov esi, eax
push 0x467ca4
push esi
call fcn.00404e47
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x340]
call fcn.00404f56
lea ecx, [ebp - 0x23c]
call fcn.0040562a
lea ecx, [ebp - 0x224]
call fcn.0040562a
push 0xf
pop esi
jmp 0x4065ef
xor ebx, ebx
lea ecx, [ebp - 0x2a8]
call fcn.0040bc02
call fcn.00411550
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x4066b6
push 0x3f
push str.d:jenkins.jenkinsworkspacepcstorepcstore_updateupdate.cpp
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], esi
mov byte [ebp - 0x23c], bl
call fcn.0040576d
push 3
push 0x467ca0
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x224], bl
call fcn.0040576d
call fcn.00411550
mov edi, eax
lea ecx, [ebp - 0x340]
push 0x2b
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00404886
mov esi, eax
push 0x467cc0
push esi
call fcn.00404e47
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x340]
call fcn.00404f56
lea ecx, [ebp - 0x224]
call fcn.0040562a
lea ecx, [ebp - 0x23c]
call fcn.0040562a
lea ecx, [ebp - 0x2a8]
call fcn.0040b866
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4066db
push 0xc8
call ebx
lea ecx, [ebp - 0x2a8]
call fcn.0040b866
test eax, eax
je 0x4066c9
lea ecx, [ebp - 0x2a8]
call fcn.0040b42d
call fcn.00411550
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x4067ab
and dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x23c]
push 0xf
pop esi
push 0x3f
push str.d:jenkins.jenkinsworkspacepcstorepcstore_updateupdate.cpp
mov dword [ebp - 0x228], esi
mov byte [ebp - 0x23c], al
call fcn.0040576d
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x224]
push 3
push 0x467ca0
mov dword [ebp - 0x210], esi
mov byte [ebp - 0x224], 0
call fcn.0040576d
call fcn.00411550
mov edi, eax
lea ecx, [ebp - 0x340]
push 0x32
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00404886
mov esi, eax
push 0x467ccc
push esi
call fcn.00404e47
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x340]
call fcn.00404f56
lea ecx, [ebp - 0x224]
call fcn.0040562a
lea ecx, [ebp - 0x23c]
call fcn.0040562a
lea ecx, [ebp - 0x2a8]
call fcn.0040b1fc
and dword [ebp - 0x244], 0
xor eax, eax
and dword [ebp - 0x214], eax
push 7
pop ecx
mov dword [ebp - 0x240], ecx
mov dword [ebp - 0x210], ecx
lea ecx, [ebp - 0x224]
push str.entry
mov word [ebp - 0x254], ax
mov word [ebp - 0x224], ax
call fcn.00402cf9
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405121
mov ecx, eax
call fcn.00402afc
lea ecx, [ebp - 0x224]
call fcn.00402ca1
sub esp, 0x18
lea eax, [ebp - 0x254]
mov ecx, esp
push eax
and dword [ecx + 0x10], 0
and dword [ecx + 0x14], 0
call fcn.00402be5
push ecx
mov ecx, esp
push dword [ebp - 0x260]
call fcn.00402d97
lea ecx, [ebp - 0x2a8]
call fcn.0040b86a
push 0xbb8
call ebx
call fcn.004051cd
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x254]
call fcn.00402ca1
lea ecx, [ebp - 0x2a8]
call fcn.0040ad2a
jmp 0x406880
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00411b00
mov ecx, dword [ebp - 0x25c]
lea ecx, [ecx - 0x10]
call fcn.00403b1f
mov ecx, dword [ebp - 0x264]
call fcn.00403b1f
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041439b
leave
ret 0x10