Function at 0x401440
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x110c
call fcn.0040f144
sub esp, 0x110c
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], str.HTTPGET
call sub.WININET.DLL_InternetOpenA
sub esp, 0x14
mov ebx, eax
mov dword [ebp - 0x34], 0x42089c
mov dword [ebp - 0x30], 0x422238
mov dword [ebp - 0x2c], ebp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x2c], 0x4017af
lea edi, [ebp - 0x50]
mov eax, edi
call fcn.00421505
test ebx, ebx
je 0x40167e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
call sub.WININET.DLL_InternetOpenUrlA
sub esp, 0x18
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4016e0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp + 4], eax
lea eax, [ebp - 0xf8]
mov dword [esp], eax
mov dword [esp + 0xc], 0x1b6
mov dword [esp + 8], 0x80
call fcn.00401c9c
mov eax, dword [ebp - 0xf8]
mov eax, dword [eax - 0xc]
test byte [ebp + eax - 0xf0], 6
mov dword [ebp - 0x18], ebx
je 0x401610
mov dword [ebp - 0x48], 1
mov dword [esp + 4], str.Failed_to_open_local_file_for_writing
mov dword [esp], 0x426da0
call fcn.00401840
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
mov eax, dword [eax - 0xc]
add eax, ecx
mov dword [ebp - 0x48], 2
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00403f28
mov dword [ebp - 0x48], 3
movsx eax, al
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00403cc8
mov dword [ebp - 0x48], 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00402618
mov dword [ebp - 0x48], 5
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [ebp - 0x48], 6
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
xor ebx, ebx
mov dword [ebp - 0xf8], 0x406288
lea esi, [ebp - 0xa0]
mov dword [ebp - 0xa0], 0x40629c
lea eax, [ebp - 0xf4]
mov dword [esp], eax
call fcn.00405fb8
mov dword [esp], esi
call fcn.0040673c
lea edi, [ebp - 0x50]
jmp 0x401754
mov dword [ebp - 0x48], 7
lea eax, [ebp - 0x54]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10f8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov dword [esp + 8], 0x1000
call sub.WININET.DLL_InternetReadFile
sub esp, 0x10
test eax, eax
je 0x401769
mov eax, dword [ebp - 0x54]
test eax, eax
je 0x401769
mov dword [ebp - 0x48], 8
mov dword [esp + 8], eax
lea eax, [ebp - 0x10f8]
mov dword [esp + 4], eax
lea eax, [ebp - 0xf8]
mov dword [esp], eax
mov dword [esp + 0xc], 0
call fcn.00401ebc
jmp 0x401610
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp + 4], str.InternetOpen_failed
mov dword [esp], 0x426da0
call fcn.00401840
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
add eax, esi
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00403f28
mov dword [ebp - 0x48], 0xffffffff
movsx eax, al
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00403cc8
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], esi
call fcn.00402618
jmp 0x401752
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp + 4], str.InternetOpenUrl_failed
mov dword [esp], 0x426da0
call fcn.00401840
mov esi, eax
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
add eax, esi
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00403f28
mov dword [ebp - 0x48], 0xffffffff
movsx eax, al
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00403cc8
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], esi
call fcn.00402618
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], ebx
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
xor ebx, ebx
mov dword [esp], edi
call fcn.00421526
mov eax, ebx
add esp, 0x110c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x48], 9
lea eax, [ebp - 0xf8]
mov dword [esp], eax
call fcn.00402118
mov dword [ebp - 0x48], 0xa
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov dword [ebp - 0x48], 0xb
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.WININET.DLL_InternetCloseHandle
sub esp, 4
mov bl, 1
jmp 0x4015d4