Function at 0x408d44
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 0x45b7dd
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1c7c
call fcn.0043fb50
mov eax, dword [0x4809a0]
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.0041f03e
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.0043b970
add esp, 0xc
push esi
lea eax, [ebp - 0x82a]
push ebx
push eax
mov word [ebp - 0x82c], bx
call fcn.0043b970
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.0043b970
add esp, 0xc
push str.Downloading_...
mov dword [ebp - 0x1c64], 0xfd0
call fcn.0040762c
pop ecx
push 0x464fda
lea ecx, [ebp - 0x1c00]
call fcn.00402ffc
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 3
push dword [0x48539c]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x1c34], eax
jne 0x408e99
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_configuring_default_proxy_setting__d
call fcn.0040762c
pop ecx
pop ecx
push 6
mov eax, edi
call fcn.0040a57c
mov esi, eax
mov ecx, dword [ebp - 0x1c00]
add ecx, 0xfffffff0
call fcn.004010ea
mov byte [ebp - 4], bl
call fcn.0041f054
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.004010ea
mov eax, esi
jmp 0x409594
movzx ecx, word [edi + 0x7c]
mov eax, dword [edi]
push ebx
push ebx
push 3
push dword [0x4853b4]
push dword [0x4853b0]
push ecx
push eax
push dword [ebp - 0x1c34]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x1c28], eax
jne 0x408ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_establishing_connection_with_server__d
jmp 0x408e5f
push 0x464fb4
lea ecx, [ebp - 0x1c0c]
call fcn.00402fb8
lea esi, [ebp - 0x1c0c]
mov byte [ebp - 4], 4
call fcn.00409a99
cmp dword [edi + 0x7c], 0x1bb
lea esi, [edi + 0x74]
mov eax, dword [esi]
push ebx
jne 0x408f0a
push 0x84c01000
jmp 0x408f0f
push 0x4000000
push ebx
push ebx
push 0x468f5c
push eax
push 0x468f70
push dword [ebp - 0x1c28]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x1c04], eax
jne 0x408f5b
push str.Error_in_accessing_desired_url
call fcn.0040762c
pop ecx
push 6
mov eax, edi
call fcn.0040a57c
mov esi, eax
mov ecx, dword [ebp - 0x1c0c]
add ecx, 0xfffffff0
call fcn.004010ea
jmp 0x408e71
push ebx
mov ecx, esi
call fcn.0040339a
push ebx
mov ecx, edi
mov esi, eax
call fcn.0040339a
push esi
push eax
push str.ServerName_:__s___PageName_:__s
call fcn.0040762c
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.0041d57f
push eax
lea ecx, [ebp - 0x1c38]
call fcn.00403246
push str.Content_Type:_application_zip
lea ecx, [ebp - 0x1c38]
mov byte [ebp - 4], 5
call fcn.00403547
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.00402ffc
mov byte [ebp - 4], 6
push dword [esi + 0x70]
lea ecx, [ebp - 0x1c20]
call fcn.00402ffc
mov byte [ebp - 4], 7
push dword [eax]
push str.PostParameter_:__s
call fcn.0040762c
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.004030f1
push esi
push eax
push ebx
push ebx
push dword [ebp - 0x1c04]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4094e8
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 0x40913f
push dword [ebp - 0x1c18]
push str.Error_in_accessing_result_page_Status_code___d
call fcn.0040762c
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.0041f054
push 6
pop esi
jmp 0x408e87
mov ecx, dword [ebp - 0x1c1c]
push 0x464fb4
call fcn.00403547
mov esi, dword [ebp - 0x1c1c]
mov eax, dword [ebp - 0x1c18]
call fcn.00409691
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x4091b1
cmp dword [0x4853ec], 1
jne 0x4091b1
push ecx
mov dword [ebp - 0x1c3c], esp
mov ecx, esp
push esi
call fcn.0040326b
push dword [ebp - 0x1c18]
call fcn.0040b128
mov esi, dword [ebp - 0x1c18]
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.004010ea
lea ecx, [edi - 0x10]
call fcn.004010ea
jmp 0x408f48
cmp byte [ebp - 0x1c0d], bl
je 0x40926b
cmp dword [ebp - 0x1c18], eax
je 0x409273
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, 0x4853b0
call fcn.00403547
lea eax, [ebp - 0x82c]
push eax
mov ecx, 0x4853b4
call fcn.00403547
call fcn.00409b22
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.0040762c
add esp, 0x14
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x4092e5
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 0x4092c6
push str.IE:User_press_Ok
mov byte [ebp - 0x1c0d], 1
call fcn.0040762c
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 0x408f7c
push str.IE:User_press_cancel
call fcn.0040762c
pop ecx
push 8
mov eax, dword [ebp - 0x1c14]
call fcn.0040a57c
mov esi, eax
jmp 0x409196
cmp dword [ebp - 0x1c18], 0xc8
je 0x4092f5
push 6
jmp 0x4092d3
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.00438b93
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 0x4092f1
push 0x9001
push dword [ebp + 8]
lea ecx, [ebp - 0x1c7c]
call fcn.00422a3d
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1c78]
cmp eax, dword [0x45f954]
jne 0x409398
push str.Unable_to_create_file
call fcn.004076c2
mov eax, dword [ebp - 0x1c14]
pop ecx
push 0xc
call fcn.0040a57c
mov esi, eax
lea ecx, [ebp - 0x1c7c]
mov byte [ebp - 4], 6
call fcn.00422565
jmp 0x409196
call fcn.0041d57f
push eax
lea ecx, [ebp - 0x1c44]
call fcn.00403246
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 0x4093e5
cmp dword [ebp - 0x1c30], ebx
jne 0x40944b
push ebx
push str.DwSize:_d
call fcn.004076c2
pop ecx
pop ecx
lea ecx, [ebp - 0x1c7c]
call fcn.004223f6
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.0040762c
cmp dword [ebp - 0x1c24], 0x63
pop ecx
pop ecx
jle 0x4094a5
push 7
mov eax, dword [ebp - 0x1c14]
call fcn.0040a57c
mov ecx, dword [ebp - 0x1c44]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010ea
jmp 0x409384
push dword [ebp - 0x1c30]
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0x1c7c]
call fcn.004221a6
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 0x4093ad
mov ecx, dword [ebp - 0x1c1c]
push str._Downloading_interrupted_
call fcn.00403522
push dword [ebp - 0x1c20]
lea eax, [ebp - 0x1c00]
push str._Total_Downloaded:_d
push eax
call fcn.0040397a
mov ecx, dword [ebp - 0x1c1c]
add esp, 0xc
lea eax, [ebp - 0x1c00]
push eax
call fcn.004032d6
push 6
jmp 0x40942b
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.0040762c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c1c]
push 0x464fb4
call fcn.00403547
push dword [ebp - 0x1c20]
mov ecx, dword [ebp - 0x1c1c]
call fcn.004098e9
mov ecx, dword [ebp - 0x1c1c]
push ebx
call fcn.0040339a
push eax
push str.Error_:__s
call fcn.0040762c
pop ecx
pop ecx
jmp 0x4092f1
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.004388b9
leave
ret 0xc