Function at 0x47f930
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [0x642fa4]
sub esp, 0x434
test eax, eax
jne 0x47f946
add esp, 0x434
ret
push esi
mov esi, dword [esp + 0x43c]
test esi, esi
push edi
je 0x47f976
mov eax, dword [esi + 0x7ac]
push eax
call fcn.00508aa0
add esp, 4
test eax, eax
jne 0x47f971
pop edi
xor eax, eax
pop esi
add esp, 0x434
ret
mov eax, dword [0x642fa4]
mov ecx, dword [eax + 0x3a4]
test ecx, ecx
je 0x47fa79
test esi, esi
je 0x47fa6b
mov ecx, dword [esi + 0x398]
test ecx, ecx
je 0x47fa6b
cmp esi, eax
je 0x47fa6b
mov eax, dword [esi + 0x39c]
cmp eax, 5
je 0x47fa6b
cmp eax, 0x33
je 0x47fa6b
cmp eax, 0x34
je 0x47fa6b
lea ecx, [esi + 0x132]
push ecx
push 0
push 0x7d2
call fcn.00424130
add esp, 8
push eax
lea edx, [esp + 0x10]
push edx
call fcn.005d9929
mov eax, dword [0x642fa4]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x47fa3a
mov eax, dword [eax + 0x7b0]
inc ecx
test eax, eax
jne 0x47f9f2
cmp ecx, 1
jle 0x47fa3a
lea eax, [esp + 8]
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47fa10
sub eax, edi
dec ecx
push ecx
push 0
push 0x7d3
mov edi, eax
call fcn.00424130
add esp, 8
push eax
lea eax, [esp + edi + 0x10]
push eax
call fcn.005d9929
add esp, 0xc
mov ecx, dword [0x63caac]
mov dword [0x6870cc], 0
mov dword [0x6870dc], 1
mov eax, dword [esi + 0x7ac]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push ecx
call fcn.0052eb30
add esp, 0xc
pop edi
mov eax, 1
pop esi
add esp, 0x434
ret
test esi, esi
jne 0x47fa7f
mov esi, eax
mov eax, dword [esi + 0x398]
test eax, eax
je 0x47fb52
mov eax, dword [esi + 0x39c]
cmp eax, 5
je 0x47fb52
cmp eax, 0x33
je 0x47fb52
cmp eax, 0x34
je 0x47fb52
lea edx, [esi + 0x132]
push edx
push 0
push 0x7d1
call fcn.00424130
add esp, 8
push eax
lea eax, [esp + 0x10]
push eax
call fcn.005d9929
mov eax, dword [0x642fa4]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x47fb21
lea ecx, [ecx]
mov eax, dword [eax + 0x7b0]
inc ecx
test eax, eax
jne 0x47fae0
cmp ecx, 1
jle 0x47fb21
lea eax, [esp + 8]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47faf7
sub eax, edi
dec ecx
push ecx
push 0
push 0x7d3
mov edi, eax
call fcn.00424130
add esp, 8
push eax
lea ecx, [esp + edi + 0x10]
push ecx
call fcn.005d9929
add esp, 0xc
mov edx, dword [0x63caac]
mov dword [0x6870cc], 0
mov dword [0x6870dc], 1
mov ecx, dword [esi + 0x7ac]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0xc]
push eax
push edx
call fcn.0052eb30
add esp, 0xc
mov eax, dword [esi + 0x7ac]
push eax
call fcn.00508aa0
add esp, 4
test eax, eax
je 0x47f966
lea edi, [esi + 0x132]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x47fbd2
push eax
call dword [sym.imp.WSOCK32.dll_htonl]
mov ecx, eax
shr ecx, 0x10
mov edx, ecx
push 0x400
shr edx, 8
lea edi, [esi + 0x3a8]
mov byte [edi], dl
movzx eax, ax
lea edx, [esi + 0x3ac]
push edx
push 2
mov byte [esi + 0x3a9], cl
mov ecx, eax
push 4
shr ecx, 8
push edi
mov byte [esi + 0x3aa], cl
mov byte [esi + 0x3ab], al
mov eax, dword [0x6a0f40]
push 0x800b
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByAddr]
jmp 0x47fbf0
mov eax, dword [0x6a0f40]
push 0x400
lea edx, [esi + 0x3ac]
push edx
push edi
push 0x800b
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByName]
xor ecx, ecx
test eax, eax
setne cl
mov dword [esi + 0x3a4], eax
pop edi
pop esi
mov eax, ecx
add esp, 0x434
ret