Function at 0x42a3e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
xor edi, edi
push edi
push edi
push edi
mov esi, ecx
push 1
push 2
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi + 0xe4], eax
cmp eax, 0xffffffff
jne 0x42a45a
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x20]
push eax
push str.WSASocket_g_sdListen_:__d_n
push esi
call edx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 0x18]
push ecx
push 0x1001
push 0xffff
mov dword [ebp - 0x18], edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push eax
call edi
cmp eax, 0xffffffff
jne 0x42a4a7
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x20]
push eax
push str.setsockopt_SNDBUF_:__d_n
push esi
call edx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0xe4]
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1002
push 0xffff
push ecx
mov dword [ebp - 0x18], 0
call edi
cmp eax, 0xffffffff
jne 0x42a4f8
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x20]
push eax
push str.setsockopt_SO_RCVBUF_:__d_n
push esi
call edx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0xe4]
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x80
push 0xffff
push ecx
call edi
cmp eax, 0xffffffff
jne 0x42a542
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x20]
push eax
push str.setsockopt_SO_LINGER_:__d_n
push esi
call edx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0xe4]
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0xffff
push ecx
mov dword [ebp - 0x20], 1
call edi
mov edx, 2
push ebx
mov word [ebp - 0x14], dx
call dword [sym.imp.WS2_32.dll_htons]
push str.127.0.0.1
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esi + 0xe4]
mov dword [ebp - 0x10], eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
jne 0x42a5c5
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [edi + 0x20]
push eax
push str.bind:__d_n
push esi
call edx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0xe4]
push SysReAllocString
push eax
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x42a608
mov edi, dword [esi]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [edi + 0x20]
push eax
push str.listen:__d_n
push esi
call ecx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xe4]
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 4], eax
test eax, eax
jne 0x42a650
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x20]
push eax
push str.CreateIoCompletionPort:__d_n
push esi
call ecx
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005232d4
mov esp, ebp
pop ebp
ret 4