Function at 0x1004a820
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f2639
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x2b4
mov eax, dword [0x1011b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 0x168], 0
mov byte [ebp - 0x171], 1
push 1
push 2
lea ecx, [ebp - 0x2c4]
call fcn.1001e9e0
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebp + 0x1c], 0
je 0x1004a8e5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x228], esp
mov eax, dword [ebp + 0x1c]
push eax
call fcn.10009fe0
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0xa4]
push ecx
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x1fc], eax
mov edx, dword [ebp - 0x1fc]
mov dword [ebp - 0x1ac], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x168]
or eax, 1
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x190], ecx
jmp 0x1004a916
push 0x100fa150
lea ecx, [ebp - 0x104]
call fcn.10014010
mov dword [ebp - 0x1b0], eax
mov edx, dword [ebp - 0x168]
or edx, 2
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
mov dword [ebp - 0x1b8], ecx
mov edx, dword [ebp - 0x1b8]
push edx
lea ecx, [ebp - 0x5c]
call fcn.10014050
mov dword [ebp - 4], 3
mov eax, dword [ebp - 0x168]
and eax, 2
je 0x1004a955
and dword [ebp - 0x168], 0xfffffffd
lea ecx, [ebp - 0x104]
call fcn.1000a1c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x168]
and ecx, 1
je 0x1004a976
and dword [ebp - 0x168], 0xfffffffe
lea ecx, [ebp - 0xa4]
call fcn.1000a1c0
lea ecx, [ebp - 0x5c]
call fcn.100140a0
movzx edx, al
test edx, edx
je 0x1004a991
mov dword [ebp - 0x184], 0
jmp 0x1004a99f
lea ecx, [ebp - 0x5c]
call fcn.1000a260
mov dword [ebp - 0x184], eax
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x184]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ecx, dword [ebp - 0x16c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x16c]
cmp dword [edx + 4], 0
je 0x1004a9d5
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 4], 0xffffffff
jne 0x1004a9f0
mov dword [ebp - 0x1c0], 0x100fa154
push 0x1010887c
lea ecx, [ebp - 0x1c0]
push ecx
call sub.MSVCR120.dll__CxxThrowException
cmp dword [ebp + 8], 0
je 0x1004aa52
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x22c], esp
mov edx, dword [ebp + 8]
push edx
call fcn.10009fe0
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0xec]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x1c8], eax
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1d0], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x168]
or edx, 4
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x1d0]
mov dword [ebp - 0x18c], eax
jmp 0x1004aa83
push 0x100fa16c
lea ecx, [ebp - 0xbc]
call fcn.10014010
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp - 0x168]
or ecx, 8
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x1d8]
mov dword [ebp - 0x18c], edx
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x1e0], eax
mov ecx, dword [ebp - 0x1e0]
push ecx
lea ecx, [ebp - 0x74]
call fcn.10014050
mov dword [ebp - 4], 6
mov edx, dword [ebp - 0x168]
and edx, 8
je 0x1004aac2
and dword [ebp - 0x168], 0xfffffff7
lea ecx, [ebp - 0xbc]
call fcn.1000a1c0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x168]
and eax, 4
je 0x1004aae3
and dword [ebp - 0x168], 0xfffffffb
lea ecx, [ebp - 0xec]
call fcn.1000a1c0
cmp dword [ebp + 0x10], 0
je 0x1004ab45
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x218], esp
mov edx, dword [ebp + 0x10]
push edx
call fcn.10009fe0
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x164]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x1e8], eax
mov ecx, dword [ebp - 0x1e8]
mov dword [ebp - 0x1f0], ecx
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x168]
or edx, 0x10
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x1f0]
mov dword [ebp - 0x194], eax
jmp 0x1004ab76
push 0x100fa170
lea ecx, [ebp - 0x11c]
call fcn.10014010
mov dword [ebp - 0x1f8], eax
mov ecx, dword [ebp - 0x168]
or ecx, 0x20
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x1f8]
mov dword [ebp - 0x194], edx
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x200], eax
mov ecx, dword [ebp - 0x200]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.10014050
mov dword [ebp - 4], 9
mov edx, dword [ebp - 0x168]
and edx, 0x20
je 0x1004abb5
and dword [ebp - 0x168], 0xffffffdf
lea ecx, [ebp - 0x11c]
call fcn.1000a1c0
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x168]
and eax, 0x10
je 0x1004abd6
and dword [ebp - 0x168], 0xffffffef
lea ecx, [ebp - 0x164]
call fcn.1000a1c0
cmp dword [ebp + 0x14], 0
je 0x1004ac38
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x20c], esp
mov edx, dword [ebp + 0x14]
push edx
call fcn.10009fe0
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x134]
push eax
call sym.COMMON.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_CCodeOperation::UTF_8ToUnicode_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___
add esp, 0x1c
mov dword [ebp - 0x208], eax
mov ecx, dword [ebp - 0x208]
mov dword [ebp - 0x1dc], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x168]
or edx, 0x40
mov dword [ebp - 0x168], edx
mov eax, dword [ebp - 0x1dc]
mov dword [ebp - 0x19c], eax
jmp 0x1004ac6c
push 0x100fa174
lea ecx, [ebp - 0x14c]
call fcn.10014010
mov dword [ebp - 0x1a8], eax
mov ecx, dword [ebp - 0x168]
or ecx, 0x80
mov dword [ebp - 0x168], ecx
mov edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x19c], edx
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x44]
call fcn.10014050
mov dword [ebp - 4], 0xc
mov edx, dword [ebp - 0x168]
and edx, 0x80
je 0x1004acb1
and dword [ebp - 0x168], 0xffffff7f
lea ecx, [ebp - 0x14c]
call fcn.1000a1c0
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x168]
and eax, 0x40
je 0x1004acd2
and dword [ebp - 0x168], 0xffffffbf
lea ecx, [ebp - 0x134]
call fcn.1000a1c0
mov cx, word [ebp + 0xc]
mov word [ebp - 0x170], cx
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x1a4], 0
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x17c], edx
cmp dword [ebp - 0x17c], 0
je 0x1004ad17
cmp dword [ebp - 0x17c], 1
je 0x1004ad44
cmp dword [ebp - 0x17c], 2
je 0x1004ad67
jmp 0x1004ad88
movzx eax, word [ebp - 0x170]
test eax, eax
jne 0x1004ad2e
mov ecx, 0x15
mov word [ebp - 0x170], cx
mov dword [ebp - 0x178], 1
mov dword [ebp - 0x1a4], 0x8000000
jmp 0x1004ad88
movzx edx, word [ebp - 0x170]
test edx, edx
jne 0x1004ad5b
mov eax, 0x50
mov word [ebp - 0x170], ax
mov dword [ebp - 0x178], 3
jmp 0x1004ad88
movzx ecx, word [ebp - 0x170]
test ecx, ecx
jne 0x1004ad7e
mov edx, 0x1bb
mov word [ebp - 0x170], dx
mov dword [ebp - 0x178], 3
lea ecx, [ebp - 0x44]
call fcn.100140a0
movzx eax, al
test eax, eax
je 0x1004ada3
mov dword [ebp - 0x188], 0
jmp 0x1004adb1
lea ecx, [ebp - 0x44]
call fcn.1000a260
mov dword [ebp - 0x188], eax
lea ecx, [ebp - 0x2c]
call fcn.100140a0
movzx ecx, al
test ecx, ecx
je 0x1004adcc
mov dword [ebp - 0x198], 0
jmp 0x1004adda
lea ecx, [ebp - 0x2c]
call fcn.1000a260
mov dword [ebp - 0x198], eax
lea ecx, [ebp - 0x74]
call fcn.100140a0
movzx edx, al
test edx, edx
je 0x1004adf5
mov dword [ebp - 0x180], 0
jmp 0x1004ae03
lea ecx, [ebp - 0x74]
call fcn.1000a260
mov dword [ebp - 0x180], eax
push 0
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x178]
push ecx
mov edx, dword [ebp - 0x188]
push edx
mov eax, dword [ebp - 0x198]
push eax
movzx ecx, word [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0x180]
push edx
mov eax, dword [ebp - 0x16c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, dword [ebp - 0x16c]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 8], 0
je 0x1004ae65
mov ecx, dword [ebp - 0x16c]
cmp dword [ecx + 8], 0xffffffff
jne 0x1004aeeb
push 0x100fa178
lea edx, [ebp - 0x2c4]
push edx
call fcn.10055360
add esp, 8
mov dword [ebp - 0x1f4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x1f4]
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.1001eb10
mov dword [ebp - 0x1bc], eax
mov ecx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1e4], ecx
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x1e4]
call fcn.1000d8c0
mov dword [ebp - 0x1c4], eax
push 0x10108860
lea edx, [ebp - 0x1c4]
push edx
call sub.MSVCR120.dll__CxxThrowException
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x8c]
call fcn.1000a070
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
mov dword [ebp - 0x1a0], eax
cmp dword [ebp - 0x1a0], 0
je 0x1004af8c
push 0x100fa18c
lea eax, [ebp - 0x2c4]
push eax
call fcn.10055360
add esp, 8
mov dword [ebp - 0x204], eax
mov ecx, dword [ebp - 0x1a0]
push ecx
mov ecx, dword [ebp - 0x204]
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int_]
lea edx, [ebp - 0xd4]
push edx
lea ecx, [ebp - 0x2c4]
call fcn.1001eb10
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1ec], eax
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x1ec]
call fcn.1000d8c0
mov dword [ebp - 0x1d4], eax
push 0x10108860
lea ecx, [ebp - 0x1d4]
push ecx
call sub.MSVCR120.dll__CxxThrowException
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xd4]
call fcn.1000a070
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x16c]
add ecx, 0x10
call fcn.1001ca80
movzx eax, word [ebp - 0x170]
mov ecx, dword [ebp - 0x16c]
mov dword [ecx + 0xa0], eax
mov edx, dword [ebp - 0x16c]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0xa4], eax
cmp dword [ebp + 0x10], 0
je 0x1004afd8
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x16c]
add ecx, 0x28
call fcn.1001ca80
cmp dword [ebp + 0x14], 0
je 0x1004aff0
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp - 0x16c]
add ecx, 0x40
call fcn.1001ca80
mov ecx, dword [ebp - 0x16c]
call sym.COMMON.dll_public:_void___thiscall_W3Client::InitializeCookies_void_
mov ecx, dword [ebp - 0x16c]
call sym.COMMON.dll_public:_void___thiscall_W3Client::InitializePostArguments_void_
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x44]
call fcn.1000a1c0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c]
call fcn.1000a1c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.1000a1c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.1000a1c0
jmp 0x1004b129
mov dword [ebp - 4], 0
jmp 0x1004b13b
jmp 0x1004b144
mov dl, byte [ebp - 0x171]
mov byte [ebp - 0x172], dl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c4]
call fcn.1001a160
mov al, byte [ebp - 0x172]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100ec36e
mov esp, ebp
pop ebp
ret 0x18