Function at 0x404f10
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cd76
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2e4
mov eax, dword [0x438df0]
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x14], 0xff
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, dword [ebp - 0x2a4]
call fcn.0040c0f9
lea ecx, [ebp - 0x20]
call fcn.0040e23f
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
push 0x24
call fcn.0040ba51
add esp, 4
mov dword [ebp - 0x2a8], eax
mov ecx, dword [ebp - 0x2a8]
mov dword [ebp - 0x260], ecx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x260], 0
je 0x404fc6
mov ecx, dword [ebp - 0x260]
call fcn.004061b0
mov dword [ebp - 0x2ac], eax
mov edx, dword [ebp - 0x2ac]
mov dword [ebp - 0x2b0], edx
jmp 0x404fd0
mov dword [ebp - 0x2b0], 0
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x25c]
mov dword [0x43a19c], ecx
mov edx, dword [0x43a19c]
movzx eax, byte [edx + 4]
cmp eax, 1
jne 0x405024
call fcn.0040b320
mov dword [ebp - 0x264], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004059d0
mov eax, dword [ebp - 0x264]
jmp 0x4056e1
mov ecx, dword [0x43a19c]
movzx edx, byte [ecx + 2]
cmp edx, 1
jne 0x40505c
call fcn.0040add0
mov dword [ebp - 0x268], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004059d0
mov eax, dword [ebp - 0x268]
jmp 0x4056e1
mov eax, dword [0x43a19c]
movzx ecx, byte [eax + 3]
cmp ecx, 1
jne 0x405093
call fcn.0040b070
mov dword [ebp - 0x26c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004059d0
mov eax, dword [ebp - 0x26c]
jmp 0x4056e1
mov edx, dword [0x43a19c]
movzx eax, byte [edx]
cmp eax, 1
jne 0x40513c
lea ecx, [ebp - 0x144]
call fcn.00405a80
mov byte [ebp - 4], 3
push str.1.01.0001
push str.ver.____s
lea ecx, [ebp - 0x144]
push ecx
call fcn.004060d0
add esp, 0xc
call fcn.00405a10
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
call fcn.00405a50
mov dword [ebp - 0x2b8], eax
push 0
push str.WirelessSetupChecker.
lea ecx, [ebp - 0x144]
call fcn.00409540
push eax
mov edx, dword [ebp - 0x2b8]
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [ebp - 0x270], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x144]
call fcn.004093e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004059d0
mov eax, dword [ebp - 0x270]
jmp 0x4056e1
push 0x42e7fc
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x43a198], eax
cmp dword [0x43a198], 0
je 0x405166
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40518a
mov dword [ebp - 0x274], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004059d0
mov eax, dword [ebp - 0x274]
jmp 0x4056e1
push 8
call fcn.0040ba51
add esp, 4
mov dword [ebp - 0x2bc], eax
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x27c], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x27c], 0
je 0x4051d2
mov ecx, dword [ebp - 0x27c]
call fcn.00403d20
mov dword [ebp - 0x2c0], eax
mov ecx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2c4], ecx
jmp 0x4051dc
mov dword [ebp - 0x2c4], 0
mov edx, dword [ebp - 0x2c4]
mov dword [ebp - 0x278], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x278]
mov dword [0x43a1a0], eax
cmp dword [0x43a1a0], 0
je 0x4052a7
push str.BWSH
mov ecx, dword [0x43a1a0]
call fcn.00403e60
mov dword [ebp - 0x2c8], eax
cmp dword [ebp - 0x2c8], 0
jne 0x405280
mov ecx, dword [0x43a1a0]
mov dword [ebp - 0x284], ecx
mov edx, dword [ebp - 0x284]
mov dword [ebp - 0x280], edx
cmp dword [ebp - 0x280], 0
je 0x40526c
push 1
mov eax, dword [ebp - 0x280]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x280]
mov eax, dword [edx]
call eax
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], ecx
jmp 0x405276
mov dword [ebp - 0x2d0], 0
mov dword [0x43a1a0], 0
cmp dword [0x43a1a0], 0
je 0x4052a7
push 0x42e80c
push 0x42e814
push 0x40000
mov edx, dword [0x43a1a0]
push edx
call fcn.00403f10
add esp, 0x10
push 0x14
call fcn.0040ba51
add esp, 4
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x28c], 0
je 0x4052ef
mov ecx, dword [ebp - 0x28c]
call fcn.00406920
mov dword [ebp - 0x2d8], eax
mov ecx, dword [ebp - 0x2d8]
mov dword [ebp - 0x2dc], ecx
jmp 0x4052f9
mov dword [ebp - 0x2dc], 0
mov edx, dword [ebp - 0x2dc]
mov dword [ebp - 0x288], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x288]
mov dword [0x43a1a4], eax
push 0x84
call fcn.0040ba51
add esp, 4
mov dword [ebp - 0x2e0], eax
mov ecx, dword [ebp - 0x2e0]
mov dword [ebp - 0x294], ecx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x294], 0
je 0x40535f
mov ecx, dword [ebp - 0x294]
call fcn.00406b00
mov dword [ebp - 0x2e4], eax
mov edx, dword [ebp - 0x2e4]
mov dword [ebp - 0x2e8], edx
jmp 0x405369
mov dword [ebp - 0x2e8], 0
mov eax, dword [ebp - 0x2e8]
mov dword [ebp - 0x290], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x134], ecx
lea ecx, [ebp - 0x138]
call fcn.00405a80
mov byte [ebp - 4], 7
push 0x104
lea edx, [ebp - 0x130]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x4053c9
push 0x42e83c
lea ecx, [ebp - 0x138]
call fcn.00405aa0
jmp 0x405423
push 0
push 0
push 0x104
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x130]
push ecx
call fcn.00418705
add esp, 0x24
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
je 0x405411
push 0x42e854
lea ecx, [ebp - 0x138]
call fcn.00405aa0
jmp 0x405423
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x138]
call fcn.00405aa0
push str._Brother_Wireless_Setup_Helper_
lea ecx, [ebp - 0x138]
call fcn.00409540
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00406bf0
mov ecx, dword [ebp - 0x134]
call fcn.00408640
mov eax, dword [0x43a1a4]
add eax, 0xc
push eax
mov ecx, dword [0x43a1a4]
add ecx, 8
push ecx
mov edx, dword [0x43a1a4]
add edx, 4
push edx
mov eax, dword [0x43a1a4]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.00408ad0
mov byte [ebp - 0x2e9], al
mov cl, byte [ebp - 0x2e9]
mov byte [ebp - 0x139], cl
cmp dword [0x43a1a0], 0
je 0x4054ba
mov edx, dword [0x43a1a4]
mov eax, dword [edx]
push eax
push 0x42e88c
push str._s_SSID_is___s_n
push 0x40000
mov ecx, dword [0x43a1a0]
push ecx
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a1a0], 0
je 0x4054eb
mov edx, dword [0x43a1a4]
mov eax, dword [edx + 4]
push eax
push 0x42e8a4
push str._s_Key__is___s_n
push 0x40000
mov ecx, dword [0x43a1a0]
push ecx
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a1a0], 0
je 0x40551c
mov edx, dword [0x43a1a4]
mov eax, dword [edx + 8]
push eax
push 0x42e8bc
push str._s_Auth_is___s_n
push 0x40000
mov ecx, dword [0x43a1a0]
push ecx
call fcn.00403f10
add esp, 0x14
cmp dword [0x43a1a0], 0
je 0x40554d
mov edx, dword [0x43a1a4]
mov eax, dword [edx + 0xc]
push eax
push 0x42e8d4
push str._s_Enc__is___s_n
push 0x40000
mov ecx, dword [0x43a1a0]
push ecx
call fcn.00403f10
add esp, 0x14
movzx edx, byte [ebp - 0x139]
push edx
mov ecx, dword [0x43a1a4]
call fcn.00406a20
mov eax, dword [0x43a1a4]
movzx ecx, byte [eax + 0x10]
test ecx, ecx
je 0x4055a6
cmp dword [0x43a1a0], 0
je 0x405594
push 0x42e8ec
push str._s_Suucess_Get_n
push 0x40000
mov edx, dword [0x43a1a0]
push edx
call fcn.00403f10
add esp, 0x10
mov eax, dword [ebp - 0x2a4]
mov dword [eax + 0xa8], 1
jmp 0x4055dd
cmp dword [0x43a1a0], 0
je 0x4055cd
push 0x42e904
push str._s_Failed_Get_n
push 0x40000
mov ecx, dword [0x43a1a0]
push ecx
call fcn.00403f10
add esp, 0x10
mov edx, dword [ebp - 0x2a4]
mov dword [edx + 0xa8], 0
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x29c], eax
mov ecx, dword [ebp - 0x29c]
mov dword [ebp - 0x298], ecx
cmp dword [ebp - 0x298], 0
je 0x40561f
push 1
mov ecx, dword [ebp - 0x298]
call fcn.00405940
mov dword [ebp - 0x2f0], eax
mov edx, dword [ebp - 0x2f0]
mov dword [ebp - 0x2f4], edx
jmp 0x405629
mov dword [ebp - 0x2f4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x138]
call fcn.004093e0
jmp 0x4056ad
mov dword [ebp - 4], 0
jmp 0x4056cd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004059d0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004183cd
mov esp, ebp
pop ebp
ret