Function at 0x414130
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98c
mov eax, dword [0x4c3790]
xor eax, esp
mov dword [esp + 0x988], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov eax, esi
push edi
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], ebx
mov byte [esp + 0x30], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x414167
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x38]
call fcn.00403f20
push 0x103
lea eax, [esp + 0x48d]
push ebx
push eax
mov byte [esp + 0x494], bl
call fcn.00499a80
add esp, 0xc
push 0x104
lea ecx, [esp + 0x48c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x488]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4141b6
sub eax, edx
je 0x4141d9
lea edx, [esp + 0x488]
push 0x5c
push edx
call fcn.00497be0
add esp, 8
cmp eax, ebx
je 0x4141d9
mov byte [eax], bl
call fcn.00413dd0
push str.PACKET_FILTER_832u8u893289894377_RUN
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
call fcn.00413dd0
mov eax, dword [esp + 0x40]
inc eax
push eax
call fcn.004958cf
add esp, 4
cmp dword [esp + 0x44], 0x10
mov esi, eax
mov eax, dword [esp + 0x30]
jae 0x414215
lea eax, [esp + 0x30]
mov edx, esi
sub edx, eax
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x414220
call fcn.00413dd0
push esi
call fcn.0049617e
add esp, 4
call fcn.00413dd0
cmp edi, ebx
je 0x41431a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00413dd0
push 6
push str._start
lea ecx, [esp + 0x38]
push ecx
xor eax, eax
call fcn.00412d80
cmp eax, 0xffffffff
je 0x414278
call fcn.00413dd0
cmp dword [esp + 0x44], 0x10
jmp 0x4149c0
push 5
push str._stop
lea eax, [esp + 0x38]
push eax
xor eax, eax
call fcn.00412d80
cmp eax, 0xffffffff
jne 0x4142a8
push 8
push str._restart
lea ecx, [esp + 0x38]
push ecx
xor eax, eax
call fcn.00412d80
cmp eax, 0xffffffff
je 0x41431a
call fcn.00413dd0
push str.PACKET_FILTER_832u8u893289894377_STOP
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x1388
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.PACKET_FILTER_832u8u893289894377_RUN
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 5
push str._stop
lea edx, [esp + 0x38]
push edx
xor eax, eax
call fcn.00412d80
cmp eax, 0xffffffff
jne 0x414305
cmp edi, ebx
je 0x41431a
cmp dword [esp + 0x44], 0x10
jb 0x4149cf
mov eax, dword [esp + 0x30]
push eax
jmp 0x4149c7
call fcn.00413dd0
push 0xa
push str._db_create
lea ecx, [esp + 0x38]
push ecx
xor eax, eax
call fcn.00412d80
cmp eax, 0xffffffff
je 0x414433
push 0xa
mov edi, 0xf
push str.filter.ini
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], edi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00403f20
xor edx, edx
push 8
mov eax, 0x4b7c38
lea esi, [esp + 0x594]
mov dword [esp + 0x5a8], 7
mov dword [esp + 0x5a4], ebx
mov word [esp + 0x594], dx
call fcn.004042d0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x5b8]
mov dword [esp + 0x5cc], edi
mov dword [esp + 0x5c8], ebx
mov byte [esp + 0x5b8], bl
call fcn.004037d0
mov edi, 0x10
cmp dword [esp + 0x60], edi
jb 0x4143cc
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.004961b3
add esp, 4
lea edx, [esp + 0x590]
push edx
xor ecx, ecx
call fcn.0040bf40
lea esi, [esp + 0x590]
test al, al
jne 0x41441a
call fcn.00413d80
cmp dword [esp + 0x44], edi
jb 0x4143fe
mov eax, dword [esp + 0x30]
push eax
call fcn.004961b3
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x988]
xor ecx, esp
call fcn.00495b13
mov esp, ebp
pop ebp
ret 0x10
call fcn.00413d80
cmp dword [esp + 0x44], edi
jb 0x4149cf
mov ecx, dword [esp + 0x30]
push ecx
jmp 0x4149c7
call fcn.00413dd0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x38]
mov esi, 0xf
push edx
lea ecx, [esp + 0x74]
mov dword [esp + 0x88], esi
mov dword [esp + 0x84], ebx
mov byte [esp + 0x74], bl
call fcn.004037d0
push 6
push str._user
lea eax, [esp + 0x38]
push eax
xor eax, eax
call fcn.00412d80
cmp eax, 0xffffffff
je 0x4144ba
push ebx
push 0x4b71bc
lea ecx, [esp + 0x54]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
call fcn.00403f20
lea ecx, [esp + 0x4c]
push ecx
lea esi, [esp + 0x6c]
call fcn.00414dd0
cmp dword [esp + 0x60], 0x10
jb 0x4144b5
mov edx, dword [esp + 0x4c]
push edx
call fcn.004961b3
add esp, 4
call fcn.00413dd0
call fcn.00413dd0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call edi
push eax
lea eax, [esp + 0x480]
push 0x4b7cac
push eax
call fcn.00496464
add esp, 0xc
call fcn.00413dd0
call fcn.00413dd0
push 0xa
push str.filter.ini
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x8c], bl
call fcn.00403f20
xor ecx, ecx
push 8
mov eax, 0x4b7c38
lea esi, [esp + 0x114]
mov dword [esp + 0x128], 7
mov dword [esp + 0x124], ebx
mov word [esp + 0x114], cx
call fcn.004042d0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x8c]
push edx
lea ecx, [esp + 0x138]
mov dword [esp + 0x14c], 0xf
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.004037d0
cmp dword [esp + 0x98], 0x10
jb 0x4145a4
mov eax, dword [esp + 0x84]
push eax
call fcn.004961b3
add esp, 4
call edi
push eax
lea ecx, [esp + 0x480]
push 0x4b7cac
push ecx
call fcn.00496464
add esp, 0xc
call fcn.00413dd0
call fcn.00413dd0
call fcn.00413dd0
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
mov esi, edx
cmp eax, 0x10
jae 0x4146af
lea esi, [esp + 0x68]
mov ecx, esi
add ecx, dword [esp + 0x78]
cmp eax, 0x10
mov eax, edx
jae 0x4145f3
lea eax, [esp + 0x68]
cmp eax, ecx
je 0x414609
lea edx, [esp + 0x14]
push esi
push edx
mov ebx, ecx
call fcn.00414fa0
add esp, 8
xor ebx, ebx
call fcn.00413dd0
cmp dword [esp + 0x7c], 0x10
mov eax, dword [esp + 0x68]
jae 0x41461d
lea eax, [esp + 0x68]
push eax
lea esi, [esp + 0x48c]
lea eax, [esp + 0x114]
call fcn.00411c70
mov dword [esp + 0xa0], 0
mov word [esp + 0xa4], 0
mov byte [esp + 0x106], 1
mov dword [esp + 0x108], 0x258
xor eax, eax
jmp 0x414660
mov byte [esp + eax + 0xa6], bl
mov byte [esp + eax + 0xbe], bl
mov byte [esp + eax + 0xd6], bl
mov byte [esp + eax + 0xee], bl
inc eax
cmp eax, 0x18
jl 0x414660
call fcn.00413dd0
lea eax, [esp + 0xa0]
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x114]
call fcn.004102f0
test al, al
jne 0x4146b6
call fcn.00413dd0
push 1
call fcn.00498630
mov ecx, edx
jmp 0x4145e4
call fcn.00413dd0
lea esi, [esp + 0xa0]
call fcn.0041ac10
mov ecx, dword [0x4c5c0c]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push ecx
mov byte [esp + 0x1b], al
call esi
test eax, eax
jne 0x4146f6
mov eax, dword [0x4c5c0c]
mov dl, byte [esp + 0x13]
push eax
mov byte [0x4c5c11], dl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [0x4c5c0c]
push 0xffffffffffffffff
push ecx
call esi
test eax, eax
jne 0x414719
mov edx, dword [0x4c5c0c]
push edx
mov byte [0x4c5c10], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x4c]
sar eax, 2
test eax, eax
je 0x41472f
mov byte [0x4c7363], 1
call fcn.00413dd0
lea esi, [esp + 0x84]
lea eax, [esp + 0x110]
call fcn.0040bef0
cmp dword [eax + 0x14], 0x10
jb 0x41474f
mov eax, dword [eax]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.WinDivert.dll_WinDivertOpen]
add esp, 0x14
cmp dword [esp + 0x98], 0x10
mov edi, eax
jb 0x414779
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004961b3
add esp, 4
mov dword [esp + 0x98], 0xf
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp edi, 0xffffffff
jne 0x4147d3
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x57
jne 0x4147b0
call fcn.00413dd0
push 1
call fcn.00498630
call esi
push eax
push str.Error:_failed_to_open_the_WinDivert_device___d____exiting
lea edx, [esp + 0x598]
call fcn.00414f80
add esp, 8
call fcn.00413dd0
push 1
call fcn.00498630
push str.PACKET_FILTER_832u8u893289894377_RUN
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x2c], eax
call fcn.00413dd0
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4c7364], eax
call fcn.00413dd0
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
push 0x413df0
push ebx
push ebx
call esi
mov dword [esp + 0x28], eax
call fcn.00413dd0
push ebx
push ebx
push ebx
push 0x413f00
push ebx
push ebx
call esi
mov dword [esp + 0x14], eax
call fcn.00413dd0
lea eax, [esp + 0xa0]
push eax
push edi
lea edx, [esp + 0x54]
lea ecx, [esp + 0x20]
call fcn.004149f0
add esp, 8
call fcn.00413dd0
mov ecx, dword [0x4c7364]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call fcn.00413dd0
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
sub edx, eax
sar edx, 2
xor esi, esi
test edx, edx
je 0x414893
mov eax, dword [eax + esi*4]
push eax
call fcn.004961b3
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub ecx, eax
inc esi
sar ecx, 2
add esp, 4
cmp esi, ecx
jb 0x414875
mov edi, dword [esp + 0x50]
sub edi, dword [esp + 0x4c]
xor esi, esi
sar edi, 2
cmp edi, ebx
jbe 0x4148b9
mov edx, dword [esp + 0x4c]
mov eax, dword [edx + esi*4]
push eax
call fcn.004961b3
inc esi
add esp, 4
cmp esi, edi
jb 0x4148a4
call fcn.00413dd0
mov esi, dword [esp + 0x2c]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00413dd0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
call fcn.00413dd0
mov ecx, dword [esp + 0x28]
push ecx
call esi
call fcn.00413dd0
mov edx, dword [esp + 0x14]
push edx
call esi
call fcn.00413dd0
mov eax, dword [0x4c7368]
push eax
call esi
call fcn.00413dd0
mov esi, 0x10
cmp dword [esp + 0x140], esi
jb 0x41491f
mov ecx, dword [esp + 0x12c]
push ecx
call fcn.004961b3
add esp, 4
cmp dword [esp + 0x124], 8
mov edi, 0xf
mov dword [esp + 0x140], edi
mov dword [esp + 0x13c], ebx
mov byte [esp + 0x12c], bl
jb 0x414953
mov edx, dword [esp + 0x110]
push edx
call fcn.004961b3
add esp, 4
xor eax, eax
mov word [esp + 0x110], ax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x124], 7
mov dword [esp + 0x120], ebx
cmp eax, ebx
je 0x414980
push eax
call fcn.004961b3
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x414991
push eax
call fcn.004961b3
add esp, 4
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp dword [esp + 0x7c], esi
jb 0x4149b0
mov ecx, dword [esp + 0x68]
push ecx
call fcn.004961b3
add esp, 4
cmp dword [esp + 0x44], esi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], bl
jb 0x4149cf
mov edx, dword [esp + 0x30]
push edx
call fcn.004961b3
add esp, 4
mov ecx, dword [esp + 0x994]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00495b13
mov esp, ebp
pop ebp
ret 0x10