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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19b4
call fcn.0042d850
mov eax, dword [0x445824]
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 0x418e8c
push 0x3ff
push eax
lea ecx, [ebp - 0x807]
push ecx
mov byte [ebp - 0x808], al
call fcn.00422ed0
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 0x418e9f
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x418ebf
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041fa5e
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.00423490
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 0x418ef0
test dl, dl
je 0x418eec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x418ef0
add eax, 2
add ecx, 2
test dl, dl
jne 0x418ed0
xor eax, eax
jmp 0x418ef5
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.00422ed0
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x418f25
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 0x418f46
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 0x44de98
call fcn.00420322
push 0x3ff
lea ecx, [ebp - 0x407]
push 0
push ecx
mov byte [ebp - 0x408], bl
call fcn.00422ed0
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 0x418fd3
lea edx, [ebp - 0x408]
sub eax, ecx
push edx
mov edx, eax
call fcn.00406990
xor eax, eax
push 0x7fe
push eax
lea ecx, [ebp - 0x1006]
push ecx
mov word [ebp - 0x1008], ax
call fcn.00422ed0
lea eax, [ebp - 0x408]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x419011
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 0x419036
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 0x4190ab
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 0x4190ab
mov eax, dword [ebp - 0x19ac]
push eax
jmp 0x4190b2
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.0041fa5e
mov esp, ebp
pop ebp
ret