Function at 0x1004be42
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x100d0974
call fcn.10030644
sub esp, 0x3ac
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x28], esi
mov eax, dword [ebp + 0x30]
mov dword [ebp - 4], 1
mov dword [esi + 0x35c0], eax
mov ax, word [ebp + 0x1c]
mov word [esi + 0x355a], ax
mov eax, dword [ebp + 8]
mov dword [esi + 0x328], eax
mov eax, dword [ebp + 0x24]
xor edi, edi
cmp eax, edi
jne 0x1004be8c
mov eax, 0x100d6d1c
push eax
lea ecx, [ebp + 0x30]
call fcn.10002736
mov eax, dword [eax]
mov byte [ebp - 4], 2
cmp eax, edi
je 0x1004bea3
mov ebx, dword [eax]
jmp 0x1004bea5
xor ebx, ebx
push ebx
call fcn.10031058
pop ecx
push eax
push ebx
lea ecx, [esi + 0x34d8]
call fcn.10004232
mov ecx, dword [ebp + 0x30]
mov byte [ebp - 4], 1
cmp ecx, edi
je 0x1004bec9
call fcn.10002801
push fcn.100026de
push 0x1004c22a
push 0x32
lea eax, [ebp - 0x3b8]
push 0x10
push eax
call fcn.1003153a
lea eax, [ebp - 0x3b8]
push 0x2c
push eax
lea eax, [ebp + 0xc]
sub esp, 0x10
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp + 0x30], esp
push eax
call fcn.1000350c
mov byte [ebp - 4], 3
call fcn.1004bc9c
add esp, 0x18
cmp eax, edi
mov dword [esi + 0x334], eax
mov dword [ebp - 0x10], edi
jle 0x1004c1e2
lea eax, [ebp - 0x3b8]
add esi, 0x3e4
mov dword [ebp + 8], eax
jmp 0x1004bf31
xor edi, edi
mov al, byte [ebp + 0x33]
mov dword [esi], edi
and byte [esi + 6], 0
mov ebx, dword [str.8dfhost]
push edi
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
call fcn.10002424
push ebx
call fcn.10030730
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x38]
call fcn.100036bc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 5
call fcn.100087d2
push eax
lea ecx, [ebp - 0x14]
call fcn.10002736
sub esp, 0x10
lea ecx, [ebp + 0x33]
mov ebx, esp
mov dword [ebp + 0x1c], esp
push ecx
mov ecx, eax
mov byte [ebp - 4], 6
call fcn.1000885f
push eax
mov ecx, ebx
call fcn.10003536
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
call fcn.1006603f
add esp, 0x18
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0xa
cmp ecx, edi
je 0x1004bfb8
call fcn.10002801
mov dword [ebp - 0x14], edi
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 9
call fcn.10002424
mov ebx, 0x1010246c
push ebx
call fcn.10030730
pop ecx
push eax
push edi
push ebx
lea ecx, [ebp - 0x24]
call fcn.100505ea
mov edi, eax
push ebx
lea eax, [edi + 1]
mov dword [ebp + 0x1c], eax
call fcn.10030730
pop ecx
push eax
lea ecx, [ebp - 0x24]
push dword [ebp + 0x1c]
push ebx
call fcn.100505ea
mov ebx, eax
mov eax, dword [0x100d6d18]
cmp edi, eax
je 0x1004c19e
cmp ebx, eax
je 0x1004c12b
mov eax, ebx
lea ecx, [ebp - 0x24]
sub eax, edi
dec eax
push eax
lea eax, [ebp - 0x98]
push dword [ebp + 0x1c]
push eax
call fcn.1000db8d
push dword [0x100d6d18]
lea ecx, [esi - 0x50]
mov byte [ebp - 4], 0xb
push 0
push eax
call fcn.10003585
push 1
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 9
call fcn.10002424
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
sub eax, ebx
inc ebx
push eax
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.1000db8d
mov eax, dword [eax + 4]
xor ebx, ebx
cmp eax, ebx
mov byte [ebp - 4], 0xc
jne 0x1004c074
mov eax, 0x100d6d1c
push eax
call fcn.100363df
pop ecx
mov word [esi + 4], ax
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.10002424
push edi
lea eax, [ebp - 0x58]
push ebx
push eax
lea ecx, [ebp - 0x24]
call fcn.1000db8d
mov al, byte [ebp - 0x58]
sub esp, 0x10
mov edi, esp
mov dword [ebp + 0x1c], esp
mov byte [ebp - 4], 0xd
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.10002424
push dword [0x100d6d18]
lea eax, [ebp - 0x58]
mov ecx, edi
push ebx
push eax
call fcn.10003585
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0xd
push eax
call fcn.10041fb4
add esp, 0x14
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 0xf
cmp eax, ebx
jne 0x1004c0e6
mov eax, 0x100d6d1c
push 0x40
push eax
lea eax, [esi - 0x40]
push eax
call fcn.10037280
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp eax, ebx
jne 0x1004c101
mov eax, 0x100d6d1c
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [esi], eax
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xd
call fcn.10002424
mov byte [ebp - 4], 9
push 1
lea ecx, [ebp - 0x58]
call fcn.10002424
jmp 0x1004c1b8
push edi
lea eax, [ebp - 0x78]
push 0
push eax
lea ecx, [ebp - 0x24]
call fcn.1000db8d
push dword [0x100d6d18]
lea ecx, [esi - 0x50]
mov byte [ebp - 4], 0x10
push 0
push eax
call fcn.10003585
push 1
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 9
call fcn.10002424
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x24]
sub eax, edi
push eax
lea eax, [ebp - 0x88]
push dword [ebp + 0x1c]
push eax
call fcn.1000db8d
mov eax, dword [eax + 4]
mov byte [ebp - 4], 0x11
test eax, eax
jne 0x1004c185
mov eax, 0x100d6d1c
push eax
call fcn.100363df
pop ecx
mov word [esi + 4], ax
mov byte [ebp - 4], 9
push 1
lea ecx, [ebp - 0x88]
jmp 0x1004c121
mov word [esi + 4], 0x20bb
push dword [0x100d6d18]
lea eax, [ebp - 0x24]
lea ecx, [esi - 0x50]
push 0
push eax
call fcn.10003585
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.10002424
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add dword [ebp + 8], 0x10
add esi, 0x58
cmp ecx, dword [eax + 0x334]
jl 0x1004bf2f
push fcn.100026de
push 0x32
lea eax, [ebp - 0x3b8]
push 0x10
push eax
mov byte [ebp - 4], 1
call fcn.1003145c
and byte [ebp - 4], 0
push 1
lea ecx, [ebp + 0xc]
call fcn.10002424
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 0x20]
call fcn.10002424
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
leave
ret 0x2c