Function at 0x502db0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51e925
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, str.ThreadManager
lea ecx, [ebp - 0x84]
call fcn.0040fae0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x84]
push eax
xor ecx, ecx
call fcn.0046aca0
add esp, 4
test al, al
sete bl
mov byte [ebp - 4], 0
lea esi, [ebp - 0x84]
call fcn.004150b0
test bl, bl
jne 0x5032ff
mov eax, 0x528928
lea ecx, [ebp - 0x2c]
call fcn.0040fae0
mov byte [ebp - 4], 2
cmp dword [ebp + 0xc], 0
je 0x50313a
test edi, edi
jne 0x5030a6
mov eax, dword [ebp + 0x10]
cmp eax, 5
ja case.default.0x502e4e
jmp dword [eax*4 + 0x503314]
push 0x198
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x502e88
push eax
call fcn.00401610
mov byte [ebp - 4], 2
mov edi, eax
lea ecx, [ebp - 0x2c]
push ecx
mov eax, str.ActionManager
jmp 0x502ff5
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
lea ecx, [ebp - 0x2c]
push ecx
mov eax, str.ActionManager
jmp 0x502ff5
push 0x68
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x502ece
push eax
call fcn.00417dc0
mov byte [ebp - 4], 2
mov edi, eax
lea edx, [ebp - 0x2c]
push edx
mov eax, 0x52b278
jmp 0x502ff5
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
lea edx, [ebp - 0x2c]
push edx
mov eax, 0x52b278
jmp 0x502ff5
push 0xd0
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 5
test eax, eax
je 0x502f17
push eax
call fcn.00456f70
mov byte [ebp - 4], 2
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x535360
jmp 0x502ff5
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x535360
jmp 0x502ff5
push 0x170
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov esi, eax
mov dword [ebp + 0xc], esi
mov bl, 6
mov byte [ebp - 4], bl
test esi, esi
je 0x502f70
push esi
call fcn.004fca80
mov byte [ebp - 4], 7
mov dword [esi], vtable.TcpServerNsc.0
mov byte [ebp - 4], bl
mov byte [ebp - 4], 2
mov edi, esi
lea ecx, [ebp - 0x2c]
push ecx
mov eax, str.TcpServerNsc
jmp 0x502ff5
xor esi, esi
mov byte [ebp - 4], 2
mov edi, esi
lea ecx, [ebp - 0x2c]
push ecx
mov eax, str.TcpServerNsc
jmp 0x502ff5
push 0x60
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x502fb0
push eax
call fcn.00447ff0
mov byte [ebp - 4], 2
mov edi, eax
lea edx, [ebp - 0x2c]
push edx
mov eax, 0x534ba8
jmp 0x502ff5
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
lea edx, [ebp - 0x2c]
push edx
mov eax, 0x534ba8
jmp 0x502ff5
push 0x140
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 9
test eax, eax
je 0x502fe4
push eax
call fcn.004fcc40
jmp 0x502fe6
xor eax, eax
mov byte [ebp - 4], 2
mov edi, eax
lea eax, [ebp - 0x2c]
push eax
mov eax, str.TcpView
mov dword [ebp + 8], edi
call fcn.0040fb40
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x503009
lea eax, [ebp - 0x2c]
push edi
call fcn.00507020
push edi
push edi
call fcn.00507050
lea ecx, [ebp - 0x2c]
push ecx
push str.Thread
lea edx, [ebp - 0x64]
push edx
call fcn.00414000
add esp, 0xc
mov bl, 0xa
mov byte [ebp - 4], bl
push str._started
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004139a0
add esp, 0xc
mov byte [ebp - 4], 0xb
push 1
push 1
push eax
push 0xa5
push str.ThreadManager::ThreadMonitor
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x48]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0x64]
call fcn.004150b0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.004150b0
jmp 0x5032ff
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.004150b0
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [edi + 0x10]
call fcn.00419000
test eax, eax
jne 0x503142
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, edi
call fcn.00502a20
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x64]
push edx
mov edx, str.Thread_:
call fcn.00413910
mov bl, 0xd
mov byte [ebp - 4], bl
push str._not_alive
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004139a0
add esp, 0x14
mov byte [ebp - 4], 0xe
push 0
push 0x20000000
push eax
push 0xab
push str.ThreadManager::ThreadMonitor
call fcn.0044d970
add esp, 0x14
mov byte [ebp - 4], bl
lea esi, [ebp - 0x48]
call fcn.004150b0
mov byte [ebp - 4], 0xc
lea esi, [ebp - 0x64]
call fcn.004150b0
mov byte [ebp - 4], 2
lea esi, [ebp - 0xa0]
call fcn.004150b0
push 0x7b
call dword [sym.imp.KERNEL32.dll_ExitProcess]
test edi, edi
je 0x503142
mov byte [edi + 0xc], 0
mov byte [ebp - 4], 0
lea esi, [ebp - 0x2c]
call fcn.004150b0
mov dword [ebp - 4], 0xffffffff
jmp 0x5032ff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc