Function at 0x437620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af95f
mov eax, dword fs:[0]
push eax
sub esp, 0x86c
mov eax, dword [0x677e70]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.terabox_AutoUpdate_677ABF83_442D_4ddb_9CC0_C441A237A44C
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [ebp - 0x824], esi
test esi, esi
je 0x437689
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x437689
mov eax, 1
jmp 0x437993
mov dword [ebp - 0x834], esi
push 2
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 1
push str.terabox_autoupdate
push eax
call fcn.0040cfa0
add esp, 4
mov byte [ebp - 4], 2
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x814]
mov eax, dword [ebp - 0x81c]
cmp eax, ecx
je 0x4376e9
push eax
call fcn.0053eac5
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x81c]
push 0x654354
push eax
call fcn.0040cfa0
add esp, 8
mov byte [ebp - 4], 3
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x81c]
lea ecx, [ebp - 0x814]
cmp eax, ecx
je 0x437731
push eax
call fcn.0053eac5
add esp, 4
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 4
call fcn.0042b2a0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 6
mov dword [ebp - 0x878], eax
call fcn.0042b6b0
mov ecx, eax
test ecx, ecx
je 0x43777b
mov eax, dword [ecx]
lea edx, [ebp - 0x878]
push edx
call dword [eax + 4]
call fcn.0042b930
mov ecx, eax
test ecx, ecx
je 0x43777b
mov eax, dword [ecx]
lea edx, [ebp - 0x878]
push edx
call dword [eax + 4]
lea ecx, [ebp - 0x878]
call fcn.004380b0
lea ecx, [ebp - 0x878]
call fcn.004383a0
lea ecx, [ebp - 0x878]
call fcn.00438860
lea eax, [ebp - 0x878]
mov dword [0x695d80], eax
call fcn.004321e0
call fcn.00407630
mov ecx, eax
call fcn.00407750
lea eax, [ebp - 0x878]
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x830]
call fcn.00437b60
lea eax, [ebp - 0x878]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x830]
call fcn.0041fae0
mov byte [ebp - 4], 8
or edi, 0xffffffff
mov edx, dword [ebp - 0x828]
mov ebx, eax
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test ebx, ebx
jns 0x43787a
test eax, eax
jg 0x43780f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x82c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x43782a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - method.ISystemUpdater.virtual_0], vtable.ISystemUpdater.0
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 0xa
call fcn.00438040
lea ecx, [ebp - 0x878]
call fcn.00437a80
mov byte [ebp - 4], 0xb
call fcn.0043b710
push ecx
push 0x654318
push 0
mov ecx, eax
call fcn.0043bad0
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
jmp 0x437993
test eax, eax
jg 0x437886
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x82c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x4378a1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - method.ISystemUpdater.virtual_0], vtable.ISystemUpdater.0
lea ecx, [ebp - 0x878]
mov byte [ebp - 4], 0xc
call fcn.00438040
mov dword [ebp - 4], 5
jmp 0x4378ea
test ebx, ebx
jns 0x437961
jmp 0x437913
push str.WinMain
push 0x35
push str.Autoupdate.cpp
push ebx
lea eax, [ebp - 0x81c]
push str.EXECEPTION:__X__File:__s__Line:__d__Func:__s
push eax
call fcn.0040cfa0
add esp, 0x14
mov byte [ebp - 4], 0xe
push dword [eax]
push 0
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
mov eax, dword [ebp - 0x81c]
lea ecx, [ebp - 0x814]
cmp eax, ecx
je 0x437961
push eax
call fcn.0053eac5
add esp, 4
lea ecx, [ebp - 0x878]
call fcn.00437a80
push ecx
push 0x654318
push 0
mov byte [ebp - 4], 0xf
call fcn.0043b710
mov ecx, eax
call fcn.0043bad0
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0053e4b1
mov esp, ebp
pop ebp
ret 0x10