Function at 0x408500
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe30
mov eax, 0x589304
push ebx
push esi
push edi
call fcn.0056134c
mov ebx, 0x586fab
push 0x586fb4
push 0
push 0x1f0001
call sub.KERNEL32.DLL_OpenMutexA
mov dword [ebp - 0x54], eax
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
push 0x586fbc
mov edx, dword [ebp + 8]
add edx, 0x6e8
push edx
call fcn.00563300
add esp, 8
mov esi, eax
push esi
push 1
push 8
push ebx
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 8
push str.gDio
call fcn.005637ec
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.00408f30
pop ecx
push esi
push 1
push 4
push 0x58f288
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f28c
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push str._n_PPP
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f294
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f298
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f29c
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2a0
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2a8
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2a4
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2ac
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2b0
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2b4
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2bc
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
push 0x58f2b8
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 0x40
push 0x5ae930
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 0x20
push 0x5ae970
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 0x40
push 0x5ae990
call fcn.005637ec
add esp, 0x10
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x428]
mov eax, dword [ecx + 0x20c]
call fcn.00539378
mov dword [ebp - 0x48], eax
push esi
push 1
push 4
lea edx, [ebp - 0x48]
push edx
call fcn.005637ec
add esp, 0x10
xor ebx, ebx
mov eax, dword [ebp - 0x48]
cmp ebx, eax
jae 0x40878c
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x428]
mov edx, ebx
mov eax, dword [ecx + 0x20c]
call fcn.005393a8
mov edi, eax
add edi, 0x24
mov eax, dword [edi]
test eax, eax
je 0x408709
mov edx, dword [edi]
jmp 0x40870e
mov edx, 0x586fbf
push edx
call fcn.004012c0
pop ecx
mov dword [ebp - 0x50], eax
mov word [ebp - 0x34], 8
mov eax, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [eax + 0x428]
mov eax, dword [ecx + 0x20c]
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], ecx
inc dword [ebp - 0x28]
lea ecx, [ebp - 4]
mov eax, dword [ebp - 0x58]
mov edx, 1
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 4]
call fcn.00583ecc
mov dword [ebp - 0x4c], eax
dec dword [ebp - 0x28]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00583ae8
push esi
push 1
push 8
lea ecx, [ebp - 0x50]
push ecx
call fcn.005637ec
add esp, 0x10
inc ebx
mov eax, dword [ebp - 0x48]
cmp ebx, eax
jb 0x4086e4
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x36c]
mov eax, dword [ecx + 0x20c]
call fcn.00539378
mov dword [ebp - 0x48], eax
push esi
push 1
push 4
lea edx, [ebp - 0x48]
push edx
call fcn.005637ec
add esp, 0x10
xor ebx, ebx
mov eax, dword [ebp - 0x48]
cmp ebx, eax
jae 0x408b6e
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x36c]
mov edx, ebx
mov eax, dword [ecx + 0x20c]
call fcn.005393a8
mov edi, eax
add edi, 0x24
mov eax, dword [edi]
test eax, eax
je 0x4087e6
mov edx, dword [edi]
jmp 0x4087eb
mov edx, 0x586fc0
push edx
call fcn.004012c0
pop ecx
mov dword [ebp - 0x150], eax
mov word [ebp - 0x34], 0x14
mov eax, dword [ebp + 8]
mov edx, ebx
mov ecx, dword [eax + 0x36c]
mov eax, dword [ecx + 0x20c]
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 8], ecx
inc dword [ebp - 0x28]
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0x5c]
mov edx, 3
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x408840
mov edx, dword [ebp - 8]
jmp 0x408845
mov edx, 0x586fc1
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x14c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x28]
call fcn.00583ae8
mov ecx, dword [ebp + 8]
mov edx, ebx
mov eax, dword [ecx + 0x36c]
mov eax, dword [eax + 0x20c]
call fcn.005393a8
mov eax, dword [eax + 0xc]
lea edi, [ebp - 0xca]
mov ecx, 8
mov dl, byte [eax + 4]
mov byte [ebp - 0xcc], dl
push esi
lea esi, [eax + 5]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
mov word [ebp - 0x34], 0x20
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x36c]
mov eax, dword [edx + 0x20c]
mov edx, ebx
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0xc], ecx
inc dword [ebp - 0x28]
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x60]
mov edx, 2
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4088f9
mov eax, dword [ebp - 0xc]
jmp 0x4088fe
mov eax, 0x586fca
mov edx, 0x586fc2
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x40891f
test cl, cl
je 0x40891f
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x40891f
add eax, 2
add edx, 2
test cl, cl
jne 0x408903
sete al
and eax, 1
mov edx, 2
push eax
lea eax, [ebp - 0xc]
dec dword [ebp - 0x28]
call fcn.00583ae8
pop ecx
test cl, cl
je 0x408945
xor eax, eax
mov dword [ebp - 0xa4], eax
jmp 0x40894f
mov dword [ebp - 0xa4], 1
mov word [ebp - 0x34], 0x2c
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x36c]
mov edx, ebx
mov eax, dword [ecx + 0x20c]
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x10], ecx
inc dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x64]
mov edx, 1
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x408997
mov edx, dword [ebp - 0x10]
jmp 0x40899c
mov edx, 0x586fcb
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x9c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x28]
call fcn.00583ae8
mov cl, byte [ebp - 0x9c]
mov al, byte [0x5ae9d4]
cmp cl, al
jne 0x4089ec
xor edx, edx
mov dword [ebp - 0xa8], edx
jmp 0x408a07
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0x9c]
push ecx
push 0x586fcc
push eax
call fcn.005650f0
add esp, 0xc
mov word [ebp - 0x34], 0x38
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x36c]
mov edx, ebx
mov eax, dword [ecx + 0x20c]
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x14], ecx
inc dword [ebp - 0x28]
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x68]
mov edx, 6
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x408a4f
mov edx, dword [ebp - 0x14]
jmp 0x408a54
mov edx, 0x586fcf
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x9c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x28]
call fcn.00583ae8
movsx ecx, byte [ebp - 0x9c]
cmp ecx, 0x4f
jne 0x408aa0
mov byte [ebp - 0xcb], 1
jmp 0x408aa7
mov byte [ebp - 0xcb], 0
mov word [ebp - 0x34], 0x44
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x36c]
mov eax, dword [edx + 0x20c]
mov edx, ebx
call fcn.005393a8
add eax, 8
xor ecx, ecx
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x18], ecx
inc dword [ebp - 0x28]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 0x6c]
mov edx, 7
mov eax, dword [eax]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x408aef
mov edx, dword [ebp - 0x18]
jmp 0x408af4
mov edx, 0x586fd0
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea esi, [ebp - 0x9c]
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x28]
call fcn.00583ae8
movsx ecx, byte [ebp - 0x9b]
cmp ecx, 0x4e
jne 0x408b43
mov dword [ebp - 0xa0], 1
jmp 0x408b4b
xor eax, eax
mov dword [ebp - 0xa0], eax
push esi
push 1
push 0xb4
lea edx, [ebp - 0x150]
push edx
call fcn.005637ec
add esp, 0x10
inc ebx
mov ecx, dword [ebp - 0x48]
cmp ebx, ecx
jb 0x4087c1
mov word [ebp - 0x34], 0x50
xor eax, eax
mov ecx, dword [sym.LookAtLan.exe__SNMPConf]
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
inc dword [ebp - 0x28]
mov eax, dword [ecx]
mov eax, dword [eax + 0x2dc]
call fcn.0051bcf8
lea eax, [ebp - 0x1c]
mov edx, 0x3e8
call fcn.00583f1c
mov dword [ebp - 0x70], eax
dec dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00583ae8
mov word [ebp - 0x34], 0x5c
xor ecx, ecx
mov eax, dword [sym.LookAtLan.exe__SNMPConf]
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x20]
inc dword [ebp - 0x28]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x2e0]
call fcn.0051bcf8
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00583f1c
mov dword [ebp - 0x74], eax
dec dword [ebp - 0x28]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00583ae8
mov ecx, dword [sym.LookAtLan.exe__SNMPConf]
mov eax, dword [ecx]
mov edx, dword [eax + 0x2ec]
mov eax, dword [edx + 0x20c]
call fcn.00539378
mov dword [ebp - 0x78], eax
push esi
push 1
push 4
lea edx, [ebp - 0x70]
push edx
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
lea ecx, [ebp - 0x74]
push ecx
call fcn.005637ec
add esp, 0x10
push esi
push 1
push 4
lea eax, [ebp - 0x78]
push eax
call fcn.005637ec
add esp, 0x10
xor ebx, ebx
mov eax, dword [ebp - 0x78]
cmp ebx, eax
jae 0x408cec
mov edx, dword [sym.LookAtLan.exe__SNMPConf]
mov ecx, dword [edx]
mov edx, ebx
mov eax, dword [ecx + 0x2ec]
mov eax, dword [eax + 0x20c]
call fcn.005393a8
mov edi, eax
add edi, 0x24
mov eax, dword [edi]
test eax, eax
je 0x408c7b
mov edx, dword [edi]
jmp 0x408c80
mov edx, 0x586fd1
push esi
push edi
xor eax, eax
mov edi, edx
or ecx, 0xffffffff
lea esi, [ebp - 0x1d0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0x1d0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push eax
call fcn.00560fe0
pop ecx
mov dword [ebp - 0x7c], eax
push esi
push 1
push 4
lea edx, [ebp - 0x7c]
push edx
call fcn.005637ec
add esp, 0x10
push esi
push 1
mov ecx, dword [ebp - 0x7c]
push ecx
lea eax, [ebp - 0x1d0]
push eax
call fcn.005637ec
add esp, 0x10
inc ebx
mov edx, dword [ebp - 0x78]
cmp ebx, edx
jb 0x408c51
push esi
call fcn.00562bf8
pop ecx
mov ecx, dword [ebp - 0x54]
push ecx
call sub.KERNEL32.DLL_ReleaseMutex
mov eax, dword [ebp - 0x54]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp - 0x44]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret