Function at 0x448160
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x440
mov eax, dword [0x4a2e7c]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x44c]
mov ecx, dword [esp + 0x448]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], eax
xor edi, edi
mov eax, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4481a0
sub eax, esi
mov ebx, eax
push ebx
push ecx
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x58], ebx
call fcn.00450000
add ebx, 4
push ebx
lea edx, [esp + 0x5c]
push edx
push 0x354e
call fcn.0041e8f0
add esp, 0x18
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
cmp eax, edi
mov ebp, dword [esp + 0x454]
mov dword [esp + 0x14], eax
jne 0x4481f2
push str.NDBQuery::socketProc_1_:_WSACreateEvent_n
jmp 0x44833f
push 0x23
push eax
push ebp
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x44820b
push str.NDBQuery::socketProc_2_:_WSAEventSelect_n
jmp 0x44833f
xor esi, esi
push esi
push 0x927c0
push esi
lea eax, [esp + 0x20]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
je 0x44833a
lea ebx, [ebx]
cmp eax, 0x102
je 0x44833a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
push ebp
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
je 0x44831b
mov eax, dword [esp + 0x20]
test eax, eax
je 0x44831b
test al, 2
je 0x4482b0
test esi, esi
jne 0x4482b0
mov esi, ebx
sub esi, edi
push esi
lea eax, [esp + edi + 0x50]
push eax
push ebp
call fcn.00448d20
add esp, 0xc
test eax, eax
jl 0x448395
cmp eax, esi
jge 0x44828e
xor esi, esi
add edi, eax
jmp 0x4482ac
mov ecx, dword [esp + 0x14]
push 0x21
push ecx
push ebp
mov esi, 1
add edi, eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x44839c
mov eax, dword [esp + 0x20]
test al, 1
je 0x448313
lea edx, [esp + 0x10]
push edx
push 0x4004667f
push ebp
mov dword [esp + 0x1c], 0
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x448349
cmp dword [esp + 0x10], 4
jb 0x44831b
push 4
call fcn.0044dad6
mov esi, eax
push 4
push esi
push ebp
mov dword [esi], 0
call fcn.00448f00
add esp, 0x10
cmp eax, 4
je 0x4483a3
push esi
call fcn.0044db99
push str.NDBQuery::socketProc_6_:_NSocketUtil::recvPacketExact_error_n
push 1
call fcn.00415d30
add esp, 0xc
jmp 0x448349
test al, 0x20
jne 0x44846a
push 0
push 0x927c0
push 0
lea eax, [esp + 0x20]
push eax
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x448230
push str.NDBQuery::socketProc_3_:_WSAWaitForMultipleEvents_Timeout_n
push 1
call fcn.00415d30
add esp, 8
mov eax, dword [esp + 0x14]
test eax, eax
je 0x448366
push 0
push eax
push ebp
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
test ebp, ebp
je 0x448376
cmp ebp, 0xffffffff
je 0x448376
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x44c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0044b607
add esp, 0x440
ret 0x10
push str.NDBQuery::socketProc_4_:_NSocketUtil::sendPacket_error_n
jmp 0x44833f
push str.NDBQuery::socketProc_5_:_WSAEventSelect_error_n
jmp 0x44833f
push 4
push esi
push 0x354e
call fcn.0041e9a0
mov ecx, dword [esi]
push esi
mov dword [esp + 0x20], ecx
call fcn.0044db99
mov eax, dword [esp + 0x20]
lea edx, [eax - 1]
add esp, 0x10
cmp edx, 0xfffff
ja 0x448460
add eax, 1
push eax
call fcn.0044dad6
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 1
push eax
push 0
push esi
call fcn.0044c830
mov ecx, dword [esp + 0x20]
push ecx
push esi
push ebp
call fcn.00448f00
add esp, 0x1c
cmp eax, dword [esp + 0x10]
je 0x44841c
push esi
call fcn.0044db99
push str.NDBQuery::socketProc_8_:_NSocketUtil::recvPacketExact_error_n
push 1
call fcn.00415d30
add esp, 0xc
jmp 0x448349
push eax
push esi
push 0x354e
call fcn.0041e9a0
mov eax, dword [esp + 0x46c]
lea edx, [eax - 1]
push edx
push esi
push eax
mov eax, dword [esp + 0x34]
push eax
call fcn.0044cae0
add esp, 0x1c
test esi, esi
mov dword [esp + 0x18], 1
je 0x448349
push esi
call fcn.0044db99
add esp, 4
jmp 0x448349
push str.NDBQuery::socketProc_7_:_recv_size_error_n
jmp 0x44833f
push str.socketProc::socketProc_9_:_remote_socket_closed_n
push 3
jmp 0x448341