Function at 0x40ab53
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 0x45dd1b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1c7c
call fcn.00441ba0
mov eax, dword [0x4849a0]
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.00420a3b
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.0043d8e0
add esp, 0xc
push esi
lea eax, [ebp - 0x82a]
push ebx
push eax
mov word [ebp - 0x82c], bx
call fcn.0043d8e0
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.0043d8e0
add esp, 0xc
push str.Downloading_...
mov dword [ebp - 0x1c64], 0xfd0
call fcn.00409842
pop ecx
push 0x46733a
lea ecx, [ebp - 0x1c00]
call fcn.00403354
push ebx
push ebx
push ebx
push ebx
mov byte [ebp - 4], 3
push dword [0x489474]
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp eax, ebx
mov dword [ebp - 0x1c34], eax
jne 0x40aca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_configuring_default_proxy_setting__d
call fcn.00409842
pop ecx
pop ecx
push 6
mov eax, edi
call fcn.0040c38b
mov esi, eax
mov ecx, dword [ebp - 0x1c00]
add ecx, 0xfffffff0
call fcn.00401109
mov byte [ebp - 4], bl
call fcn.00420a51
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, esi
jmp 0x40b3a3
movzx ecx, word [edi + 0x7c]
mov eax, dword [edi]
push ebx
push ebx
push 3
push dword [0x48948c]
push dword [0x489488]
push ecx
push eax
push dword [ebp - 0x1c34]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [ebp - 0x1c28], eax
jne 0x40ace4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_establishing_connection_with_server__d
jmp 0x40ac6e
push 0x467314
lea ecx, [ebp - 0x1c0c]
call fcn.00403310
lea esi, [ebp - 0x1c0c]
mov byte [ebp - 4], 4
call fcn.0040b8a8
cmp dword [edi + 0x7c], 0x1bb
lea esi, [edi + 0x74]
mov eax, dword [esi]
push ebx
jne 0x40ad19
push 0x84c01000
jmp 0x40ad1e
push 0x4000000
push ebx
push ebx
push 0x46ba8c
push eax
push 0x46baa0
push dword [ebp - 0x1c28]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x1c04], eax
jne 0x40ad6a
push str.Error_in_accessing_desired_url
call fcn.00409842
pop ecx
push 6
mov eax, edi
call fcn.0040c38b
mov esi, eax
mov ecx, dword [ebp - 0x1c0c]
add ecx, 0xfffffff0
call fcn.00401109
jmp 0x40ac80
push ebx
mov ecx, esi
call fcn.004036cd
push ebx
mov ecx, edi
mov esi, eax
call fcn.004036cd
push esi
push eax
push str.ServerName_:__s___PageName_:__s
call fcn.00409842
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.0041ef9c
push eax
lea ecx, [ebp - 0x1c38]
call fcn.00406449
push str.Content_Type:_application_zip
lea ecx, [ebp - 0x1c38]
mov byte [ebp - 4], 5
call fcn.0040387a
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.00403354
mov byte [ebp - 4], 6
push dword [esi + 0x70]
lea ecx, [ebp - 0x1c20]
call fcn.00403354
mov byte [ebp - 4], 7
push dword [eax]
push str.PostParameter_:__s
call fcn.00409842
pop ecx
pop ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1c20]
add ecx, 0xfffffff0
call fcn.00401109
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.00403453
push esi
push eax
push ebx
push ebx
push dword [ebp - 0x1c04]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40b2f7
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 0x40af4e
push dword [ebp - 0x1c18]
push str.Error_in_accessing_result_page_Status_code___d
call fcn.00409842
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [edi - 0x10]
call fcn.00401109
mov ecx, dword [ebp - 0x1c0c]
add ecx, 0xfffffff0
call fcn.00401109
mov ecx, dword [ebp - 0x1c00]
add ecx, 0xfffffff0
call fcn.00401109
mov byte [ebp - 4], bl
call fcn.00420a51
push 6
pop esi
jmp 0x40ac96
mov ecx, dword [ebp - 0x1c1c]
push 0x467314
call fcn.0040387a
mov esi, dword [ebp - 0x1c1c]
mov eax, dword [ebp - 0x1c18]
call fcn.0040b4a0
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x40afc0
cmp dword [0x4894c4], 1
jne 0x40afc0
push ecx
mov dword [ebp - 0x1c3c], esp
mov ecx, esp
push esi
call fcn.0040359e
push dword [ebp - 0x1c18]
call fcn.0040cf37
mov esi, dword [ebp - 0x1c18]
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [edi - 0x10]
call fcn.00401109
jmp 0x40ad57
cmp byte [ebp - 0x1c0d], bl
je 0x40b07a
cmp dword [ebp - 0x1c18], eax
je 0x40b082
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, 0x489488
call fcn.0040387a
lea eax, [ebp - 0x82c]
push eax
mov ecx, 0x48948c
call fcn.0040387a
call fcn.0040b931
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.00409842
add esp, 0x14
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x40b0f4
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 0x40b0d5
push str.IE:User_press_Ok
mov byte [ebp - 0x1c0d], 1
call fcn.00409842
pop ecx
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 4
call fcn.00401109
jmp 0x40ad8b
push str.IE:User_press_cancel
call fcn.00409842
pop ecx
push 8
mov eax, dword [ebp - 0x1c14]
call fcn.0040c38b
mov esi, eax
jmp 0x40afa5
cmp dword [ebp - 0x1c18], 0xc8
je 0x40b104
push 6
jmp 0x40b0e2
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.0043a606
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 0x40b100
push 0x9001
push dword [ebp + 8]
lea ecx, [ebp - 0x1c7c]
call fcn.00424435
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1c78]
cmp eax, dword [0x461964]
jne 0x40b1a7
push str.Unable_to_create_file
call fcn.004098d8
mov eax, dword [ebp - 0x1c14]
pop ecx
push 0xc
call fcn.0040c38b
mov esi, eax
lea ecx, [ebp - 0x1c7c]
mov byte [ebp - 4], 6
call fcn.00423f5d
jmp 0x40afa5
call fcn.0041ef9c
push eax
lea ecx, [ebp - 0x1c44]
call fcn.00406449
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 0x40b1f4
cmp dword [ebp - 0x1c30], ebx
jne 0x40b25a
push ebx
push str.DwSize:_d
call fcn.004098d8
pop ecx
pop ecx
lea ecx, [ebp - 0x1c7c]
call fcn.00423dee
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.00409842
cmp dword [ebp - 0x1c24], 0x63
pop ecx
pop ecx
jle 0x40b2b4
push 7
mov eax, dword [ebp - 0x1c14]
call fcn.0040c38b
mov ecx, dword [ebp - 0x1c44]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401109
jmp 0x40b193
push dword [ebp - 0x1c30]
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0x1c7c]
call fcn.00423b9e
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 0x40b1bc
mov ecx, dword [ebp - 0x1c1c]
push str._Downloading_interrupted_
call fcn.00403855
push dword [ebp - 0x1c20]
lea eax, [ebp - 0x1c00]
push str._Total_Downloaded:_d
push eax
call fcn.00403c8e
mov ecx, dword [ebp - 0x1c1c]
add esp, 0xc
lea eax, [ebp - 0x1c00]
push eax
call fcn.00403609
push 6
jmp 0x40b23a
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.00409842
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c1c]
push 0x467314
call fcn.0040387a
push dword [ebp - 0x1c20]
mov ecx, dword [ebp - 0x1c1c]
call fcn.0040b6f8
mov ecx, dword [ebp - 0x1c1c]
push ebx
call fcn.004036cd
push eax
push str.Error_:__s
call fcn.00409842
pop ecx
pop ecx
jmp 0x40b100
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.0043a2d7
leave
ret 0xc