Function at 0x40b256
Capabilities:
Check http status code
Connect to http server
Create http request
Create thread
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45bf52
mov eax, dword fs:[0]
push eax
mov eax, 0x1fec
call fcn.0043fb50
mov eax, dword [0x4809a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push 0x464fb4
lea ecx, [ebp - 0x1fb8]
mov dword [ebp - 0x1fc0], ebx
mov dword [ebp - 0x1fb4], eax
call fcn.00402fb8
xor esi, esi
push 0xfce
lea eax, [ebp - 0x1f9a]
push esi
mov dword [ebp - 4], esi
push eax
mov byte [ebp - 0x1fa1], 0
mov word [ebp - 0x1f9c], si
call fcn.0043b970
add esp, 0xc
mov word [ebp - 0xbe4], si
mov esi, 0x3e6
push esi
lea eax, [ebp - 0xbe2]
push 0
push eax
call fcn.0043b970
and word [ebp - 0x7fc], 0
add esp, 0xc
push esi
lea eax, [ebp - 0x7fa]
push 0
push eax
call fcn.0043b970
mov eax, 0x1f4
add esp, 0xc
cmp dword [0x48527c], 1
mov dword [ebp - 0x1fec], eax
mov dword [ebp - 0x1fe4], eax
mov dword [ebp - 0x1ff4], 0xfd0
jne 0x40b368
push str.User_once_clicked_on_Cancel_IE_proxy_dialog
call fcn.0040762c
mov esi, dword [0x48527c]
pop ecx
mov ecx, dword [ebp - 0x1fb8]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004388b9
leave
ret 4
push dword [0x48539c]
lea ecx, [ebp - 0x1fcc]
call fcn.00405f7f
mov eax, dword [eax]
xor esi, esi
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x1fcc]
add ecx, 0xfffffff0
mov dword [edi + 0xa0], eax
call fcn.004010ea
cmp dword [edi + 0xa0], esi
jne 0x40b3bc
push str.Error_in_configuring_default_proxy_setting
call fcn.0040762c
pop ecx
push esi
mov eax, edi
call fcn.0040a57c
push 6
pop esi
jmp 0x40b33d
push 0x464fb4
lea ecx, [ebp - 0x1fa8]
call fcn.00402fb8
lea esi, [ebp - 0x1fa8]
mov byte [ebp - 4], 1
call fcn.00409a99
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
xor esi, esi
push esi
push esi
push 3
push eax
movzx eax, word [ebx + 0x18]
push ecx
push eax
push edx
push dword [edi + 0xa0]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, esi
mov dword [edi + 0xa4], eax
jne 0x40b42a
push str.Error_in_establishing_connection_with_server
call fcn.0040762c
pop ecx
push esi
mov eax, edi
call fcn.0040a57c
mov ecx, dword [ebp - 0x1fa8]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x40b3b7
mov ecx, dword [ebx + 0x10]
cmp dword [ebx + 0x18], 0x1bb
mov ebx, dword [ebx + 0x14]
push esi
jne 0x40b441
push 0x84c01000
jmp 0x40b446
push 0x4000000
push esi
push esi
push str.HTTP_1.1
push ecx
push ebx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
cmp eax, esi
mov dword [edi + 0xa8], eax
jne 0x40b467
push str.Error_in_accessing_desired_url
jmp 0x40b40c
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
pop esi
push esi
lea ecx, [ebp - 0x1fd4]
push ecx
push 0x1f
push eax
mov dword [ebp - 0x1fd4], 0x80
call ebx
push esi
lea eax, [ebp - 0x1fdc]
push eax
push 0x1f
push dword [edi + 0xa8]
mov dword [ebp - 0x1fdc], 0x2000
call ebx
push esi
lea eax, [ebp - 0x1fd8]
push eax
push 0x1f
push dword [edi + 0xa8]
mov dword [ebp - 0x1fd8], 0x1000
call ebx
push esi
lea eax, [ebp - 0x1fd0]
push eax
push 0x1f
push dword [edi + 0xa8]
mov dword [ebp - 0x1fd0], 0x100
call ebx
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1fb0]
call fcn.00403246
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1fc0]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 0xc]
push 1
push ecx
push eax
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push dword [esi + 0xc]
lea ecx, [ebp - 0x1fac]
call fcn.00402ffc
jmp 0x40b8d3
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp - 0x1fe0]
push eax
push dword [ebp - 0x1fa0]
call esi
cmp dword [ebp - 0x1fa0], 0
je 0x40b549
push dword [ebp - 0x1fa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1fe0]
cmp eax, 0x320
jne 0x40bbec
lea eax, [ebp - 0x1ff8]
push eax
push dword [0x485284]
call esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0
lea eax, [ebp - 0x1ff4]
push eax
lea eax, [ebp - 0x1f9c]
push eax
push 0x16
push dword [edi + 0xa8]
call esi
push 0
lea eax, [ebp - 0x1fcc]
push eax
push dword [ebp - 0x1fb4]
push 0x20000013
push dword [edi + 0xa8]
call esi
test eax, eax
je 0x40b9f6
push 0x464fb4
lea ecx, [ebp - 0x1fb8]
call fcn.00403547
mov eax, dword [ebp - 0x1fb4]
mov eax, dword [eax]
lea esi, [ebp - 0x1fb8]
call fcn.00409691
mov eax, dword [ebp - 0x1fb4]
cmp dword [eax], 0xc8
jne 0x40b6d2
cmp dword [0x4853e0], 0
jne 0x40b6d2
push 0x3ff
lea eax, [ebp - 0x413]
push 0
push eax
mov dword [ebp - 0x1fa0], 0x400
mov byte [ebp - 0x414], 0
call fcn.0043b970
add esp, 0xc
lea eax, [ebp - 0x1fa0]
push eax
lea eax, [ebp - 0x414]
push eax
push 0x26
push dword [edi + 0xa0]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
jne 0x40b64d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Query_for_InternetProxyOption_Failed_:__d
call fcn.0040762c
pop ecx
jmp 0x40b6d1
push 3
pop esi
cmp dword [ebp - 0x414], esi
jne 0x40b6b6
push str.InternetQuery_on_Preconfig_gives_Proxy_Access_Type
call fcn.0040762c
pop ecx
push dword [ebp - 0x410]
lea ecx, [ebp - 0x1fc4]
mov dword [0x4853e0], esi
call fcn.00402fb8
push 1
push 0x4853d8
push 0x4853d0
push ecx
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1fc4]
mov dword [ebp - 0x1fc8], esp
mov ecx, esp
push eax
call fcn.0040326b
call fcn.0040a5b6
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1fc4]
add ecx, 0xfffffff0
call fcn.004010ea
xor esi, esi
inc esi
cmp dword [ebp - 0x414], esi
jne 0x40b6d2
push str.InternetQuery_on_Preconfig_gives_Direct_Access_Type
call fcn.0040762c
mov dword [0x4853e0], esi
pop ecx
mov eax, dword [ebp - 0x1fb4]
mov eax, dword [eax]
mov esi, 0x197
cmp eax, esi
jne 0x40b6fd
cmp dword [0x485280], 1
je 0x40ba05
cmp dword [0x4853ec], 1
je 0x40ba3f
cmp byte [ebp - 0x1fa1], 0
je 0x40b7ba
cmp eax, esi
je 0x40b7c8
lea eax, [ebp - 0x1fec]
push eax
lea eax, [ebp - 0xbe4]
push eax
push 0x2b
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov dword [ebp - 0x1fc8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1fe8], eax
lea eax, [ebp - 0x1fe4]
push eax
lea eax, [ebp - 0x7fc]
push eax
push 0x2c
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
mov dword [ebp - 0x1ff0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1fa0], eax
lea eax, [ebp - 0xbe4]
push eax
mov ecx, 0x4853b0
call fcn.00403547
lea eax, [ebp - 0x7fc]
push eax
mov ecx, 0x4853b4
call fcn.00403547
call fcn.00409b22
push dword [ebp - 0x1fa0]
push dword [ebp - 0x1fe8]
push dword [ebp - 0x1ff0]
push dword [ebp - 0x1fc8]
push str.URes__d_PRes__d__ER1_:__d_ER2_:__d
call fcn.0040762c
add esp, 0x14
mov eax, dword [ebp - 0x1fb4]
cmp dword [eax], esi
jne 0x40baab
push 0
push 7
push 0x2eee
push dword [edi + 0xa8]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x40ba65
push str.IE:User_press_Ok
mov byte [ebp - 0x1fa1], 1
call fcn.0040762c
pop ecx
mov ecx, dword [ebp - 0x1fac]
add ecx, 0xfffffff0
call fcn.004010ea
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1fb0]
add ecx, 0xfffffff0
call fcn.004010ea
push 4
lea eax, [ebp - 0x1fd4]
push eax
push 0x1f
pop esi
push esi
push dword [edi + 0xa8]
mov dword [ebp - 0x1fd4], 0x80
call ebx
push 4
lea eax, [ebp - 0x1fdc]
push eax
push esi
push dword [edi + 0xa8]
mov dword [ebp - 0x1fdc], 0x2000
call ebx
push 4
lea eax, [ebp - 0x1fd8]
push eax
push esi
push dword [edi + 0xa8]
mov dword [ebp - 0x1fd8], 0x1000
call ebx
push 4
lea eax, [ebp - 0x1fd0]
push eax
push esi
push dword [edi + 0xa8]
mov dword [ebp - 0x1fd0], 0x100
call ebx
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1fb0]
call fcn.00403246
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x1fc0]
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax - 0xc]
push 1
push ecx
push eax
push dword [edi + 0xa8]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push dword [esi + 0xc]
lea ecx, [ebp - 0x1fac]
call fcn.00402ffc
push 0xc
mov byte [ebp - 4], 3
and dword [ebp - 0x1fbc], 0
push 1
mov dword [ebp - 0x1fcc], 4
call fcn.004399b6
pop ecx
pop ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x40a889
push ecx
mov dword [eax], edi
push ecx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [esi + 0x24]
mov dword [ebp - 0x1fa0], eax
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40b51f
push str.SendWebRequest_Thread_is_not_closed
call fcn.0040762c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
pop ecx
call ebx
push dword [edi + 0xa0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1fc4], eax
call esi
push dword [edi + 0xa4]
call esi
push dword [edi + 0xa8]
call esi
push 0x464fda
lea ecx, [ebp - 0x1fb8]
call fcn.00403040
push dword [ebp - 0x1fc4]
lea ecx, [ebp - 0x1fb8]
call fcn.004098e9
push 0
lea ecx, [ebp - 0x1fb8]
call fcn.0040339a
push eax
push dword [ebp - 0x1fc4]
push str.Send_Req___Error_accessing_result_:__d___s
call fcn.0040762c
and dword [ebp - 0x1fc0], 0
add esp, 0xc
lea eax, [ebp - 0x1fc0]
push eax
push dword [ebp - 0x1fa0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x40b9c3
call ebx
push eax
push str.Exit_send_webreq_thread_is_failed__error_code__d
jmp 0x40b9ce
push dword [ebp - 0x1fc0]
push str.Thread_Status_:__d
call fcn.0040762c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1fac]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fb0]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x40b41a
mov eax, dword [ebp - 0x1fb4]
push dword [eax]
push str.Error_in_accessing_result_page_Status_code___d
jmp 0x40b9ce
push str.Proxy_problem.
call fcn.0040762c
pop ecx
mov ecx, dword [ebp - 0x1fac]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fb0]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fa8]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x40b33d
push ecx
lea eax, [ebp - 0x1fb8]
mov dword [ebp - 0x1fc8], esp
mov ecx, esp
push eax
call fcn.0040326b
mov esi, dword [ebp - 0x1fb4]
push dword [esi]
call fcn.0040b128
mov esi, dword [esi]
jmp 0x40ba10
push str.IE:User_press_cancel
mov dword [0x48527c], 1
call fcn.0040762c
pop ecx
mov ecx, dword [ebp - 0x1fac]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fb0]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fa8]
add ecx, 0xfffffff0
call fcn.004010ea
push 8
jmp 0x40b3b9
mov eax, dword [eax]
cmp eax, 0xc8
je 0x40bad0
mov ecx, dword [ebp - 0x1fc0]
push dword [ecx + 0x10]
push eax
push str.Error:_d_Page:_s
call fcn.004076c2
add esp, 0xc
jmp 0x40b9d5
lea eax, [ebp - 0x1fa0]
push eax
call fcn.00405f69
mov byte [ebp - 4], 5
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
jmp 0x40bb5d
mov eax, dword [ebp - 0x1fbc]
test eax, eax
je 0x40bb82
inc eax
push eax
lea ecx, [ebp - 0x1fa0]
call fcn.00406194
push dword [ebp - 0x1fbc]
lea ecx, [ebp - 0xfcc]
push ecx
push eax
call fcn.0043b840
mov eax, dword [ebp - 0x1fbc]
add esp, 0xc
lea esi, [ebp - 0x1fa0]
call fcn.0040bf44
push dword [ebp - 0x1fa0]
lea ecx, [ebp - 0x1fc8]
call fcn.00402ffc
lea ecx, [edi + 0xb0]
push eax
mov byte [ebp - 4], 6
call fcn.004032d6
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1fc8]
add ecx, 0xfffffff0
call fcn.004010ea
lea eax, [ebp - 0x1fbc]
push eax
push 0x3e8
lea eax, [ebp - 0xfcc]
push eax
push dword [edi + 0xa8]
call ebx
test eax, eax
jne 0x40bae8
jmp 0x40bb8f
push 0
lea ecx, [edi + 0xb0]
call fcn.0040c0ba
push dword [edi + 0xa0]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [edi + 0xa4]
call esi
push dword [edi + 0xa8]
call esi
mov ecx, dword [ebp - 0x1fa0]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fac]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fb0]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1fa8]
add ecx, 0xfffffff0
call fcn.004010ea
push 7
jmp 0x40b3b9
mov ecx, dword [ebp - 0x1fb4]
mov dword [ecx], eax
jmp 0x40b9d5