Function at 0x523d20
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x28]
movzx ebx, word [ebp + 2]
push esi
push edi
xor edi, edi
mov dword [0x463b34], edi
movzx eax, byte [ebp + 0x11]
movzx ecx, byte [ebp + 0x10]
imul eax, eax, 0x3e8
mov edx, dword [ebp + 0x14]
push edx
add eax, ecx
and ebx, 1
push ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], eax
call fcn.00520330
mov esi, eax
test esi, esi
je 0x523dab
push ebx
push 0x81
push esi
call fcn.00520200
mov dword [esp + 0x1c], eax
test eax, eax
je 0x52409c
push eax
call fcn.0051f5b0
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x52409c
push ebx
push esi
mov esi, eax
push esi
call fcn.00520280
mov dword [esp + 0x14], esi
jmp 0x523db7
mov dword [esp + 0x14], 0x4651d5
mov esi, dword [esp + 0x14]
movzx eax, word [ebp + 0x12]
mov dword [esp + 0x10], eax
cmp eax, 0xfffe
jne 0x523dfd
cmp byte [esi], 0
jne 0x523dda
mov dword [0x463b34], 4
jmp 0x52409c
push esi
push 8
call fcn.0051fa30
test eax, eax
jne 0x523df5
mov dword [0x463b34], 0x29
jmp 0x52409c
dec eax
movzx eax, ax
mov dword [esp + 0x10], eax
call fcn.00523a40
cmp dword [0x59e6c4], edi
jne 0x523e19
mov dword [0x463b34], 0x60
jmp 0x52409c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
push ecx
push esi
push edx
push ebp
call fcn.00522c40
mov edi, eax
test edi, edi
je 0x52409c
call fcn.00522a30
mov byte [esp + 0x30], al
mov eax, dword [ebp + 0x18]
push eax
push ebp
call fcn.00520330
mov esi, eax
test esi, esi
je 0x523f00
cmp byte [esi], 0
je 0x523f00
push ebx
push 0x200
push esi
call fcn.00520200
test eax, eax
je 0x52409c
push eax
call fcn.0051f5b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x52409c
mov ecx, dword [0x463b58]
push ecx
push esi
push ebp
call fcn.00520280
push ebp
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
je 0x523eb1
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x54], eax
mov eax, dword [esp + 0x20]
push eax
push ebx
push 0
push ecx
push 0
jmp 0x524092
push ebp
call sub.WSOCK32.dll_gethostbyname
push ebp
mov esi, eax
call fcn.00526d54
add esp, 4
test esi, esi
jne 0x523ed5
mov dword [0x463b34], 0x69
jmp 0x52409c
movsx edx, word [esi + 0xa]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [edi + 0x54]
push edx
call fcn.00526df0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push eax
push ebx
push 0
push ecx
push 0
jmp 0x524092
cmp byte [esp + 0x30], 0
je 0x523fba
mov esi, dword [0x59f4b0]
test esi, esi
je 0x52409c
lea esp, [esp]
cmp dword [esi + 8], 0
je 0x523fab
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x523f37
mov dword [edi + 0x54], eax
jmp 0x523f5b
lea edx, [esi + 0xc]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x523fab
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [edi + 0x54]
push ecx
call fcn.00526df0
add esp, 0xc
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push edx
push ebx
push 0
push eax
push 0
push edi
mov dword [0x463b34], 0
call fcn.00523620
mov dword [esp + 0x18], eax
test eax, eax
jne 0x52409c
push edi
call fcn.00522d90
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x34]
push ecx
push edx
push eax
push ebp
call fcn.00522c40
mov edi, eax
test edi, edi
je 0x52409c
mov esi, dword [esi]
test esi, esi
jne 0x523f20
jmp 0x52409c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov dword [esp + 0x34], 0
lea ebx, [ebx]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebp
add ebx, 0xbb8
call fcn.00523b60
test eax, eax
je 0x52409c
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.00522ef0
mov esi, eax
test esi, esi
je 0x52401e
nop
movzx eax, word [esi + 4]
mov dword [0x463b34], eax
test eax, eax
je 0x524045
lea ecx, [esp + 0x30]
push ecx
push ebx
call fcn.00522ef0
mov esi, eax
test esi, esi
jne 0x524000
cmp dword [esp + 0x34], 0
jne 0x524032
call fcn.005229e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 3
mov dword [esp + 0x34], eax
jl 0x523fd0
mov eax, dword [0x463b34]
test esi, esi
jne 0x524059
test eax, eax
jne 0x52409c
mov dword [0x463b34], 0x69
jmp 0x52409c
mov dx, word [esi + 0x14]
mov ebx, dword [esi + 0xc]
mov ecx, dword [esp + 0x30]
mov word [edi + 0x48], dx
mov ax, word [esi + 0x10]
mov word [edi + 0x46], ax
mov dword [edi + 0x54], ecx
push 0
push 0
call fcn.00522ef0
test eax, eax
jne 0x524073
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x10]
push edx
push eax
push ebx
push ecx
push 1
push edi
call fcn.00523620
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x24]
push edx
call fcn.00526d54
mov esi, dword [esp + 0x1c]
add esp, 4
test esi, esi
jne 0x5240bb
test edi, edi
je 0x5240bb
push edi
call fcn.00522d90
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8