Function at 0x406bd6
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x47c0e4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push 0x208
mov dword [ebp - 0x24c], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004317b0
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.00411ad0
lea eax, [ebp - 0x248]
push 2
push eax
call fcn.0041cd50
mov eax, dword [ebp - 0x248]
pop ecx
add eax, 0xfffffff0
mov esi, esp
push 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.00412900
push str.B3C25284_F29B_4604_A355_A7305B2D53EC
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebp - 0x240], eax
test eax, eax
je 0x406da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x406da1
call fcn.004117d0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x406d90
push 0xf
mov dword [ebp - 0x22c], ebx
lea ecx, [ebp - 0x23c]
pop ebx
push 0x4b
push str.d:jenkins.jenkinsworkspacemgame_adblock_adblockmaster_updateupdate.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 0x463cc4
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x224], 0
call fcn.00405f4b
call fcn.004117d0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x20
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.00405063
mov esi, eax
push 0x463cc8
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 0x40707b
lea ecx, [ebp - 0x290]
call fcn.0040b59a
call fcn.004117d0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
push 0xf
pop ebx
sub eax, 1
jne 0x406e6f
and dword [ebp - 0x214], 0
lea ecx, [ebp - 0x224]
push 0x4b
push str.d:jenkins.jenkinsworkspacemgame_adblock_adblockmaster_updateupdate.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 0x463cc4
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x23c], 0
call fcn.00405f4b
call fcn.004117d0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x28
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00405063
mov esi, eax
push 0x463ce4
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.0040be92
call fcn.004117d0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x406f45
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x4b
push str.d:jenkins.jenkinsworkspacemgame_adblock_adblockmaster_updateupdate.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 0x463cc4
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x23c], 0
call fcn.00405f4b
call fcn.004117d0
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 0x463d00
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 0x406f45
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x290]
call fcn.0040bb6c
test eax, eax
je 0x406f3a
lea ecx, [ebp - 0x290]
call fcn.0040b820
call fcn.004117d0
push 1
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 8]
movzx eax, al
sub eax, 1
jne 0x40701d
and dword [ebp - 0x214], eax
lea ecx, [ebp - 0x224]
push 0x4b
push str.d:jenkins.jenkinsworkspacemgame_adblock_adblockmaster_updateupdate.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 0x463cc4
mov dword [ebp - 0x228], ebx
mov byte [ebp - 0x23c], 0
call fcn.00405f4b
call fcn.004117d0
mov edi, eax
lea ecx, [ebp - 0x328]
push 0x31
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00405063
mov esi, eax
push 0x463d0c
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.00412920
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x290]
call fcn.0040b807
push ecx
mov ecx, esp
push dword [ebp - 0x24c]
call fcn.00402826
lea ecx, [ebp - 0x290]
call fcn.0040bb70
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x290]
call fcn.0040b5c5
call fcn.00411d80
mov ecx, dword [ebp - 0x244]
lea ecx, [ecx - 0x10]
call fcn.004041cf
mov ecx, dword [ebp - 0x248]
lea ecx, [ecx - 0x10]
call fcn.004041cf
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bf41
leave
ret 0x10