Function at 0x46b30e
Capabilities:
Set socket configuration
Terminate process

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, edx
push edi
xor edi, edi
mov dword [esp + 0x20], eax
xor ecx, ecx
mov dword [esp + 0x18], edi
mov ebp, edi
mov dword [esp + 0x10], edi
inc ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebp
mov ebx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
test eax, eax
jne 0x46b3fb
lea ecx, [esp + 0x10]
call fcn.0046bacc
mov dword [esp + 0x18], eax
cmp eax, dword [esi + 0x70]
jne 0x46b36c
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x46b367
cmp dword [esi + 0x6c], edi
je 0x46b38b
jmp 0x46b36c
cmp dword [esi + 0x6c], ebx
jne 0x46b373
xor ecx, ecx
lea ebx, [ecx + 1]
jmp 0x46b38b
shl eax, 4
push eax
push dword [esi + 0x6c]
push ecx
call fcn.006283b0
add esp, 0xc
test eax, eax
push 1
pop ecx
cmovne ebx, ecx
cmp dword [esi + 0x20], edi
je 0x46b3d3
lea ecx, [esp + 0x14]
call fcn.0046bc35
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
cmp eax, dword [esi + 0x78]
jne 0x46b3f8
test ebp, ebp
je 0x46b3c9
cmp dword [esi + 0x74], edi
je 0x46b3f8
shl eax, 2
push eax
push dword [esi + 0x74]
push ebp
call fcn.006283b0
add esp, 0xc
test eax, eax
push 1
pop ecx
cmovne ebx, ecx
jmp 0x46b3d6
xor ecx, ecx
inc ecx
cmp dword [esi + 0x74], edi
jne 0x46b3fb
jmp 0x46b3d6
xor ecx, ecx
inc ecx
test ebx, ebx
jne 0x46b3fb
push ecx
push dword [esp + 0x14]
call fcn.005cdee0
xor ecx, ecx
inc ecx
push ecx
push ebp
call fcn.005cdee0
add esp, 0x10
xor eax, eax
jmp 0x46b68a
xor ecx, ecx
inc ecx
cmp dword [esi + 0x6c], edi
je 0x46b40e
push ecx
push dword [esi + 0x6c]
call fcn.005cdee0
pop ecx
pop ecx
mov dword [esi + 0x6c], edi
cmp dword [esi + 0x74], edi
je 0x46b424
xor eax, eax
inc eax
push eax
push dword [esi + 0x74]
call fcn.005cdee0
pop ecx
pop ecx
mov dword [esi + 0x74], edi
cmp dword [esi + 0x24], edi
je 0x46b459
mov ebx, edi
cmp dword [esi + 0x70], edi
jle 0x46b448
mov eax, dword [esi + 0x24]
mov edx, dword [eax + ebx*4]
test edx, edx
je 0x46b442
mov ecx, dword [esi + 0xc]
call fcn.0046c3c6
inc ebx
cmp ebx, dword [esi + 0x70]
jl 0x46b430
xor eax, eax
inc eax
push eax
push dword [esi + 0x24]
call fcn.005cdee0
pop ecx
pop ecx
mov dword [esi + 0x24], edi
cmp dword [esp + 0x20], edi
jne 0x46b3f1
movzx eax, word [esi + 0x38]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push eax
call ebx
movzx eax, word [esi + 0x38]
push eax
call ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x46b63c
cmp word [esi + 0x40], di
je 0x46b630
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x70], ecx
mov dword [esi + 0x6c], eax
test ecx, ecx
jle 0x46b63c
xor eax, eax
mov ebx, 0x9c
push ebx
inc eax
push 0x760608
push eax
mov eax, ecx
shl eax, 2
push eax
call fcn.005ce020
add esp, 0x10
mov dword [esi + 0x24], eax
test eax, eax
je 0x46b692
mov ebx, edi
cmp dword [esi + 0x70], edi
jle 0x46b63c
mov dword [esp + 0x10], edi
movzx eax, word [esi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 0x6c]
mov edx, dword [esp + 0x10]
push esi
push edi
push 0x46b2b0
mov word [edx + ecx + 2], ax
xor eax, eax
mov ecx, dword [esi + 0xc]
inc eax
push eax
mov eax, dword [esi + 0x6c]
add eax, edx
xor edx, edx
push eax
call fcn.0046a1b2
mov ecx, dword [esi + 0x24]
add esp, 0x14
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x46b5d2
mov eax, dword [esi + 0x6c]
lea edx, [esi + 0x40]
add eax, dword [esp + 0x10]
push eax
call fcn.0046a39d
mov ecx, dword [esi + 0x6c]
add ecx, dword [esp + 0x14]
push 0x10
pop eax
push 0x1c
cmp word [ecx], 0x17
pop edx
cmove eax, edx
push eax
mov eax, dword [esi + 0x24]
push ecx
mov ecx, dword [eax + ebx*4]
add ecx, 0x58
call section..text
mov eax, dword [esi + 0x24]
add esp, 0xc
mov eax, dword [eax + ebx*4]
push 4
mov ecx, dword [eax + 0x30]
lea eax, [esi + 0x30]
push eax
push 0xa
push edi
push ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x46b61c
push 4
lea eax, [esi + 0x34]
push eax
push 0xb
push edi
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x46b608
push 4
lea eax, [esi + 0x34]
push eax
push 0xb
push edi
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
push edi
test eax, eax
jne 0x46b5e3
mov eax, dword [esi + 0x6c]
xor ecx, ecx
mov edx, dword [esp + 0x14]
push edi
mov word [edx + eax + 2], cx
lea eax, [esp + 0x2c]
push eax
push edi
push edi
push 4
lea eax, [esp + 0x40]
push eax
push 0x9800000c
push dword [esp + 0x34]
call dword [sym.imp.WS2_32.dll_WSAIoctl]
add dword [esp + 0x10], 0x10
inc ebx
cmp ebx, dword [esi + 0x70]
jl 0x46b4d2
jmp 0x46b63c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xab
mov edx, 0x7606e0
xor ecx, ecx
call fcn.0047145c
add esp, 0xc
push 0xfd
jmp 0x46b6c0
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xaa
mov edx, 0x7606bc
jmp 0x46b5f4
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xa9
mov edx, 0x760698
jmp 0x46b5f4
xor ecx, ecx
inc ecx
push ecx
push eax
call fcn.005cdee0
pop ecx
pop ecx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x46b677
test ebp, ebp
je 0x46b687
cmp word [esi + 0x50], di
je 0x46b677
cmp dword [esi + 0x20], edi
je 0x46b677
mov dword [esi + 0x78], eax
mov dword [esi + 0x74], ebp
test eax, eax
jle 0x46b687
mov eax, dword [esi + 0x74]
lea edx, [esi + 0x50]
mov ecx, dword [esi + 0x20]
push dword [eax + edi*4]
call fcn.0046a3d8
inc edi
pop ecx
cmp edi, dword [esi + 0x78]
jl 0x46b65d
jmp 0x46b687
test ebp, ebp
je 0x46b687
xor eax, eax
inc eax
push eax
push ebp
call fcn.005cdee0
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov esi, 0xfe
mov edx, 0x76062c
push esi
push ebx
xor ecx, ecx
call fcn.0047145c
push ebx
push 0x760650
push 0x760674
call fcn.004010b4
add esp, 0x18
push esi
call fcn.005aae60
int3