Function at 0x406bd6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x47b0e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x208
mov dword [ebp - 0x248], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00431220
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
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.Logupdate.log
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00411ae0
push str.http:__s.conchdesktop.com_desktop_pidpidmidmidmid2mid2appverappvermodvermodvertypetypeactionactionappapp
lea ecx, [ebp - 0x240]
call fcn.00402826
mov eax, dword [ebp - 0x240]
push ecx
add eax, 0xfffffff0
mov esi, esp
push eax
mov dword [ebp - 0x24c], eax
call fcn.00403187
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x244]
pop ecx
push eax
call fcn.0040444f
pop ecx
pop ecx
push dword [ebp - 0x244]
push str.v3update
push 2
call fcn.004058fe
mov ecx, eax
call fcn.00412910
push str.50B7F695_314A_4EB7_B6D0_AFE539A40FC0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x406da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406da9
call fcn.004117e0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x406d98
push 0xf
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp - 0x23c]
pop ebx
push 0x38
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdate.cpp
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x23c], al
call fcn.00405f4b
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x224]
push 3
push 0x462dc8
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x224], 0
call fcn.00405f4b
call fcn.004117e0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x22
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405063
mov esi, eax
push 0x462dcc
push esi
call fcn.00405624
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00405733
lea ecx, [ebp - 0x224]
call fcn.00405db0
lea ecx, [ebp - 0x23c]
call fcn.00405db0
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407083
lea ecx, [ebp - 0x290]
call fcn.0040b59f
call fcn.004117e0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
push 0xf
pop ebx
sub eax, 1
jne 0x406e77
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x224]
push 0x38
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdate.cpp
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x224], 0
call fcn.00405f4b
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x462dc8
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x23c], 0
call fcn.00405f4b
call fcn.004117e0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x2a
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00405063
mov esi, eax
push 0x462de8
push esi
call fcn.00405624
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00405733
lea ecx, [ebp - 0x23c]
call fcn.00405db0
lea ecx, [ebp - 0x224]
call fcn.00405db0
lea ecx, [ebp - 0x290]
call fcn.0040be97
call fcn.004117e0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x406f4d
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x38
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdate.cpp
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x224], al
call fcn.00405f4b
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x462dc8
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x23c], 0
call fcn.00405f4b
call fcn.004117e0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x2c
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00405063
mov esi, eax
push 0x462e04
push esi
call fcn.00405624
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00405733
lea ecx, [ebp - 0x23c]
call fcn.00405db0
lea ecx, [ebp - 0x224]
call fcn.00405db0
jmp 0x406f4d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x290]
call fcn.0040bb71
test eax, eax
je 0x406f42
lea ecx, [ebp - 0x290]
call fcn.0040b825
call fcn.004117e0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x407025
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x38
push str.d:jenkins.jenkinsworkspacehalodeskupdateupdate.cpp
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x224], al
call fcn.00405f4b
and dword [ebp - 0x22c], 0
lea ecx, [ebp - 0x23c]
push 3
push 0x462dc8
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x23c], 0
call fcn.00405f4b
call fcn.004117e0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x33
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00405063
mov esi, eax
push 0x462e10
push esi
call fcn.00405624
mov edx, dword [edi]
pop ecx
pop ecx
push esi
mov ecx, edi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x328]
call fcn.00405733
lea ecx, [ebp - 0x23c]
call fcn.00405db0
lea ecx, [ebp - 0x224]
call fcn.00405db0
xor eax, eax
push eax
push eax
push 1
push eax
push str.update_succ
call fcn.004058fe
mov ecx, eax
call fcn.00412930
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x290]
call fcn.0040b80c
push ecx
mov ecx, esp
push dword [ebp - 0x248]
call fcn.00402826
lea ecx, [ebp - 0x290]
call fcn.0040bb75
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x290]
call fcn.0040b5ca
call fcn.00411d90
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
call fcn.004041cf
mov ecx, dword [ebp - 0x24c]
call fcn.004041cf
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf51
leave
ret 0x10