Function at 0x417790
Capabilities:
Check http status code

Disassembly:
sub esp, 0x20
mov eax, dword [0x4bdc98]
xor eax, esp
push ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
push ebp
mov ebp, dword [sym.imp.WININET.dll_HttpSendRequestW]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [eax], 0
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
push ebx
push ecx
push 0
push 0
push edx
call ebp
test eax, eax
jne 0x417834
push 0x127
push str._views_br_LiveUpdate_Client_20090305_B044__tsp_product1.7_Code_srcLiveUpdateprocess_srcwin32ExecuteHttp.cpp
mov ecx, 0x4bfb40
call fcn.00441240
call edi
push eax
push str.HttpSendRequest_failed._Error_code_is:__d
push 1
push 0x4bfb40
call fcn.00442ba0
add esp, 0x10
call edi
cmp eax, 0x2eff
jne 0x41793e
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
push ebx
push eax
push 0
push 0
push ecx
call ebp
test eax, eax
je 0x417913
xor edx, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x34], edx
mov edx, dword [esi + 0xc]
push 0x13
push edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x10
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x417956
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR71.dll__wtol]
mov ecx, dword [esp + 0x14]
add esp, 4
cmp eax, 0x191
mov dword [ecx], eax
je 0x417897
cmp eax, 0x197
jne 0x41797e
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x41797e
mov eax, ecx
cmp dword [eax + 0x50], 8
mov ecx, dword [eax + 0x4c]
jb 0x4178b2
mov eax, dword [eax + 0x3c]
jmp 0x4178b5
add eax, 0x3c
mov edx, dword [esi + 0xc]
push ecx
push eax
push 0x1c
push edx
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
je 0x417974
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x6c], 8
mov ecx, dword [eax + 0x68]
jb 0x4178dc
mov eax, dword [eax + 0x58]
jmp 0x4178df
add eax, 0x58
push ecx
push eax
mov eax, dword [esi + 0xc]
push 0x1d
push eax
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x4177d0
push 0x15c
push str._views_br_LiveUpdate_Client_20090305_B044__tsp_product1.7_Code_srcLiveUpdateprocess_srcwin32ExecuteHttp.cpp
mov ecx, 0x4bfb40
call fcn.00441240
call edi
push eax
push str.InternetSetOptionFailed:__d
jmp 0x41792f
push 0x12e
push str._views_br_LiveUpdate_Client_20090305_B044__tsp_product1.7_Code_srcLiveUpdateprocess_srcwin32ExecuteHttp.cpp
mov ecx, 0x4bfb40
call fcn.00441240
call edi
push eax
push str.HttpSendRequest_failed._Error_code_is:__d
push 1
push 0x4bfb40
call fcn.00442ba0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00491e29
add esp, 0x20
ret 0xc
push 0x13e
push str._views_br_LiveUpdate_Client_20090305_B044__tsp_product1.7_Code_srcLiveUpdateprocess_srcwin32ExecuteHttp.cpp
mov ecx, 0x4bfb40
call fcn.00441240
call edi
push eax
push str.HttpQueryInfo_failed._Error_code_is__d
jmp 0x41792f
push 0x151
jmp 0x4178fa
cmp eax, 0xc8
je 0x4179bb
cmp eax, 0xce
je 0x4179bb
push 0x169
push str._views_br_LiveUpdate_Client_20090305_B044__tsp_product1.7_Code_srcLiveUpdateprocess_srcwin32ExecuteHttp.cpp
mov ecx, 0x4bfb40
call fcn.00441240
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
push str.HttpSendRequest_failed._Response_code_is__d
push 1
push 0x4bfb40
call fcn.00442ba0
add esp, 0x10
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00491e29
add esp, 0x20
ret 0xc