Function at 0x408c22
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 0x45b6ad
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1c7c
call fcn.0043fa20
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.0041eeea
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.0043b840
add esp, 0xc
push esi
lea eax, [ebp - 0x82a]
push ebx
push eax
mov word [ebp - 0x82c], bx
call fcn.0043b840
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.0043b840
add esp, 0xc
push str.Downloading_...
mov dword [ebp - 0x1c64], 0xfd0
call fcn.0040750a
pop ecx
push 0x464fda
lea ecx, [ebp - 0x1c00]
call fcn.00402ef9
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 0x408d77
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_configuring_default_proxy_setting__d
call fcn.0040750a
pop ecx
pop ecx
push 6
mov eax, edi
call fcn.0040a45a
mov esi, eax
mov ecx, dword [ebp - 0x1c00]
add ecx, 0xfffffff0
call fcn.00401109
mov byte [ebp - 4], bl
call fcn.0041ef00
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401109
mov eax, esi
jmp 0x409472
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 0x408db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_in_establishing_connection_with_server__d
jmp 0x408d3d
push 0x464fb4
lea ecx, [ebp - 0x1c0c]
call fcn.00402eb5
lea esi, [ebp - 0x1c0c]
mov byte [ebp - 4], 4
call fcn.00409977
cmp dword [edi + 0x7c], 0x1bb
lea esi, [edi + 0x74]
mov eax, dword [esi]
push ebx
jne 0x408de8
push 0x84c01000
jmp 0x408ded
push 0x4000000
push ebx
push ebx
push 0x468f34
push eax
push 0x468f48
push dword [ebp - 0x1c28]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [ebp - 0x1c04], eax
jne 0x408e39
push str.Error_in_accessing_desired_url
call fcn.0040750a
pop ecx
push 6
mov eax, edi
call fcn.0040a45a
mov esi, eax
mov ecx, dword [ebp - 0x1c0c]
add ecx, 0xfffffff0
call fcn.00401109
jmp 0x408d4f
push ebx
mov ecx, esi
call fcn.0040328d
push ebx
mov ecx, edi
mov esi, eax
call fcn.0040328d
push esi
push eax
push str.ServerName_:__s___PageName_:__s
call fcn.0040750a
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.0041d447
push eax
lea ecx, [ebp - 0x1c38]
call fcn.00403139
push str.Content_Type:_application_zip
lea ecx, [ebp - 0x1c38]
mov byte [ebp - 4], 5
call fcn.00403444
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.00402ef9
mov byte [ebp - 4], 6
push dword [esi + 0x70]
lea ecx, [ebp - 0x1c20]
call fcn.00402ef9
mov byte [ebp - 4], 7
push dword [eax]
push str.PostParameter_:__s
call fcn.0040750a
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.00402fee
push esi
push eax
push ebx
push ebx
push dword [ebp - 0x1c04]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4093c6
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 0x40901d
push dword [ebp - 0x1c18]
push str.Error_in_accessing_result_page_Status_code___d
call fcn.0040750a
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.0041ef00
push 6
pop esi
jmp 0x408d65
mov ecx, dword [ebp - 0x1c1c]
push 0x464fb4
call fcn.00403444
mov esi, dword [ebp - 0x1c1c]
mov eax, dword [ebp - 0x1c18]
call fcn.0040956f
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x40908f
cmp dword [0x4853ec], 1
jne 0x40908f
push ecx
mov dword [ebp - 0x1c3c], esp
mov ecx, esp
push esi
call fcn.0040315e
push dword [ebp - 0x1c18]
call fcn.0040b006
mov esi, dword [ebp - 0x1c18]
mov ecx, dword [ebp - 0x1c08]
add ecx, 0xfffffff0
call fcn.00401109
lea ecx, [edi - 0x10]
call fcn.00401109
jmp 0x408e26
cmp byte [ebp - 0x1c0d], bl
je 0x409149
cmp dword [ebp - 0x1c18], eax
je 0x409151
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.00403444
lea eax, [ebp - 0x82c]
push eax
mov ecx, 0x4853b4
call fcn.00403444
call fcn.00409a00
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.0040750a
add esp, 0x14
mov eax, 0x197
cmp dword [ebp - 0x1c18], eax
jne 0x4091c3
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 0x4091a4
push str.IE:User_press_Ok
mov byte [ebp - 0x1c0d], 1
call fcn.0040750a
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 0x408e5a
push str.IE:User_press_cancel
call fcn.0040750a
pop ecx
push 8
mov eax, dword [ebp - 0x1c14]
call fcn.0040a45a
mov esi, eax
jmp 0x409074
cmp dword [ebp - 0x1c18], 0xc8
je 0x4091d3
push 6
jmp 0x4091b1
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.00438ab4
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 0x4091cf
push 0x9001
push dword [ebp + 8]
lea ecx, [ebp - 0x1c7c]
call fcn.004228f2
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x1c78]
cmp eax, dword [0x45f954]
jne 0x409276
push str.Unable_to_create_file
call fcn.004075a0
mov eax, dword [ebp - 0x1c14]
pop ecx
push 0xc
call fcn.0040a45a
mov esi, eax
lea ecx, [ebp - 0x1c7c]
mov byte [ebp - 4], 6
call fcn.0042241a
jmp 0x409074
call fcn.0041d447
push eax
lea ecx, [ebp - 0x1c44]
call fcn.00403139
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 0x4092c3
cmp dword [ebp - 0x1c30], ebx
jne 0x409329
push ebx
push str.DwSize:_d
call fcn.004075a0
pop ecx
pop ecx
lea ecx, [ebp - 0x1c7c]
call fcn.004222ab
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.0040750a
cmp dword [ebp - 0x1c24], 0x63
pop ecx
pop ecx
jle 0x409383
push 7
mov eax, dword [ebp - 0x1c14]
call fcn.0040a45a
mov ecx, dword [ebp - 0x1c44]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401109
jmp 0x409262
push dword [ebp - 0x1c30]
lea eax, [ebp - 0xc2c]
push eax
lea ecx, [ebp - 0x1c7c]
call fcn.0042205b
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 0x40928b
mov ecx, dword [ebp - 0x1c1c]
push str._Downloading_interrupted_
call fcn.0040341f
push dword [ebp - 0x1c20]
lea eax, [ebp - 0x1c00]
push str._Total_Downloaded:_d
push eax
call fcn.0040384d
mov ecx, dword [ebp - 0x1c1c]
add esp, 0xc
lea eax, [ebp - 0x1c00]
push eax
call fcn.004031c9
push 6
jmp 0x409309
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.0040750a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c1c]
push 0x464fb4
call fcn.00403444
push dword [ebp - 0x1c20]
mov ecx, dword [ebp - 0x1c1c]
call fcn.004097c7
mov ecx, dword [ebp - 0x1c1c]
push ebx
call fcn.0040328d
push eax
push str.Error_:__s
call fcn.0040750a
pop ecx
pop ecx
jmp 0x4091cf
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.00438785
leave
ret 0xc