Function at 0x100a1030
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024c06d
push eax
mov eax, 0x2158
mov dword fs:[0], esp
call fcn.1006fb30
push ebx
push 0x800
lea eax, [ebp - 0x964]
mov dword [ebp - 4], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x800
lea eax, [ebp - 0x1164]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x1164]
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0x50
push ecx
lea ecx, [ebp - 0x964]
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push ecx
push eax
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMHttpDownload::ParseUrl_wchar_t_const___wchar_t___unsigned_short_int___wchar_t__
add esp, 0x28
test al, al
jne 0x100a10b8
xor bl, bl
jmp 0x100a1391
cmp byte [sym.WMCommon.dll_bool_WM::GMSocket::m_isInitEnvironment], 0
mov dword [ebp - 0x18], 0xffffffff
jne 0x100a10e7
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMSocket::InitEnvironment_void_
movzx ecx, byte [sym.WMCommon.dll_bool_WM::GMSocket::m_isInitEnvironment]
test al, al
mov edx, 1
cmovne ecx, edx
mov byte [sym.WMCommon.dll_bool_WM::GMSocket::m_isInitEnvironment], cl
push esi
push edi
push 6
push 1
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x100a1386
xor eax, eax
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x964]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a1122
sub ecx, edx
lea eax, [ebp - 0x964]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.1001a600
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x40]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_WM::GMStringConvert::UnicodeStringToMultiByte_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int_
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x100a115f
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x100a1170
xor edi, edi
jmp 0x100a1191
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push dword [ebp - 0x64]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x100a11c7
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100a11bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100a11bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1006e6d7
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov byte [ebp - 4], 1
call fcn.1001a5a0
test edi, edi
je 0x100a1383
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [ebp - 0x10]
push 4
push eax
push 0x1005
push 0xffff
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0x1d4c0
call esi
push 4
lea eax, [ebp - 0x10]
push eax
push 0x1006
push 0xffff
push dword [ebp - 0x18]
call esi
mov esi, dword [ebp - 0x14]
mov eax, 2
push esi
mov word [ebp - 0x28], ax
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x26], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push 0x10
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100a1383
push 0x1000
push eax
lea eax, [ebp - 0x2164]
push eax
call sub.VCRUNTIME140.dll_memset
push 0
lea eax, [ebp - 0x1164]
push eax
push esi
lea eax, [ebp - 0x964]
push eax
lea eax, [ebp - 0x2164]
push eax
call sym.WMCommon.dll_private:_static_void___cdecl_WM::GMHttpDownload::SetRequest_char___wchar_t_const___unsigned_short_int__wchar_t_const___char_const__
lea ecx, [ebp - 0x2164]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100a1297
push 0
sub ecx, edx
lea eax, [ebp - 0x2164]
push ecx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100a1383
push 0x1000
lea eax, [ebp - 0x2164]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2164]
push 0
push 0x1000
push eax
push dword [ebp - 0x18]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x100a1383
mov esi, dword [sym.imp.VCRUNTIME140.dll_strstr]
cmp eax, 0x1000
je 0x100a1314
lea eax, [ebp - 0x2164]
push str.404_Not_Found
push eax
call esi
add esp, 8
test eax, eax
jne 0x100a1383
lea eax, [ebp - 0x2164]
push str.Content_Length:
push eax
call esi
mov esi, eax
add esp, 8
test esi, esi
je 0x100a1383
push 0xd
push esi
call dword [sym.imp.VCRUNTIME140.dll_strchr]
mov edi, eax
add esp, 8
test edi, edi
je 0x100a1383
push 0xfa
lea eax, [ebp - 0x164]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esi, 0x10
lea eax, [ebp - 0x164]
sub edi, esi
push edi
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__atoi64]
mov ecx, dword [ebp + 0x20]
add esp, 0x1c
mov bl, 1
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 4], edx
jmp 0x100a1388
mov eax, dword [ebp - 0x18]
xor bl, bl
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
lea ecx, [ebp + 8]
call fcn.1001a5a0
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c