Function at 0x40e3a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x45c1c8
push 0x439ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c4
mov eax, dword [0x45f478]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c0], eax
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x6c8], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x6b8]
push eax
call fcn.0040d3c0
add esp, 4
test esi, esi
je 0x40e42c
cmp edi, 3
jl 0x40e42c
cmp dword [esi], 0
je 0x40e42c
cmp dword [esi + 4], 0
je 0x40e42c
cmp dword [esi + 8], 0
je 0x40e42c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.KERNEL32.dll_RaiseException]
jmp 0x40e46c
push 0xe0000003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.parvoid_param_value
lea eax, [ebp - 0x6b8]
push eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
call edi
push str.insufficient_common_parametrisation
lea eax, [ebp - 0x5b8]
push eax
call edi
push 0
push 0
push 0
push 0x60000001
mov ebx, dword [sym.imp.KERNEL32.dll_RaiseException]
call ebx
mov eax, dword [esi + 8]
mov ax, word [eax]
mov word [0x460b50], ax
mov esi, dword [ebp + 8]
mov dword [0x460b3c], esi
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004380a8
mov dword [0x460b40], eax
mov dword [0x460b44], esi
xor ecx, ecx
mov eax, esi
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004380a8
add esp, 8
mov dword [0x460b48], eax
cmp dword [0x460b4c], 0
jne 0x40e4ff
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x460b4c], eax
test eax, eax
jne 0x40e4ff
push str.CreateEvent__
lea eax, [ebp - 0x6b8]
push eax
call edi
push 0
push 0
push 0
push 0x60000001
call ebx
mov byte [ebp - 0xac], 0
push 0x49
push 0
lea eax, [ebp - 0xab]
push eax
call fcn.0043a6b0
add esp, 0xc
mov esi, dword [ebp - 0x6c0]
push esi
lea eax, [ebp - 0xac]
push eax
call edi
lea eax, [ebp - 0xac]
push eax
call fcn.004052b0
add esp, 4
test al, al
je 0x40e74b
mov byte [ebp - 0x6b9], 0
mov byte [ebp - 0x6bb], 0
mov eax, 0x5c
mov word [ebp - 0x6c4], ax
mov byte [ebp - 0x60], 0
push 0x40
push 0
lea eax, [ebp - 0x5f]
push eax
call fcn.0043a6b0
add esp, 0xc
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x60]
push eax
call edi
push 0x3a
lea eax, [ebp - 0x60]
push eax
call fcn.00439000
add esp, 8
test eax, eax
je 0x40e5a5
mov byte [eax], 0
lea eax, [ebp - 0x6b9]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00405130
add esp, 8
jmp 0x40e5ab
mov al, byte [ebp - 0x6bb]
test al, al
je 0x40e72b
cmp byte [ebp - 0x6b9], 0
je 0x40e72b
mov ax, word [0x460b50]
cmp ax, 4
je 0x40e5d6
cmp ax, 5
jne 0x40e684
mov byte [ebp - 0x1b4], 0
push 0x104
push 0
lea eax, [ebp - 0x1b3]
push eax
call fcn.0043a6b0
push 0x105
lea eax, [ebp - 0x1b4]
push eax
push 1
call fcn.00404470
add esp, 0x18
test al, al
jne 0x40e617
push 0
push 0
push 0
push 0x60000000
call ebx
mov eax, dword [ebp - 0x6c8]
push dword [eax]
lea eax, [ebp - 0x1b4]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
lea eax, [ebp - 0x6c4]
push eax
lea eax, [ebp - 0x1b4]
push eax
call esi
push dword [ebp + 0x18]
mov eax, dword [ebp - 0x6c8]
push dword [eax + 4]
lea eax, [ebp - 0x1b4]
push eax
mov ecx, dword [ebp + 0x10]
cmp ecx, 0xfde9
sete al
movzx eax, al
push eax
push dword [ebp + 0x14]
push ecx
call fcn.00417d40
add esp, 0x18
test al, al
jne 0x40e67e
push 0
push 0
push 0
push 0x60000000
call ebx
mov esi, dword [ebp - 0x6c0]
cmp dword [0x460b38], 0
jne 0x40e6e9
lea eax, [ebp - 0x6d0]
push eax
push 0
push esi
push 0x40d400
push 0
push 0
call fcn.0043a802
add esp, 0x18
mov dword [0x460b38], eax
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
test eax, eax
jne 0x40e6ef
push 0xe000000d
call esi
push str._beginthreadex__
lea eax, [ebp - 0x6b8]
push eax
call edi
push str.FRG_thread_could_not_be_started
lea eax, [ebp - 0x5b8]
push eax
call edi
push 0
push 0
push 0
push 0x60000001
call ebx
jmp 0x40e6ef
mov esi, dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x6d4]
push eax
push 0
push 0
push 0x40ded0
push 0
push 0
call fcn.0043a802
add esp, 0x18
test eax, eax
jne 0x40e77f
push 0xe000000d
call esi
push str._beginthreadex__
lea eax, [ebp - 0x6b8]
push eax
call edi
push str.Guardian_thread_could_not_be_started
jmp 0x40e769
push 0xe0000003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.iploca__
lea eax, [ebp - 0x6b8]
push eax
call edi
push str.SERVICE_ADDRESS_IP_must_be_the_Local_address
jmp 0x40e769
push 0xe0000003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.ipport_address_check__
lea eax, [ebp - 0x6b8]
push eax
call edi
push str.SERVICE_ADDRESS_must_be_in_IP:PORT_format
lea eax, [ebp - 0x5b8]
push eax
call edi
push 0
push 0
push 0
push 0x60000001
call ebx
mov al, 1
jmp 0x40e80a
mov byte [ebp - 0x6ba], al
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00439a01
mov esp, ebp
pop ebp
ret