Function at 0x402c80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, dword [0x40b004]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.Panabit_SDWAN
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402cf0
push 0x40
push 0x408598
push 0x4085a0
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00406188
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x5a
push edi
mov dword [0x50b3ec], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x40], str.Panabit_GUI
mov dword [esp + 0x20], 0x402970
mov dword [esp + 0x1c], 8
mov dword [esp + 0x18], 0x30
call esi
push 0x5a
push dword [0x50b3ec]
mov dword [esp + 0x30], eax
call esi
push 0x7f00
push 0
mov dword [esp + 0x44], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0x10
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x402ed0
push 0
push edi
push 0
push 0
push 0x235
push 0x1ae
push closesocket
push closesocket
push 0xca0000
push str.Panabit_SDWAN_V1.7
push str.Panabit_GUI
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov eax, dword [0x40b3dc]
test eax, eax
je 0x402ed0
push dword [ebp + 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x40b3dc]
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00405610
mov dword [0x40b3e4], eax
test eax, eax
jne 0x402dee
push str.client_init_failed_n
call fcn.00401750
add esp, 4
jmp 0x402df3
call fcn.00401b10
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
lea eax, [esp + 0x40]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x402e35
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [esp + 0x40]
push eax
call edi
lea eax, [esp + 0x40]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call esi
test eax, eax
jne 0x402e16
cmp dword [0x40b3e4], 0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x402eb2
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, 0x50b8f4
mov dword [0x50b6a8], 1
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x402e6f
push 0xffffffffffffffff
push eax
call ebx
push dword [esi]
call edi
add esi, 4
cmp esi, 0x50b8fc
jl 0x402e60
cmp dword [0x50b910], 0
je 0x402e9b
push dword [0x50b698]
call dword [0x50b958]
push dword [0x50b910]
call dword [0x50b960]
call fcn.00405240
call dword [sym.imp.WS2_32.dll_WSACleanup]
push dword [0x50b95c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [esp + 0xc]
call edi
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00406188
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esp + 0x5c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406188
mov esp, ebp
pop ebp
ret 0x10