Function at 0x418c20
Capabilities:
Initialize winsock library
Resolve dns
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19b4
call fcn.0042dad0
mov eax, dword [0x446824]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x1998]
push eax
push 0x102
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x418cdc
push 0x3ff
push eax
lea ecx, [ebp - 0x807]
push ecx
mov byte [ebp - 0x808], al
call fcn.00423160
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0xc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
push 0
push 0
push eax
lea edx, [ebp - 0x808]
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call edi
xor eax, eax
mov dword [ebp - 0x19a8], eax
mov dword [ebp - 0x19a4], eax
mov dword [ebp - 0x19a0], eax
mov dword [ebp - 0x199c], eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x418cef
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x418d0f
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fcee
mov esp, ebp
pop ebp
ret
movsx edx, word [edi + 0xa]
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
push edx
push ecx
lea edx, [ebp - 0x19a4]
push edx
call fcn.00423720
mov eax, dword [ebp - 0x19a4]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [edi]
mov esi, eax
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x418d40
test dl, dl
je 0x418d3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418d40
add eax, 2
add ecx, 2
test dl, dl
jne 0x418d20
xor eax, eax
jmp 0x418d45
sbb eax, eax
sbb eax, 0xffffffff
neg eax
sbb eax, eax
add eax, 2
mov dword [ebp - 0x19b0], eax
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1806]
push ecx
mov word [ebp - 0x1808], ax
call fcn.00423160
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x418d75
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
inc eax
push eax
push esi
push 0
push 0
call edi
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x418d96
push eax
sub ecx, edx
lea edx, [ebp - 0x1808]
push edx
inc ecx
push ecx
push esi
push 0
push 0
call edi
lea eax, [ebp - 0x1808]
push eax
push 0xff
push 0x44ee98
call fcn.004205b2
push 0x3ff
lea ecx, [ebp - 0x407]
push 0
push ecx
mov byte [ebp - 0x408], bl
call fcn.00423160
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
add esp, 0x18
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x1808]
push edx
push 0
push 0
call esi
push 0
push 0
push eax
lea eax, [ebp - 0x408]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x1808]
push ecx
push 0
push 0
call esi
lea eax, [ebp - 0x408]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x418e23
lea edx, [ebp - 0x408]
sub eax, ecx
push edx
mov edx, eax
call fcn.00416f30
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1006]
push ecx
mov word [ebp - 0x1008], ax
call fcn.00423160
lea eax, [ebp - 0x408]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418e61
push 0
sub eax, edx
push 0
inc eax
push eax
lea edx, [ebp - 0x408]
push edx
push 0
push 0
call edi
lea ecx, [ebp - 0x408]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x418e86
push eax
sub ecx, esi
lea eax, [ebp - 0x1008]
push eax
inc ecx
push ecx
lea ecx, [ebp - 0x408]
push ecx
push 0
push 0
call edi
lea edx, [ebp - 0x19ac]
push edx
push str.SYSTEMCurrentControlSetControlVersionForcorResourcesTimeZone
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x418efb
lea eax, [ebp - 0x1008]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x19ac]
add eax, eax
push eax
lea ecx, [ebp - 0x1008]
push ecx
push 1
push 0
push str.lagsnamecheack
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x418efb
mov eax, dword [ebp - 0x19ac]
push eax
jmp 0x418f02
mov ecx, dword [ebp - 0x19ac]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x19b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041fcee
mov esp, ebp
pop ebp
ret