Function at 0x41ab8f
Capabilities:
Check http status code
Delete file
Download and write a file
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, 0x4410a4
call fcn.0043de50
sub esp, 0x918
push ebx
push esi
mov esi, ecx
push edi
lea eax, [ebp - 0x90]
lea edi, [esi + 0x20]
push edi
push eax
mov dword [ebp - 0x20], edi
call fcn.00427e2f
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00427b72
or dword [ebp - 4], 0xffffffff
add esp, 0xc
lea ecx, [ebp - 0x90]
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x41abe3
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x41ac72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041b0f5
push eax
lea eax, [ebp - 0x70]
push str.Unable_to_create_file._Error:
push eax
mov dword [ebp - 4], 1
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4528e8
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 2
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
mov esi, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_void_]
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x3c]
push 0x448588
push eax
mov dword [ebp - 0x3c], vtable.HttpDownloaderException.0
mov byte [ebp - 4], 3
call sub.MSVCRT.dll__CxxThrowException
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x924]
push 0x800
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x41ad0e
lea eax, [ebp - 0x40]
push ebx
push eax
lea eax, [ebp - 0x924]
push dword [ebp - 0x10]
mov dword [ebp - 0x40], ebx
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x10]
add dword [ebp - 0x14], eax
cmp dword [esi + 0x18], ebx
je 0x41ad00
cmp dword [esi + 0x1c], ebx
je 0x41ad00
mov al, byte [esi + 0x44]
lea edi, [esi + 0x44]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x1c], esp
push ebx
mov dword [ebp - 0x1c], ecx
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov ecx, dword [ebp - 0x1c]
push dword [eax]
push ebx
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
push dword [ebp - 0x14]
push dword [ebp + 0xc]
push dword [esi + 0x1c]
call dword [esi + 0x18]
mov edi, dword [ebp - 0x20]
add esp, 0x1c
cmp dword [ebp - 0x10], ebx
je 0x41ad9d
jmp 0x41ac78
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 4]
cmp edi, ebx
jne 0x41ad24
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041b0f5
push eax
lea eax, [ebp - 0x70]
push str.Unable_to_recieve_data_from_server._Error:
push eax
mov dword [ebp - 4], 5
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4528e8
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 6
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
mov esi, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_void_]
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x3c]
push 0x448588
push eax
mov dword [ebp - 0x3c], vtable.HttpDownloaderException.0
mov byte [ebp - 4], 7
call sub.MSVCRT.dll__CxxThrowException
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
mov ecx, esi
call fcn.0041a02b
cmp eax, 0xffffffff
je 0x41b032
cmp eax, 0x190
jge 0x41b0a4
cmp byte [esi + 0x41], bl
je 0x41b021
push dword [ebp + 8]
lea eax, [ebp - 0x50]
mov ecx, esi
push eax
call fcn.0041a065
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, str.application_octet_stream
push edi
mov dword [ebp - 4], 0x10
call esi
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
jne 0x41b012
mov edi, str.application_exe
push edi
call esi
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
jne 0x41b012
mov edi, str.application_x_msdownload
push edi
call esi
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
jne 0x41b012
mov edi, str.application_x_msdos_program
push edi
call esi
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
jne 0x41b012
mov edi, str.application_x_msi
push edi
call esi
pop ecx
push eax
push ebx
push edi
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::find_unsigned_short_int_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
cmp eax, dword [ecx]
jne 0x41b012
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.0042822b
push eax
lea eax, [ebp - 0xa0]
push str.Wrong_content_type:
push eax
mov byte [ebp - 4], 0x11
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
add esp, 0x14
push 1
lea ecx, [ebp - 0x90]
pop esi
mov byte [ebp - 4], 0x13
push esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x20]
mov dword [ebp + 8], ebx
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x41aee6
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea eax, [ebp + 8]
push ebx
push eax
lea eax, [ebp - 0x124]
push 0x64
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 8], ebx
jbe 0x41afe8
cmp dword [ebp + 8], 0x64
ja 0x41afe8
lea eax, [ebp - 0x60]
push 0x64
push eax
call fcn.004080c5
push eax
lea eax, [ebp - 0x70]
push str.._First
push eax
mov byte [ebp - 4], 0x14
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push str._bytes_of_response_is_
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0x15
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 0x16
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
push 0x452254
push eax
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 0x17
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x38
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov byte [ebp - 4], 0x18
push dword [ecx]
lea ecx, [ebp - 0xa0]
push ebx
push eax
call dword [sym.imp.MSVCP60.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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
push esi
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 0x17
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x15
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0x14
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0x13
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xa0]
lea ecx, [ebp - 0xbc]
push eax
call fcn.0041a3fa
lea eax, [ebp - 0xbc]
push 0x448588
push eax
call sub.MSVCRT.dll__CxxThrowException
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x50]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0041b0f5
push eax
lea eax, [ebp - 0x70]
push str.Unable_to_get_HTTP_status:
push eax
mov dword [ebp - 4], 9
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4528e8
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xa
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
mov esi, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_void_]
push esi
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp - 0x3c]
push 0x448588
push eax
mov dword [ebp - 0x3c], vtable.HttpDownloaderException.0
mov byte [ebp - 4], 0xb
call sub.MSVCRT.dll__CxxThrowException
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004080c5
push eax
lea eax, [ebp - 0x70]
push str.Server_internal_error:
push eax
mov dword [ebp - 4], 0xd
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char_const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x4528e8
push eax
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 0xe
push eax
call sub.MSVCP60.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__
add esp, 0x20
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xf
call fcn.0041a3fa
lea eax, [ebp - 0x3c]
push 0x448588
push eax
call sub.MSVCRT.dll__CxxThrowException