Function at 0x4168b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x500340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
xor bl, bl
push esi
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], bl
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
movzx eax, byte [esi + 0x90]
mov ebp, dword [esi + 0x24]
mov dword [esp + 0x10], eax
sub eax, 0
mov dword [esp + 0x20], 0
je 0x4169be
dec eax
jne 0x4169e9
test byte [esi + 0x91], 2
jne 0x41693a
push 0
mov byte [esp + 0x12], 1
call fcn.004ee6c6
mov dword [esi + 0x8c], eax
mov al, byte [esi + 0x91]
add esp, 4
or al, 2
mov byte [esi + 0x91], al
jmp 0x4169e9
cmp dword [esi + 0x28], 0xffffffff
jne 0x4169e9
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x4169e9
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x4169e9
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x4169e9
mov ecx, esi
call fcn.00416080
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push ecx
push eax
push edx
push esi
push str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p_Eliminate_Session
push 0x8b
push str.D:ProjectBranch1700ServerRylServerProjectBaseLibraryNetworkSessionSession.cpp
push str.CSession::Process
push 3
push 0x563580
call fcn.0040e630
add esp, 0x28
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov al, byte [esi + 0x91]
test al, 1
jne 0x4169d2
mov bl, 1
or al, bl
mov byte [esi + 0x91], al
test byte [esi + 0x91], 0x10
jne 0x4169e9
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x4169e9
mov ecx, esi
call fcn.004162b0
mov edx, dword [esi + 0x78]
push edi
inc edx
push esi
mov dword [esi + 0x78], edx
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
je 0x416a55
mov eax, dword [esi + 0x30]
push eax
call edi
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push ecx
push eax
push edx
push esi
push str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p_Connection_Open___Process_connected
push 0x9c
push str.D:ProjectBranch1700ServerRylServerProjectBaseLibraryNetworkSessionSession.cpp
push str.CSession::Process
push 3
push 0x563580
call fcn.0040e630
mov eax, dword [ebp]
add esp, 0x28
mov ecx, ebp
call dword [eax + 0xc]
push 0
call fcn.004ee6c6
add esp, 4
mov dword [esi + 0x88], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416aa0
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx + 8]
test al, al
jne 0x416aa0
mov eax, dword [esi + 0x30]
push eax
call edi
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push ecx
push eax
push edx
push esi
push str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p_CloseSocket___Failed_Dispatch
push 0xa7
push str.D:ProjectBranch1700ServerRylServerProjectBaseLibraryNetworkSessionSession.cpp
push str.CSession::Process
push 3
push 0x563580
call fcn.0040e630
add esp, 0x28
mov bl, 1
jmp 0x416aa4
mov bl, byte [esp + 0x13]
mov al, byte [esp + 0x12]
test al, al
je 0x416ae7
mov eax, dword [esi + 0x30]
push eax
call edi
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x24]
push ecx
push eax
push edx
push esi
push str.SP:0x_p_DP:0x_p_IP:_15s_SOCKET:0x_p__Connection_Closed___Process_disconnect
push 0xb0
push str.D:ProjectBranch1700ServerRylServerProjectBaseLibraryNetworkSessionSession.cpp
push str.CSession::Process
push 3
push 0x563580
call fcn.0040e630
mov eax, dword [ebp]
add esp, 0x28
mov ecx, ebp
call dword [eax + 0x10]
push esi
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
mov dword [esp + 0x24], 1
call fcn.00416740
test byte [esi + 0x91], 4
pop edi
je 0x416b2e
mov eax, dword [esi + 0x64]
test eax, eax
jne 0x416b2e
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
je 0x416b2e
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
test eax, eax
je 0x416b2e
or byte [esi + 0x91], 8
mov ecx, dword [esi + 0x78]
dec ecx
test bl, bl
mov dword [esi + 0x78], ecx
je 0x416b40
mov ecx, esi
call fcn.00416080
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret