Function at 0x47e5d0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [0x61531c]
sub esp, 0x104
test eax, eax
jne 0x47e5e6
add esp, 0x104
ret
push ebp
push esi
mov esi, dword [esp + 0x110]
test esi, esi
push edi
je 0x47e618
mov eax, dword [esi + 0x540]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
jne 0x47e613
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x104
ret
mov eax, dword [0x61531c]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x47e717
test esi, esi
je 0x47e708
mov ecx, dword [esi + 0x12c]
test ecx, ecx
je 0x47e708
cmp esi, eax
je 0x47e708
mov eax, dword [esi + 0x130]
cmp eax, 5
je 0x47e708
cmp eax, 0x33
je 0x47e708
cmp eax, 0x34
je 0x47e708
lea ecx, [esi + 0x64]
push ecx
push 0
push 0x7d2
call fcn.00421db0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push eax
lea edx, [esp + 0x14]
push edx
call ebp
mov eax, dword [0x61531c]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x47e6d7
mov eax, dword [eax + 0x544]
inc ecx
test eax, eax
jne 0x47e694
cmp ecx, 1
jle 0x47e6d7
lea eax, [esp + 0xc]
lea edi, [eax + 1]
jmp 0x47e6b0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47e6b0
sub eax, edi
dec ecx
push ecx
push 0
push 0x7d3
mov edi, eax
call fcn.00421db0
add esp, 8
push eax
lea eax, [esp + edi + 0x14]
push eax
call ebp
add esp, 0xc
mov ecx, dword [0x6136ac]
mov dword [0x63f7ac], 0
mov dword [0x63f7bc], 1
mov eax, dword [esi + 0x540]
push ecx
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push ecx
call fcn.005275f0
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x104
ret
test esi, esi
jne 0x47e71d
mov esi, eax
mov eax, dword [esi + 0x12c]
test eax, eax
je 0x47e7ef
mov eax, dword [esi + 0x130]
cmp eax, 5
je 0x47e7ef
cmp eax, 0x33
je 0x47e7ef
cmp eax, 0x34
je 0x47e7ef
lea edx, [esi + 0x64]
push edx
push 0
push 0x7d1
call fcn.00421db0
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push eax
lea eax, [esp + 0x14]
push eax
call ebp
mov eax, dword [0x61531c]
add esp, 0xc
xor ecx, ecx
test eax, eax
je 0x47e7be
jmp 0x47e780
mov eax, dword [eax + 0x544]
inc ecx
test eax, eax
jne 0x47e780
cmp ecx, 1
jle 0x47e7be
lea eax, [esp + 0xc]
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x47e797
sub eax, edi
dec ecx
push ecx
push 0
push 0x7d3
mov edi, eax
call fcn.00421db0
add esp, 8
push eax
lea ecx, [esp + edi + 0x14]
push ecx
call ebp
add esp, 0xc
mov edx, dword [0x6136ac]
mov dword [0x63f7ac], 0
mov dword [0x63f7bc], 1
mov ecx, dword [esi + 0x540]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x10]
push eax
push edx
call fcn.005275f0
add esp, 0xc
mov eax, dword [esi + 0x540]
push eax
call fcn.00502a60
add esp, 4
test eax, eax
je 0x47e607
lea edi, [esi + 0x64]
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x47e86c
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 + 0x13c]
mov byte [edi], dl
movzx eax, ax
lea edx, [esi + 0x140]
push edx
push 2
mov byte [esi + 0x13d], cl
mov ecx, eax
push 4
shr ecx, 8
push edi
mov byte [esi + 0x13e], cl
mov byte [esi + 0x13f], al
mov eax, dword [0x645324]
push 0x800b
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByAddr]
jmp 0x47e88a
mov eax, dword [0x645324]
push 0x400
lea edx, [esi + 0x140]
push edx
push edi
push 0x800b
push eax
call dword [sym.imp.WSOCK32.dll_WSAAsyncGetHostByName]
xor ecx, ecx
test eax, eax
setne cl
pop edi
mov dword [esi + 0x138], eax
pop esi
pop ebp
mov eax, ecx
add esp, 0x104
ret