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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4597e5
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1c7c
call fcn.0043ddc0
mov eax, dword [0x47d9a0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c1c], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
mov dword [ebp - 0x1c14], edi
mov dword [ebp - 0x1c3c], eax
xor ebx, ebx
lea ecx, [ebp - 0x1c84]
mov dword [ebp - 4], ebx
call fcn.0041d5ca
mov esi, 0x3e6
push esi
lea eax, [ebp - 0x442]
push ebx
mov byte [ebp - 4], 2
push eax
mov word [ebp - 0x444], bx
call fcn.00439d90
add esp, 0xc
push esi
lea eax, [ebp - 0x82a]
push ebx
push eax
mov word [ebp - 0x82c], bx
call fcn.00439d90
add esp, 0xc
mov eax, 0x1f4
push 0xfce
mov dword [ebp - 0x1c60], eax
mov dword [ebp - 0x1c50], eax
lea eax, [ebp - 0x1bfa]
push ebx
push eax
mov byte [ebp - 0x1c0d], bl
mov word [ebp - 0x1bfc], bx
call fcn.00439d90
add esp, 0xc
push str.Downloading_...
mov dword [ebp - 0x1c64], 0xfd0
call fcn.004074db
pop ecx
push 0x462fd2
lea ecx, [ebp - 0x1c00]
call fcn.00402f32
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 3
push dword [0x48239c]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x1c34], eax
jne 0x408d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_configuring_default_proxy_setting__d
call fcn.004074db
pop ecx
pop ecx
push 6
mov eax, edi
call fcn.0040a449
mov esi, eax
mov ecx, dword [ebp - 0x1c00]
add ecx, 0xfffffff0
call fcn.004010ea
mov byte [ebp - 4], bl
call fcn.0041d5e0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, esi
jmp 0x409459
movzx ecx, word [edi + 0x7c]
mov eax, dword [edi]
push ebx
push ebx
push 3
push dword [0x4823b4]
push dword [0x4823b0]
push ecx
push eax
push dword [ebp - 0x1c34]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x1c28], eax
jne 0x408d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_establishing_connection_with_server__d
jmp 0x408d24
push 0x462fac
lea ecx, [ebp - 0x1c0c]
call fcn.00402eee
lea esi, [ebp - 0x1c0c]
mov byte [ebp - 4], 4
call fcn.0040994d
cmp dword [edi + 0x7c], 0x1bb
lea esi, [edi + 0x74]
mov eax, dword [esi]
push ebx
jne 0x408dcf
push 0x84c01000
jmp 0x408dd4
push 0x4000000
push ebx
push ebx
push 0x466e84
push eax
push 0x466e98
push dword [ebp - 0x1c28]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x1c04], eax
jne 0x408e20
push str.Error_in_accessing_desired_url
call fcn.004074db
pop ecx
push 6
mov eax, edi
call fcn.0040a449
mov esi, eax
mov ecx, dword [ebp - 0x1c0c]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x408d36
push ebx
mov ecx, esi
call fcn.004032a1
push ebx
mov ecx, edi
mov esi, eax
call fcn.004032a1
push esi
push eax
push str.ServerName_:__s___PageName_:__s
call fcn.004074db
add esp, 0xc
mov edi, dword [ebp - 0x1c04]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x1c68]
push eax
push 0x1f
push edi
mov dword [ebp - 0x1c68], 0x80
call esi
push 4
lea eax, [ebp - 0x1c58]
push eax
push 0x1f
push edi
mov dword [ebp - 0x1c58], 0x2000
call esi
push 4
lea eax, [ebp - 0x1c48]
push eax
push 0x1f
push edi
mov dword [ebp - 0x1c48], 0x1000
call esi
push 4
lea eax, [ebp - 0x1c5c]
push eax
push 0x1f
push edi
mov dword [ebp - 0x1c5c], 0x100
call esi
call fcn.0041bb36
push eax
lea ecx, [ebp - 0x1c38]
call fcn.00405f08
push str.Content_Type:_application_zip
lea ecx, [ebp - 0x1c38]
mov byte [ebp - 4], 5
call fcn.00403458
mov edi, dword [ebp - 0x1c38]
mov eax, dword [edi - 0xc]
push 1
push eax
push edi
push dword [ebp - 0x1c04]
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov esi, dword [ebp - 0x1c14]
push dword [esi + 0x70]
lea ecx, [ebp - 0x1c08]
call fcn.00402f32
mov byte [ebp - 4], 6
push dword [esi + 0x70]
lea ecx, [ebp - 0x1c20]
call fcn.00402f32
mov byte [ebp - 4], 7
push dword [eax]
push str.PostParameter_:__s
call fcn.004074db
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c20]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, dword [ebp - 0x1c08]
mov dword [ebp - 0x1c30], ebx
mov dword [ebp - 0x1c6c], 4
mov esi, dword [eax - 0xc]
lea ecx, [ebp - 0x1c08]
call fcn.00403027
push esi
push eax
push ebx
push ebx
push dword [ebp - 0x1c04]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4093ad
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push ebx
lea eax, [ebp - 0x1c64]
push eax
lea eax, [ebp - 0x1bfc]
push eax
push 0x16
push dword [ebp - 0x1c04]
call esi
push ebx
lea eax, [ebp - 0x1c6c]
push eax
lea eax, [ebp - 0x1c18]
push eax
push 0x20000013
push dword [ebp - 0x1c04]
call esi
test eax, eax
jne 0x409004
push dword [ebp - 0x1c18]
push str.Error_in_accessing_result_page_Status_code___d
call fcn.004074db
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [edi - 0x10]
call fcn.004010ea
mov ecx, dword [ebp - 0x1c0c]
add ecx, 0xfffffff0
call fcn.004010ea
mov ecx, dword [ebp - 0x1c00]
add ecx, 0xfffffff0
call fcn.004010ea
mov byte [ebp - 4], bl
call fcn.0041d5e0
push 6
pop esi
jmp 0x408d4c
mov ecx, dword [ebp - 0x1c1c]
push 0x462fac
call fcn.00403458
mov esi, dword [ebp - 0x1c1c]
mov eax, dword [ebp - 0x1c18]
call fcn.00409545
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x409076
cmp dword [0x4823ec], 1
jne 0x409076
push ecx
mov dword [ebp - 0x1c3c], esp
mov ecx, esp
push esi
call fcn.00403172
push dword [ebp - 0x1c18]
call fcn.0040afe7
mov esi, dword [ebp - 0x1c18]
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [edi - 0x10]
call fcn.004010ea
jmp 0x408e0d
cmp byte [ebp - 0x1c0d], bl
je 0x409130
cmp dword [ebp - 0x1c18], eax
je 0x409138
mov esi, dword [sym.imp.WININET.dll_InternetQueryOptionW]
lea eax, [ebp - 0x1c60]
push eax
lea eax, [ebp - 0x444]
push eax
push 0x2b
push dword [ebp - 0x1c04]
call esi
mov dword [ebp - 0x1c4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c24], eax
lea eax, [ebp - 0x1c50]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0x2c
push dword [ebp - 0x1c04]
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c2c], eax
lea eax, [ebp - 0x444]
push eax
mov ecx, 0x4823b0
call fcn.00403458
lea eax, [ebp - 0x82c]
push eax
mov ecx, 0x4823b4
call fcn.00403458
call fcn.004099d6
push dword [ebp - 0x1c2c]
push dword [ebp - 0x1c24]
push esi
push dword [ebp - 0x1c4c]
push str.URes_:__d___PRes_:__d__ER1_:__d___ER2_:__d
call fcn.004074db
add esp, 0x14
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x4091aa
push ebx
push 7
push 0x2eee
push dword [ebp - 0x1c04]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.WININET.dll_InternetErrorDlg]
cmp eax, 0x2f00
jne 0x40918b
push str.IE:User_press_Ok
mov byte [ebp - 0x1c0d], 1
call fcn.004074db
pop ecx
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 4
call fcn.004010ea
jmp 0x408e41
push str.IE:User_press_cancel
call fcn.004074db
pop ecx
push 8
mov eax, dword [ebp - 0x1c14]
call fcn.0040a449
mov esi, eax
jmp 0x40905b
cmp dword [ebp - 0x1c18], 0xc8
je 0x4091ba
push 6
jmp 0x409198
push ebx
lea eax, [ebp - 0x1c54]
push eax
lea eax, [ebp - 0x5c]
push eax
push 5
push dword [ebp - 0x1c04]
mov dword [ebp - 0x1c54], 0x40
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0x5c]
push eax
call fcn.00437189
xor esi, esi
pop ecx
mov dword [ebp - 0x1c2c], eax
mov dword [ebp - 0x1c20], esi
mov dword [ebp - 0x1c24], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x1c2c], ebx
je 0x4091b6
push 0x9001
push dword [ebp + 8]
lea ecx, [ebp - 0x1c7c]
call fcn.00420fd2
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1c78]
cmp eax, dword [0x45d954]
jne 0x40925d
push str.Unable_to_create_file
call fcn.00407571
mov eax, dword [ebp - 0x1c14]
pop ecx
push 0xc
call fcn.0040a449
mov esi, eax
lea ecx, [ebp - 0x1c7c]
mov byte [ebp - 4], 6
call fcn.00420afa
jmp 0x40905b
call fcn.0041bb36
push eax
lea ecx, [ebp - 0x1c44]
call fcn.00405f08
mov byte [ebp - 4], 9
lea eax, [ebp - 0x1c30]
push eax
push 0x200
lea eax, [ebp - 0xc2c]
push eax
push dword [ebp - 0x1c04]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4092aa
cmp dword [ebp - 0x1c30], ebx
jne 0x409310
push ebx
push str.DwSize:_d
call fcn.00407571
pop ecx
pop ecx
lea ecx, [ebp - 0x1c7c]
call fcn.0042098b
push dword [ebp - 0x1c34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0x1c28]
call esi
push dword [ebp - 0x1c04]
call esi
push dword [ebp - 0x1c24]
push str.Percentage_Downloaded_:__d
call fcn.004074db
cmp dword [ebp - 0x1c24], 0x63
pop ecx
pop ecx
jle 0x40936a
push 7
mov eax, dword [ebp - 0x1c14]
call fcn.0040a449
mov ecx, dword [ebp - 0x1c44]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010ea
jmp 0x409249
push dword [ebp - 0x1c30]
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0x1c7c]
call fcn.0042073b
add esi, dword [ebp - 0x1c30]
mov eax, esi
imul eax, eax, 0x64
cdq
idiv dword [ebp - 0x1c2c]
mov dword [ebp - 0x1c20], esi
mov dword [ebp - 0x1c24], eax
mov dword [ebp - 0x1c40], eax
lea eax, [ebp - 0x1c44]
push eax
push ebx
push 0x7ea
push dword [ebp - 0x1c3c]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x409272
mov ecx, dword [ebp - 0x1c1c]
push str._Downloading_interrupted_
call fcn.00403433
push dword [ebp - 0x1c20]
lea eax, [ebp - 0x1c00]
push str._Total_Downloaded:_d
push eax
call fcn.00403880
mov ecx, dword [ebp - 0x1c1c]
add esp, 0xc
lea eax, [ebp - 0x1c00]
push eax
call fcn.004031dd
push 6
jmp 0x4092f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c34]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x1c20], eax
call esi
push dword [ebp - 0x1c28]
call esi
push dword [ebp - 0x1c04]
call esi
push dword [ebp - 0x1c20]
push str.Dload_file___Error_accessing_result_page:__d
call fcn.004074db
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c1c]
push 0x462fac
call fcn.00403458
push dword [ebp - 0x1c20]
mov ecx, dword [ebp - 0x1c1c]
call fcn.0040979d
mov ecx, dword [ebp - 0x1c1c]
push ebx
call fcn.004032a1
push eax
push str.Error_:__s
call fcn.004074db
pop ecx
pop ecx
jmp 0x4091b6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00436e5a
leave
ret 0xc