Function at 0x403810
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426b6f
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4310b0]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push esi
mov eax, dword [0x4310b0]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push edi
call fcn.004044d0
test al, al
je 0x403a7a
mov eax, dword [ebp + 8]
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 0x60], 0
mov dword [edi + 0xc], eax
mov ebx, 8
jne 0x4038f7
lea esi, [esp + 0x40]
call fcn.00407910
push str.Dumps_
push eax
lea ecx, [esp + 0x2c]
xor esi, esi
push ecx
mov dword [esp + 0xf4], esi
call fcn.004040f0
add esp, 0xc
push eax
lea ecx, [edi + 0x50]
mov byte [esp + 0xec], 1
call fcn.00403440
cmp dword [esp + 0x38], ebx
jb 0x4038c6
mov edx, dword [esp + 0x24]
push edx
call fcn.0040ed11
add esp, 4
xor eax, eax
mov dword [esp + 0xe8], 0xffffffff
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], esi
mov word [esp + 0x24], ax
cmp dword [esp + 0x54], ebx
jb 0x4038f7
mov ecx, dword [esp + 0x40]
push ecx
call fcn.0040ed11
add esp, 4
cmp byte [edi + 6], 0
je 0x403923
cmp dword [edi + 0x48], ebx
lea eax, [edi + 0x34]
jb 0x403907
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403a7a
push str.NeteaseClientNewCrashMessage
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push 0x28
mov dword [edi + 0x10], eax
call fcn.0040ed6d
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0xe8], 2
cmp esi, ebx
je 0x4039a9
mov dword [esi], 0x42e6ac
push 0x7c
mov dword [esi + 0x20], ebx
call fcn.0040ed6d
add esp, 4
cmp eax, ebx
je 0x403980
mov dword [esi + 0x1c], eax
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
lea edx, [esi + 4]
push edx
mov dword [eax + 4], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x4039ab
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], ebx
call fcn.0040e8f9
push 0x42f4a0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], vtable.std::bad_alloc.0
call fcn.004102c2
xor esi, esi
mov dword [esp + 0xe8], 0xffffffff
mov dword [edi + 0xa4], esi
cmp esi, ebx
je 0x403a7a
push 0xc
call fcn.0040ed6d
add esp, 4
cmp eax, ebx
je 0x4039e0
mov dword [eax], 0x42e698
mov byte [eax + 4], bl
mov dword [eax + 8], ebx
jmp 0x4039e2
xor eax, eax
mov dword [edi + 0xa8], eax
cmp eax, ebx
je 0x403a7a
mov edx, dword [edi + 8]
push edx
mov ebx, eax
call fcn.00406460
test al, al
je 0x403a7a
cmp byte [edi + 7], 0
je 0x403aa1
push 0xc4
call fcn.0040ed6d
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0xe8], 3
test eax, eax
je 0x403a54
lea ecx, [edi + 0x50]
push ecx
push 1
push 0
push 0
push edi
push fcn.00401040
push edi
push 0x404380
push edi
push fcn.00401040
lea edx, [edi + 0x34]
push 0
push edx
mov ecx, eax
call fcn.0040cbe0
jmp 0x403a56
xor eax, eax
mov dword [esp + 0xe8], 0xffffffff
mov dword [edi + 0xb8], eax
test eax, eax
je 0x403a7a
mov ecx, eax
call fcn.0040d1b0
test al, al
jne 0x403afb
xor al, al
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.0040e862
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0x5c]
push edx
call fcn.00403b10
lea edx, [esp + 0x5c]
mov ecx, edi
mov dword [esp + 0xe8], 4
call fcn.00405700
test al, al
je 0x403adc
mov esi, dword [edi + 0xa4]
lea eax, [esp + 0x5c]
push eax
call fcn.00406270
mov ecx, edi
call fcn.00403ec0
cmp byte [edi + 4], 0
je 0x403ae6
mov byte [edi + 5], 1
lea ecx, [esp + 0x5c]
push ecx
mov dword [esp + 0xec], 0xffffffff
call fcn.00401200
mov al, 1
jmp 0x403a7c