Function at 0x403780
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51fc01
mov eax, dword fs:[0]
push eax
sub esp, 0x668
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x660], eax
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x678]
mov dword fs:[0], eax
mov eax, ecx
cmp dword [eax + 0x1c], 8
mov dword [esp + 0x10], eax
jb 0x4037d1
mov eax, dword [eax + 8]
jmp 0x4037d4
add eax, 8
push eax
push str.CSendDotDataCmd_cmd___s
call fcn.00419b30
xor ebx, ebx
push 0x206
lea eax, [esp + 0x26a]
push ebx
push eax
mov word [esp + 0x270], bx
call fcn.00435740
add esp, 0x14
xor eax, eax
movzx ecx, word [eax + str.SmartCloud]
mov word [esp + eax + 0x25c], cx
add eax, 2
cmp cx, bx
jne 0x403801
lea edi, [esp + 0x25c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x403822
mov ecx, 8
mov esi, str.CSendDotDataCmd
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x25c]
push ecx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, edx
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0x680], ebx
jne 0x40388b
cmp esi, ebx
je 0x403884
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403a09
push 0x206
lea eax, [esp + 0x5a]
push ebx
push eax
mov word [esp + 0x60], bx
call fcn.00435740
add esp, 0xc
push 0x206
lea ecx, [esp + 0x46a]
push ebx
push ecx
mov word [esp + 0x470], bx
call fcn.00435740
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp dword [eax + 0x1c], 8
jb 0x4038d0
mov eax, dword [eax + 8]
jmp 0x4038d3
add eax, 8
lea edx, [esp + 0x464]
push edx
lea ecx, [esp + 0x58]
push ecx
push str._s__s
push eax
call fcn.0042ed78
mov edi, 7
lea eax, [esp + 0x64]
add esp, 0x10
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x403907
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x58]
push edx
lea esi, [esp + 0x24]
call fcn.004021f0
lea eax, [esp + 0x38]
push eax
mov ecx, esi
mov byte [esp + 0x684], 1
call fcn.0040d2f0
add esp, 4
mov byte [esp + 0x680], 3
cmp dword [esp + 0x34], 8
jb 0x403958
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0042eca7
add esp, 4
lea edx, [esp + 0x464]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.0042f042
mov esi, dword [esp + 0x40]
xor ecx, ecx
add esp, 4
test eax, eax
setg cl
cmp dword [esp + 0x50], 0x10
mov eax, ecx
push eax
jae 0x40398e
lea esi, [esp + 0x40]
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov dword [esp + 0x30], esp
mov byte [ecx + 4], bl
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4039b0
sub eax, edi
push eax
push esi
call fcn.004053d0
call fcn.00408680
add esp, 0x20
cmp dword [esp + 0x50], 0x10
jb 0x4039de
mov edx, dword [esp + 0x3c]
push edx
call fcn.0042eca7
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, ebx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
je 0x403a04
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x678]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x660]
xor ecx, esp
call fcn.0042eb95
mov esp, ebp
pop ebp
ret