Function at 0x59a980
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6385ff
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x6d5db8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x1c], 0
lea eax, [ebp + 0x10c]
push eax
lea ecx, [ebp - 0x18]
call fcn.004015a0
mov dword [ebp - 4], 0
push str.default
lea ecx, [ebp - 0x18]
push ecx
call fcn.0040cd70
add esp, 8
movzx edx, al
test edx, edx
jne 0x59aa16
push str.666666
lea eax, [ebp - 0x18]
push eax
call fcn.0040cd70
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0x59aa16
push str.guest
lea edx, [ebp - 0x18]
push edx
call fcn.0040cd70
add esp, 8
movzx eax, al
test eax, eax
je 0x59aa50
mov dword [ebp - 0x1c], 0xffffd3db
mov ecx, dword [ebp + 0x5d0]
mov dword [ecx + 0x1cc], 0xffffd3db
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x248], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401620
mov eax, dword [ebp - 0x248]
jmp 0x59af58
mov dword [ebp - 0x14], 0
cmp dword [ebp + 0x1dc], 3
jne 0x59aa6f
push 1
push 0x3a98
call dword [sym.imp.NetSDK.dll_Ordinal_4]
jmp 0x59aa7c
push 1
push 0x1388
call dword [sym.imp.NetSDK.dll_Ordinal_4]
cmp dword [ebp + 0x540], 0xc
jne 0x59ab2c
cmp dword [ebp + 0x1dc], 3
jne 0x59aade
mov dword [ebp + 0x548], 1
mov eax, dword [ebp + 0x548]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 5
mov edx, dword [ebp + 0x5d0]
add edx, 0x1f8
push edx
lea eax, [ebp + 0x14c]
push eax
lea ecx, [ebp + 0x10c]
push ecx
mov dx, word [ebp + 0x1e4]
push edx
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.NetSDK.dll_Ordinal_104]
mov dword [ebp - 0x1c], eax
jmp 0x59ab27
mov dword [ebp + 0x548], 0
mov ecx, dword [ebp + 0x548]
push ecx
lea edx, [ebp - 0x14]
push edx
push 5
mov eax, dword [ebp + 0x5d0]
add eax, 0x1f8
push eax
lea ecx, [ebp + 0x14c]
push ecx
lea edx, [ebp + 0x10c]
push edx
mov ax, word [ebp + 0x1e4]
push eax
lea ecx, [ebp + 0x8c]
push ecx
call dword [sym.imp.NetSDK.dll_Ordinal_104]
mov dword [ebp - 0x1c], eax
jmp 0x59ae55
cmp dword [ebp + 0x1dc], 3
jne 0x59ac1c
mov dword [ebp + 0x548], 2
mov edx, dword [ebp + 0x548]
push edx
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0x5d0]
add ecx, 0x1f8
push ecx
lea edx, [ebp + 0x14c]
push edx
lea eax, [ebp + 0x10c]
push eax
mov cx, word [ebp + 0x1e4]
push ecx
lea edx, [ebp + 0x8c]
push edx
call dword [sym.imp.NetSDK.dll_Ordinal_5]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x14], 2
jne 0x59ac17
push 0x40
push 0
lea eax, [ebp - 0x64]
push eax
call fcn.005e5330
add esp, 0xc
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 0
jmp 0x59abb4
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 8
jge 0x59abd1
mov edx, dword [ebp - 0x20]
movsx eax, byte [ebp + edx + 0x10c]
add eax, 3
mov ecx, dword [ebp - 0x20]
mov byte [ebp + ecx - 0x64], al
jmp 0x59abab
mov edx, dword [ebp - 0x20]
mov byte [ebp + edx - 0x64], 0
mov eax, dword [ebp + 0x548]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x5d0]
add edx, 0x1f8
push edx
lea eax, [ebp + 0x14c]
push eax
lea ecx, [ebp + 0x10c]
push ecx
mov dx, word [ebp + 0x1e4]
push edx
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.NetSDK.dll_Ordinal_5]
mov dword [ebp - 0x1c], eax
jmp 0x59ae55
cmp dword [ebp + 0x1dc], 0
jne 0x59acbf
lea ecx, [ebp - 0x1f4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [ebp - 0x1f8], 0
lea edx, [ebp + 0x8c]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1f8], eax
cmp dword [ebp - 0x1f8], 0
jne 0x59ac8f
mov dword [ebp + 0x1d4], 0x64
mov dword [ebp - 0x24c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401620
mov eax, dword [ebp - 0x24c]
jmp 0x59af58
mov eax, dword [ebp - 0x1f8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x1fc], eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
lea edx, [ebp + 0x8c]
push edx
call fcn.005e5450
add esp, 8
mov eax, dword [ebp + 0x548]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x5d0]
add edx, 0x1f8
push edx
lea eax, [ebp + 0x14c]
push eax
lea ecx, [ebp + 0x10c]
push ecx
mov dx, word [ebp + 0x1e4]
push edx
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.NetSDK.dll_Ordinal_5]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jg 0x59ad78
cmp dword [ebp + 0x1d8], 1
jne 0x59ad78
cmp dword [ebp - 0x14], 0xffffd3d9
je 0x59ad78
cmp dword [ebp - 0x14], 0xffffd3d8
je 0x59ad78
cmp dword [ebp - 0x14], 0xffffd3dc
je 0x59ad78
cmp dword [ebp - 0x14], 0xffffd3db
je 0x59ad78
cmp dword [ebp - 0x14], 0xffffd3da
je 0x59ad78
mov ecx, dword [ebp + 0x548]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x5d0]
add eax, 0x1f8
push eax
lea ecx, [ebp + 0x14c]
push ecx
lea edx, [ebp + 0x10c]
push edx
mov ax, word [ebp + 0x1e4]
push eax
lea ecx, [ebp + 0xcc]
push ecx
call dword [sym.imp.NetSDK.dll_Ordinal_5]
mov dword [ebp - 0x1c], eax
jmp 0x59ad9f
call dword [sym.imp.NetSDK.dll_Ordinal_3]
mov dword [ebp - 0x200], eax
mov edx, dword [ebp - 0x200]
push edx
lea eax, [ebp + 0x8c]
push eax
push str.DeviceIp:_s__nError:_d
call fcn.0041cba0
add esp, 0xc
cmp dword [ebp - 0x14], 2
jne 0x59ae55
push 0x40
push 0
lea ecx, [ebp - 0x244]
push ecx
call fcn.005e5330
add esp, 0xc
mov dword [ebp - 0x204], 0
mov dword [ebp - 0x204], 0
jmp 0x59ade1
mov edx, dword [ebp - 0x204]
add edx, 1
mov dword [ebp - 0x204], edx
cmp dword [ebp - 0x204], 8
jge 0x59ae0a
mov eax, dword [ebp - 0x204]
movsx ecx, byte [ebp + eax + 0x10c]
add ecx, 3
mov edx, dword [ebp - 0x204]
mov byte [ebp + edx - 0x244], cl
jmp 0x59add2
mov eax, dword [ebp - 0x204]
mov byte [ebp + eax - 0x244], 0
mov ecx, dword [ebp + 0x548]
push ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x5d0]
add eax, 0x1f8
push eax
lea ecx, [ebp + 0x14c]
push ecx
lea edx, [ebp - 0x244]
push edx
mov ax, word [ebp + 0x1e4]
push eax
lea ecx, [ebp + 0x8c]
push ecx
call dword [sym.imp.NetSDK.dll_Ordinal_5]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp + 0x5d0]
mov eax, dword [edx + 0x318]
mov ecx, dword [ebp + 0x5d0]
add eax, dword [ecx + 0x33c]
mov edx, dword [ebp + 0x5d0]
mov dword [edx + 0x1c4], eax
mov eax, dword [ebp + 0x320]
add eax, dword [ebp + 0x344]
mov dword [ebp + 0x1cc], eax
cmp dword [ebp - 0x1c], 0
jle 0x59aebb
cmp dword [ebp + 0x1dc], 3
jne 0x59aebb
call dword [sym.imp.NetSDK.dll_Ordinal_3]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp + 0x8c]
push edx
push str.DeviceIp:_s___nTyep:Serial__nError:_d
call fcn.0041cba0
add esp, 0xc
mov eax, dword [ebp + 0x5d0]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x1cc], ecx
cmp dword [ebp - 0x1c], 0
jge 0x59af3a
cmp dword [ebp + 0x1dc], 3
jne 0x59af11
mov edx, dword [ebp + 0x5d0]
add edx, 0x3b4
push edx
mov eax, dword [ebp + 0x5d0]
mov ecx, dword [eax + 0x344]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x8c]
push ecx
push str.DeviceIp:_s__LoginID:_d__nError:_d_DeviceType:_d__sCloudErrCode:_s
call fcn.0041cba0
add esp, 0x18
jmp 0x59af3a
mov edx, dword [ebp + 0x5d0]
mov eax, dword [edx + 0x344]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
lea eax, [ebp + 0x8c]
push eax
push str.DeviceIp:_s__LoginID:_d__nError:_d_DeviceType:_d
call fcn.0041cba0
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x250], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401620
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005e5163
mov esp, ebp
pop ebp
ret 0x5cc