Function at 0x453865
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xf0
lea rcx, [rbp - 0x30]
mov edx, 0x28
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_RtlZeroMemory]
add rsp, 0x20
mov eax, dword [rbp + 0x40]
mov dword [rbp - 0xbc], eax
mov eax, dword [rbp - 0xbc]
cmp eax, 0x2492493
jae 0x453d59
imul eax, eax, 0x38
add eax, 8
mov r8d, eax
mov edx, 0xc
mov rcx, qword [section..bss]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
add rsp, 0x20
mov ebx, dword [rbp - 0xbc]
mov dword [rax], ebx
call fcn.006defae
mov dword [rax + 4], 0x45
mov qword [rbp - 0x30], rax
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x28], rax
mov al, byte [rbp + 0x18]
mov byte [rbp - 0x20], al
mov rax, qword [rbp + 0x10]
mov rbx, qword [rax]
mov qword [rbp - 0x10], rbx
cmp qword [rbp + 0x30], 0
jne 0x453931
mov r8d, 1
mov edx, 4
mov rcx, qword [section..bss]
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
add rsp, 0x20
mov byte [rax], 0
call fcn.006defae
mov dword [rax + 4], 0x46
mov qword [rbp - 0x18], rax
jmp 0x453939
mov rax, qword [rbp + 0x30]
mov qword [rbp - 0x18], rax
push rax
lea rax, [rbp - 0x48]
push rax
push qword [rbp + 0x50]
push qword [rbp + 0x38]
call fcn.004bb61d
pop rcx
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
jge 0x4539ad
test byte [rbp + 0x18], 0xff
je 0x4539a6
push 0x2f
push str.error:_TCP_create_server__port_d__returned__d_n
mov eax, dword [rbp + 0x50]
mov dword [rbp - 0xdc], eax
mov dword [rbp - 0xd0], 4
lea rax, [rbp - 0xdc]
mov qword [rbp - 0xd8], rax
mov dword [rbp - 0xc0], 4
lea rax, [rbp - 4]
mov qword [rbp - 0xc8], rax
push 2
lea rax, [rbp - 0xd8]
push rax
call fcn.0040280b
mov eax, dword [rbp - 4]
leave
ret 0x48
cmp qword [rbp + 0x28], 0
je 0x4539be
push rax
lea rax, [rbp - 0x48]
push rax
call qword [rbp + 0x28]
pop rcx
mov rax, qword [rbp - 0x18]
lock inc dword [rax]
cmp dword [rax + 4], 0x46
jne 0x453d5b
mov qword [rbp - 0xc0], rax
mov rax, qword [rax + 8]
mov al, byte [rax]
mov rbx, qword [rbp - 0xc0]
lock dec dword [rbx]
test al, al
je 0x453a08
push rax
lea rax, [rbp - 0x48]
push rax
call fcn.004bba7a
pop rcx
push rax
lea rax, [rbp - 0x30]
push rax
call fcn.004bbaff
pop rcx
xor eax, eax
leave
ret 0x48
lea rax, [rbp - 0x48]
push rax
lea rax, [rbp - 0x78]
push rax
call fcn.004bbbc4
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0
je 0x453a65
cmp dword [rbp - 4], 0xffffb1e0
je 0x453a54
push 0x29
push str.warning:_TCP_incoming_call___returned__d_n
mov dword [rbp - 0xc0], 4
lea rax, [rbp - 4]
mov qword [rbp - 0xc8], rax
push 1
lea rax, [rbp - 0xc8]
push rax
call fcn.0040280b
lea rax, [rbp - 0x48]
push rax
push 1
call fcn.004bbf78
jmp 0x4539be
lea rax, [rbp - 0x78]
push rax
lea rax, [rbp - 0x90]
push rax
call fcn.004acfde
lea rax, [rbp - 0x90]
push rax
lea rax, [rbp - 0xb8]
push rax
call fcn.0042cf6e
mov dword [rbp - 8], 0
jmp 0x453ad9
mov rax, qword [rbp - 0x30]
lock inc dword [rax]
cmp dword [rax + 4], 0x45
jne 0x453d5d
mov qword [rbp - 0xc0], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
mov esi, dword [rbp - 8]
cmp esi, ebx
jae 0x453d5d
imul esi, esi, 0x38
mov rax, qword [rax + rsi + 0x38]
mov rbx, qword [rbp - 0xc0]
lock dec dword [rbx]
cmp rax, 0
je 0x453ae1
inc dword [rbp - 8]
mov eax, dword [rbp - 8]
cmp eax, dword [rbp + 0x40]
jl 0x453a95
mov eax, dword [rbp - 8]
cmp eax, dword [rbp + 0x40]
jne 0x453b43
test byte [rbp + 0x18], 0xff
je 0x453b32
push 0x46
push str.error:_refusing_incoming_call_from__s_port__u__handler_table_is_full__n
mov dword [rbp - 0xd0], 0x28
lea rax, [rbp - 0xb8]
mov qword [rbp - 0xd8], rax
mov dword [rbp - 0xc0], 2
lea rax, [rbp - 0x80]
mov qword [rbp - 0xc8], rax
push 2
lea rax, [rbp - 0xd8]
push rax
call fcn.0040280b
push rax
lea rax, [rbp - 0x78]
push rax
call fcn.004bbff4
pop rcx
jmp 0x453d54
lea rax, [rbp - 0x78]
push rax
mov rax, qword [rbp - 0x30]
lock inc dword [rax]
cmp dword [rax + 4], 0x45
jne 0x453d5f
mov qword [rbp - 0xc0], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
mov esi, dword [rbp - 8]
cmp esi, ebx
jae 0x453d5f
imul esi, esi, 0x38
lea rax, [rax + rsi + 8]
push rax
call fcn.004bc050
mov rax, qword [rbp - 0xc0]
lock dec dword [rax]
mov rax, qword [rbp - 0x30]
lock inc dword [rax]
cmp dword [rax + 4], 0x45
jne 0x453d61
mov qword [rbp - 0xc0], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
mov esi, dword [rbp - 8]
cmp esi, ebx
jae 0x453d61
imul esi, esi, 0x38
lea rbx, [rbp - 0x30]
mov qword [rax + rsi + 0x38], rbx
mov rax, qword [rbp - 0xc0]
lock dec dword [rax]
test byte [rbp + 0x18], 0xff
je 0x453c26
push 0x2b
push str.handler__d_:_incoming_call_from__s_port__u_n
mov dword [rbp - 0xe0], 4
lea rax, [rbp - 8]
mov qword [rbp - 0xe8], rax
mov dword [rbp - 0xd0], 0x28
lea rax, [rbp - 0xb8]
mov qword [rbp - 0xd8], rax
mov dword [rbp - 0xc0], 2
lea rax, [rbp - 0x80]
mov qword [rbp - 0xc8], rax
push 3
lea rax, [rbp - 0xe8]
push rax
call fcn.0040280b
cmp qword [rbp + 0x20], 0
je 0x453c38
lea rax, [rbp - 0x78]
push rax
push qword [rbp - 8]
call qword [rbp + 0x20]
mov rax, qword [rbp - 0x30]
lock inc dword [rax]
cmp dword [rax + 4], 0x45
jne 0x453d63
mov qword [rbp - 0xc0], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
mov esi, dword [rbp - 8]
cmp esi, ebx
jae 0x453d63
imul esi, esi, 0x38
mov rbx, qword [rbp - 0xc0]
lock dec dword [rbx]
push 0
push 0
lea r9, [rax + rsi + 8]
mov r8d, 0x4bc08b
xor edx, edx
xor ecx, ecx
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_CreateThread]
add rsp, 0x30
test rax, rax
je 0x453caa
mov rcx, rax
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
add rsp, 0x20
mov eax, 0xffffffff
not eax
cmp eax, 0
jge 0x453d54
push 0x2a
push str.error:_cannot_start_thread_for_handler__d_n
mov dword [rbp - 0xc0], 4
lea rax, [rbp - 8]
mov qword [rbp - 0xc8], rax
push 1
lea rax, [rbp - 0xc8]
push rax
call fcn.0040280b
push rax
mov rax, qword [rbp - 0x30]
lock inc dword [rax]
cmp dword [rax + 4], 0x45
jne 0x453d65
mov qword [rbp - 0xc0], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
mov esi, dword [rbp - 8]
cmp esi, ebx
jae 0x453d65
imul esi, esi, 0x38
lea rax, [rax + rsi + 8]
push rax
call fcn.004bbff4
pop rcx
mov rax, qword [rbp - 0xc0]
lock dec dword [rax]
mov rax, qword [rbp - 0x30]
lock inc dword [rax]
cmp dword [rax + 4], 0x45
jne 0x453d67
mov qword [rbp - 0xc0], rax
mov rax, qword [rax + 8]
mov ebx, dword [rax]
mov esi, dword [rbp - 8]
cmp esi, ebx
jae 0x453d67
imul esi, esi, 0x38
mov qword [rax + rsi + 0x38], 0
mov rax, qword [rbp - 0xc0]
lock dec dword [rax]
jmp 0x453d54
jmp 0x4539be
int 5
int 5
int 5
int 5
int 5
int 5
int 5
int 5
push rbp
mov rbp, rsp
sub rsp, 0x20
push qword [rbp + 0x10]
lea rax, [rbp - 0x18]
push rax
call fcn.004acfde
cmp eax, 0
jne 0x453db2
push rax
lea rax, [rbp - 0x18]
push rax
call fcn.0049337e
pop rcx
test al, al
je 0x453db2
push rax
lea rax, [rbp - 0x18]
push rax
call fcn.0049413d
pop rcx
test al, al
je 0x453db2
push rax
push qword [rbp + 0x10]
call fcn.004bc1ee
pop rcx
jmp 0x453df5
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x30]
cmp eax, 0x200
jae 0x453df9
imul eax, eax, 0xb8
lea rcx, [rax + 0x1740310]
mov edx, 0xb8
sub rsp, 0x20
call qword [sym.imp.KERNEL32.DLL_RtlZeroMemory]
add rsp, 0x20
push rax
push qword [rbp + 0x10]
push 0xb39960
push 0x1757310
call fcn.004bca8f
pop rcx
leave
ret 8
int 5