Function at 0x423550
Capabilities:
Terminate thread

Disassembly:
push 0xffffffffffffffff
push 0x4965d6
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc4a0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x24], esi
mov eax, dword [esi + 4]
mov dword [esp + 0x60], 1
test eax, eax
je 0x423595
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 8]
test eax, eax
je 0x4235c2
push 0x19
push str...p2psrc_src_serv.cpp
push eax
push str.__sock_cls:_0x_x__file:__s:_u
call fcn.00416770
mov eax, dword [esi + 8]
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 8], 0
mov ecx, dword [esi + 0xc]
push 0x1b
push str...p2psrc_src_serv.cpp
push ecx
push str.__del:_0x_x__file:__s:_u
call fcn.004166d0
mov edi, dword [esi + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 0x10
test edi, edi
je 0x42362f
lea ebx, [edi + 0xc]
push ebx
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edi + 8]
test eax, eax
je 0x42360a
push 0xffffffffffffffff
push 1
lea edx, [edi + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
mov dword [edi + 8], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edi
call fcn.0042ec92
add esp, 4
mov dword [esi + 0xc], 0
lea ecx, [esp + 0x28]
call fcn.00421570
lea edi, [esi + 0x28]
push edi
mov byte [esp + 0x64], 2
mov dword [esp + 0x18], edi
call ebp
lea eax, [esi + 0x58]
push eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], eax
call fcn.004234c0
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
call ebx
lea ecx, [esp + 0x40]
call fcn.0041d090
lea edi, [esi + 0x40]
push edi
mov byte [esp + 0x64], 3
mov dword [esp + 0x1c], edi
call ebp
add esi, 0x70
push esi
lea ecx, [esp + 0x44]
mov dword [esp + 0x20], esi
call fcn.0041d3e0
push edi
call ebx
mov esi, dword [esp + 0x34]
cmp esi, dword [esp + 0x38]
jbe 0x42369c
call fcn.0046814b
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
cmp dword [esp + 0x34], ebp
jbe 0x4236af
call fcn.0046814b
test edi, edi
je 0x4236b9
cmp edi, dword [esp + 0x28]
je 0x4236be
call fcn.0046814b
cmp esi, ebp
je 0x423702
test edi, edi
jne 0x4236fa
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4236d7
call fcn.0046814b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
test edi, edi
jne 0x4236fe
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4236f5
call fcn.0046814b
add esi, 4
jmp 0x4236a0
mov eax, dword [edi]
jmp 0x4236cd
mov eax, dword [edi]
jmp 0x4236eb
mov esi, dword [esp + 0x34]
cmp esi, dword [esp + 0x38]
jbe 0x423711
call fcn.0046814b
mov edi, dword [esp + 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x423720
mov ebp, dword [esp + 0x38]
cmp dword [esp + 0x34], ebp
jbe 0x42372f
call fcn.0046814b
test edi, edi
je 0x423739
cmp edi, dword [esp + 0x28]
je 0x42373e
call fcn.0046814b
cmp esi, ebp
je 0x4238bf
test edi, edi
jne 0x423889
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x42375f
call fcn.0046814b
mov ecx, dword [esi]
mov edx, dword [ecx + 8]
push 0xffffffffffffffff
push edx
call ebx
test edi, edi
jne 0x423890
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423782
call fcn.0046814b
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push 0x2e
push str...p2psrc_src_serv.cpp
push ecx
push str.__sock_cls:_0x_x__file:__s:_u
call fcn.00416770
add esp, 0x10
test edi, edi
jne 0x423897
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4237b5
call fcn.0046814b
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
jne 0x42389e
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4237da
call fcn.0046814b
mov ecx, dword [esi]
mov dword [ecx + 4], 0
test edi, edi
jne 0x4238a5
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4237fc
call fcn.0046814b
mov edx, dword [esi]
push 0x2f
push str...p2psrc_src_serv.cpp
push edx
push str.__del:_0x_x__file:__s:_u
call fcn.004166d0
add esp, 0x10
test edi, edi
jne 0x4238ac
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x42382c
call fcn.0046814b
cmp dword [esi], 0
je 0x42386c
test edi, edi
jne 0x4238b3
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423846
call fcn.0046814b
mov eax, dword [esi]
push eax
call fcn.0042ec92
add esp, 4
test edi, edi
jne 0x4238b7
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423866
call fcn.0046814b
mov dword [esi], 0
test edi, edi
jne 0x4238bb
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423881
call fcn.0046814b
add esi, 4
jmp 0x423720
mov eax, dword [edi]
jmp 0x423755
mov eax, dword [edi]
jmp 0x423778
mov eax, dword [edi]
jmp 0x4237ab
mov eax, dword [edi]
jmp 0x4237d0
mov eax, dword [edi]
jmp 0x4237f2
mov eax, dword [edi]
jmp 0x423822
mov eax, dword [edi]
jmp 0x42383c
mov eax, dword [edi]
jmp 0x42385c
mov eax, dword [edi]
jmp 0x423877
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
cmp esi, eax
jbe 0x4238d4
call fcn.0046814b
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x40]
mov ebp, eax
cmp dword [esp + 0x4c], eax
jbe 0x4238e5
call fcn.0046814b
test edi, edi
je 0x4238ef
cmp edi, dword [esp + 0x40]
je 0x4238f4
call fcn.0046814b
cmp esi, ebp
je 0x4239cb
test edi, edi
jne 0x4239b1
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423915
call fcn.0046814b
mov ecx, dword [esi]
push 0x35
push str...p2psrc_src_serv.cpp
push ecx
push str.__del:_0x_x__file:__s:_u
call fcn.004166d0
add esp, 0x10
test edi, edi
jne 0x4239b8
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x423945
call fcn.0046814b
cmp dword [esi], 0
je 0x423990
test edi, edi
jne 0x4239bf
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x42395f
call fcn.0046814b
mov ebp, dword [esi]
test ebp, ebp
je 0x423975
mov ecx, ebp
call fcn.00424dd0
push ebp
call fcn.0042ec92
add esp, 4
test edi, edi
jne 0x4239c3
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x42398a
call fcn.0046814b
mov dword [esi], 0
test edi, edi
jne 0x4239c7
call fcn.0046814b
xor eax, eax
cmp esi, dword [eax + 0x10]
jb 0x4239a5
call fcn.0046814b
mov eax, dword [esp + 0x50]
add esi, 4
jmp 0x4238d8
mov eax, dword [edi]
jmp 0x42390b
mov eax, dword [edi]
jmp 0x42393b
mov eax, dword [edi]
jmp 0x423955
mov eax, dword [edi]
jmp 0x423980
mov eax, dword [edi]
jmp 0x42399b
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov eax, dword [esp + 0x4c]
xor edi, edi
cmp eax, edi
je 0x4239f2
push eax
call fcn.0042ec92
add esp, 4
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
call fcn.0042ec92
mov eax, dword [esp + 0x38]
add esp, 4
cmp eax, edi
je 0x423a1c
push eax
call fcn.0042ec92
add esp, 4
mov edx, dword [esp + 0x28]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
call fcn.0042ec92
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 0xc]
add esp, 4
cmp eax, edi
je 0x423a49
push eax
call fcn.0042ec92
add esp, 4
mov eax, dword [esi]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.0042ec92
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0xc]
add esp, 4
cmp eax, edi
je 0x423a71
push eax
call fcn.0042ec92
add esp, 4
mov ecx, dword [esi]
push ecx
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call fcn.0042ec92
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret