Function at 0x40e110
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415810
mov eax, dword fs:[0]
push eax
sub esp, 0x488
mov eax, dword [0x42001c]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x468], eax
mov eax, dword [ebp + 0xc]
push 0x418a75
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x46c], ecx
mov esi, edx
mov dword [eax], 0x194
call dword [sym.imp.Common.dll_public:_class_CTXStringA____thiscall_CTXStringA::operator_char_const__]
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringA::constructor_void_]
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x474], str.text_
mov dword [ebp - 0x470], 0
call edi
lea ecx, [ebp - 0x454]
mov dword [ebp - 4], 0
call edi
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x460]
lea edi, [ebp - 0x450]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040ae80
test eax, eax
jne 0x40e210
push 0x4192e8
push str.func
push 0x2a9
push str.file
mov ecx, 0x417f80
mov edx, str.bugreport
lea edi, [eax + 2]
call fcn.00401a20
add esp, 0x10
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringA::destructor_void_]
lea ecx, [ebp - 0x454]
call esi
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call esi
xor al, al
jmp 0x40e5c5
mov edx, dword [ebp - 0x458]
mov edi, dword [sym.imp.Common.dll_public:_char_const____thiscall_CTXStringA::operator_char_const__void_const]
push 0
push 0
push 3
push 0
push 0
push edx
lea ecx, [ebp - 0x450]
call edi
push eax
mov eax, dword [ebp - 0x468]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [ebp - 0x458], eax
je 0x40e1e8
mov ecx, dword [ebp - 0x460]
push 0
push 0
lea edx, [ebp - 0x474]
push edx
push 0
push str.HTTP_1.1
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x40e2d2
mov edx, dword [ebp - 0x458]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push 0x419304
push str.func
push 0x2b3
push str.file
mov ecx, 0x417f80
mov edx, str.bugreport
lea edi, [esi + 2]
call fcn.00401a20
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringA::destructor_void_]
add esp, 0x10
lea ecx, [ebp - 0x454]
call esi
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call esi
xor al, al
jmp 0x40e5c5
mov ecx, ebx
call dword [sym.imp.Common.dll_public:_int___thiscall_CTXStringA::GetLength_void_const]
push eax
mov ecx, ebx
call edi
push eax
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
lea ecx, [ebp - 0x430]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0x45c]
push eax
push 0x400
lea ecx, [ebp - 0x414]
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push ecx
push esi
mov dword [ebp - 0x45c], edi
call ebx
test eax, eax
je 0x40e35f
mov eax, dword [ebp - 0x45c]
cmp eax, edi
je 0x40e38a
push eax
lea edx, [ebp - 0x414]
push edx
lea ecx, [ebp - 0x430]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_char_const___unsigned_int_]
lea eax, [ebp - 0x45c]
push eax
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push esi
mov dword [ebp - 0x45c], edi
call ebx
test eax, eax
jne 0x40e321
push 0x419320
push str.func
push 0x2c0
push str.file
mov ecx, 0x417f80
mov edx, str.bugreport
mov edi, 2
call fcn.00401a20
add esp, 0x10
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov edx, dword [ebp - 0x458]
push edx
call esi
mov eax, dword [ebp - 0x42c]
mov ebx, 0x10
cmp dword [ebp - 0x418], ebx
mov byte [ebp - 0x460], 0
jae 0x40e3bc
lea eax, [ebp - 0x42c]
push ecx
mov ecx, esp
mov dword [ebp - 0x468], esp
push 0xffffffffffffffff
push eax
mov eax, dword [ebp - 0x460]
push eax
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_struct_tagUTF8__char_const___int_]
push str.func
push 0x2c9
push str.file
mov ecx, 0x41933c
mov edx, str.bugreport
mov edi, 2
call fcn.00405fe0
add esp, 0x10
cmp dword [ebp - 0x41c], 3
jae 0x40e43f
push str.old_svr
push str.func
push 0x2d3
push str.file
mov ecx, 0x417f80
mov edx, str.bugreport
call fcn.00401a20
add esp, 0x10
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x40e1e8
push 0
push 0x20
lea ecx, [ebp - 0x430]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char__unsigned_int_const]
mov esi, eax
cmp esi, dword [ebp - 0x41c]
jae 0x40e550
cmp esi, 3
mov eax, 3
ja 0x40e469
mov eax, esi
push eax
push 0
lea ecx, [ebp - 0x490]
push ecx
lea ecx, [ebp - 0x430]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], ebx
jb 0x40e489
mov eax, dword [eax + 4]
jmp 0x40e48c
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
mov edx, dword [ebp - 0x464]
add esp, 4
lea ecx, [ebp - 0x490]
mov dword [edx], eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, dword [eax]
push ecx
add esi, 1
push esi
lea edx, [ebp - 0x44c]
push edx
lea ecx, [ebp - 0x430]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x438]
test eax, eax
mov esi, eax
jbe 0x40e523
lea edi, [eax - 1]
push edi
lea ecx, [ebp - 0x44c]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp byte [eax], 0xa
jne 0x40e4fd
mov esi, edi
push esi
lea ecx, [ebp - 0x44c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
test esi, esi
jbe 0x40e523
add esi, 0xffffffff
push esi
lea ecx, [ebp - 0x44c]
call dword [sym.imp.MSVCP80.dll_public:_char____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator___unsigned_int_]
cmp byte [eax], 0xd
jne 0x40e523
push esi
lea ecx, [ebp - 0x44c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
cmp dword [ebp - 0x434], ebx
mov eax, dword [ebp - 0x448]
jae 0x40e537
lea eax, [ebp - 0x448]
mov ecx, dword [ebp - 0x46c]
push eax
call dword [sym.imp.Common.dll_public:_class_CTXStringA____thiscall_CTXStringA::operator_char_const__]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44c]
jmp 0x40e58c
push 3
push 0
lea eax, [ebp - 0x490]
push eax
lea ecx, [ebp - 0x430]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
cmp dword [eax + 0x18], ebx
jb 0x40e571
mov eax, dword [eax + 4]
jmp 0x40e574
add eax, 4
push eax
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [ebp - 0x464]
mov dword [ecx], eax
add esp, 4
lea ecx, [ebp - 0x490]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov byte [ebp - 4], 0
mov esi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringA::destructor_void_]
lea ecx, [ebp - 0x454]
call esi
lea ecx, [ebp - 0x450]
mov dword [ebp - 4], 0xffffffff
call esi
mov al, 1
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.00413efc
mov esp, ebp
pop ebp
ret 0xc