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

Disassembly:
sub esp, 0x450
push ebx
mov ebx, dword [esp + 0x464]
push ebp
mov ebp, dword [esp + 0x464]
push esi
mov esi, dword [esp + 0x464]
push edi
mov edi, dword [esp + 0x464]
push edi
push esi
push ebx
push ebp
push str._comm__https::download:_server_s:_d__path_s__to_file_s
push 0x10051698
lea ecx, [esp + 0x4c]
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x18
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x50]
push 0
mov byte [esp + 0x54], al
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 0
push 0
push 0
push 1
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.1__.NET_CLR_2.0.50727_
mov dword [esp + 0x28], 0
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x38], eax
push 0
je 0x1003a2a5
push 0
push 3
push 0x10065168
push 0x1006516c
push ebx
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x34], eax
push 0
je 0x1003a288
push 0x800000
push 0
push 0x10065170
push str.HTTP_1.0
push esi
push 0x10051734
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x1003a213
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x20]
push ecx
push edx
push 0x1f
push eax
mov dword [esp + 0x4c], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
lea eax, [esp + 0x40]
push eax
call fcn.10035670
mov edi, str.iexplore.exe
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push eax
push str.iexplore.exe
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp dword [ecx], eax
jne 0x1003a011
or dword [esp + 0x20], 0x3180
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push 4
push edx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edi, str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword____r_nAccept_Encoding:_gzip__deflate_r_nAccept_Encoding:_deflate_r_nAccept_Language:_zh_cn_r_nContent_Type:_application_x_www_form_urlencoded_r_n
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
mov ecx, dword [esp + 0x20]
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword____r_nAccept_Encoding:_gzip__deflate_r_nAccept_Encoding:_deflate_r_nAccept_Language:_zh_cn_r_nContent_Type:_application_x_www_form_urlencoded_r_n
push ecx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x1003a1bb
mov dl, byte [esp + 0x13]
mov ecx, 0xff
mov byte [esp + 0x24], dl
xor edx, edx
xor eax, eax
lea edi, [esp + 0x61]
mov byte [esp + 0x60], dl
mov dword [esp + 0x28], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x64]
push 0x3ff
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1003a148
mov esi, dword [esp + 0x1c]
test esi, esi
jbe 0x1003a141
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
sub ecx, edx
cmp ecx, esi
ja 0x1003a0c4
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x1003a112
mov edx, dword [esp + 0x2c]
push 0
lea ecx, [esp + 0x28]
lea ebp, [edx + esi]
push ebp
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x1003a10b
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, esi
lea esi, [esp + 0x60]
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x2c], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x46c]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x60]
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x64]
push 0x3ff
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x1003a0a1
mov esi, dword [esp + 0x468]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x464]
push edx
push edi
push esi
push ebx
push ebp
push str._comm__https::download:_server_s:_d__path_s__to_file_s__file_length_d
push 0x10051748
lea ecx, [esp + 0x34]
call fcn.10024c50
push eax
call fcn.10024c60
mov eax, dword [esp + 0x44]
add esp, 0x1c
test eax, eax
jne 0x1003a181
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x2c]
push ecx
push eax
push edi
call fcn.1002c560
mov ecx, dword [esp + 0x34]
add esp, 0xc
test ecx, ecx
mov byte [esp + 0x13], 1
je 0x1003a1ed
mov al, byte [ecx - 1]
test al, al
je 0x1003a1af
cmp al, 0xff
je 0x1003a1af
dec al
mov byte [ecx - 1], al
jmp 0x1003a1ed
dec ecx
push ecx
call fcn.100463e2
add esp, 4
jmp 0x1003a1ed
push 0
call fcn.10024ef0
mov edx, dword [esp + 0x468]
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edx
push esi
push ebx
push ebp
push str._comm__https::download:_server_s:_d__path_s__to_file_s_InternetSendRequest_failed:_s
push 0x100517a0
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x1c
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x1003a23e
mov al, byte [ecx - 1]
test al, al
je 0x1003a207
cmp al, 0xff
je 0x1003a207
dec al
mov byte [ecx - 1], al
jmp 0x1003a23e
dec ecx
push ecx
call fcn.100463e2
add esp, 4
jmp 0x1003a23e
push 0
call fcn.10024ef0
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
push esi
push ebx
push ebp
push str._comm__https::download:_server_s:_d__path_s__to_file_s_InternetOpenRequest_failed:_s
push 0x10051804
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x1c
mov eax, dword [esp + 0x38]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1003a256
push eax
call esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1003a261
push eax
call esi
mov ecx, dword [esp + 0x54]
pop edi
pop esi
pop ebp
test ecx, ecx
pop ebx
je 0x1003a2da
mov al, byte [ecx - 1]
test al, al
je 0x1003a2d0
cmp al, 0xff
je 0x1003a2d0
dec al
mov byte [ecx - 1], al
mov al, byte [esp + 3]
add esp, 0x450
ret
call fcn.10024ef0
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
push esi
push ebx
push ebp
push str._comm__https::download:_server_s:_d__path_s__to_file_s_InternetConnect_failed:_s
push 0x10051868
jmp 0x1003a230
call fcn.10024ef0
add esp, 4
lea ecx, [esp + 0x18]
push eax
push edi
push esi
push ebx
push ebp
push str._comm__https::download:_server_s:_d__path_s__to_file_s_InternetOpen_failed:_s
push 0x100518c8
call fcn.10024c50
push eax
call fcn.10024c60
add esp, 0x1c
jmp 0x1003a261
dec ecx
push ecx
call fcn.100463e2
add esp, 4
mov al, byte [esp + 3]
add esp, 0x450
ret