Function at 0x408160
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c3b6
mov eax, dword fs:[0]
push eax
sub esp, 0x58c
mov eax, dword [0x44d740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x554], edx
mov dword [ebp - 0x558], ecx
push ecx
lea ecx, [ebp - 0x548]
xor esi, esi
call fcn.00403010
add esp, 4
test al, al
jne 0x4081b9
mov eax, str.cant_load_wininet.dll
jmp 0x40846f
lea ecx, [ebp - 0x57c]
call fcn.00401b80
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 0x10
jb 0x4081d3
mov eax, dword [eax]
cmp dword [0x44e6e4], 0x10
mov ecx, dword [0x44e6d0]
jae 0x4081e7
mov ecx, 0x44e6d0
push eax
push ecx
lea eax, [ebp - 0x594]
push str._s__s
push eax
call fcn.004036e0
add esp, 0x10
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x408209
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [ebp - 0x548]
cmp dword [ebp - 0x580], 0x10
mov ebx, eax
mov dword [ebp - 0x55c], ebx
jb 0x408237
push dword [ebp - 0x594]
call fcn.00424bf6
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x568], 0x10
mov dword [ebp - 0x580], 0xf
mov dword [ebp - 0x584], 0
mov byte [ebp - 0x594], 0
jb 0x408270
push dword [ebp - 0x57c]
call fcn.00424bf6
add esp, 4
mov dword [ebp - 0x568], 0xf
mov dword [ebp - 0x56c], 0
mov byte [ebp - 0x57c], 0
test ebx, ebx
jne 0x408299
mov esi, str.InternetOpen_failed
jmp 0x40846d
push 0
push 0
push 3
push 0x445e3a
push 0x445e3a
push 0x50
push str.update.utorrent.com
push ebx
call dword [ebp - 0x544]
mov ebx, dword [ebp - 0x538]
mov edi, eax
mov dword [ebp - 0x560], edi
test edi, edi
jne 0x4082d3
mov esi, str.InternetConnect_failed
jmp 0x408465
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea edx, [ebp - 0x549]
mov dword [ebp - 0x564], eax
lea ecx, [ebp - 0x530]
call fcn.00402dd0
push ecx
lea eax, [ebp - 0x550]
push eax
lea ecx, [ebp - 0x52c]
call fcn.00401560
mov ecx, dword [0x44e6d0]
add esp, 8
cmp dword [0x44e6e4], 0x10
mov dword [ebp - 0x550], eax
jae 0x408320
mov ecx, 0x44e6d0
push 0
push dword [ebp + 0x10]
push 4
push dword [ebp - 0x554]
push 0
push dword [ebp - 0x564]
push eax
push dword [0x450714]
lea eax, [ebp - 0x510]
push ecx
push str._crash.php_cl_sver_dUh_sp_dUpr_dUs_dUsvp_dov_dplus_d
push 0x500
push eax
call fcn.004250a4
push dword [ebp - 0x550]
call fcn.00425905
add esp, 0x34
mov eax, str.POST
cmp dword [ebp - 0x558], 0
jne 0x408374
mov eax, 0x446020
push 0
push 0x4000000
push 0
push 0
push 0
lea ecx, [ebp - 0x510]
push ecx
push eax
push edi
call dword [ebp - 0x540]
mov edi, eax
test edi, edi
jne 0x4083a0
mov esi, str.HttpOpenRequest_failed
jmp 0x40845d
mov edx, dword [ebp - 0x558]
mov ecx, str.Content_type:_application_octet_stream
test edx, edx
jne 0x4083b4
mov ecx, 0x445e3a
mov eax, edx
neg eax
sbb eax, eax
and eax, dword [ebp - 0x554]
push eax
push edx
push 0xffffffffffffffff
push ecx
push edi
call dword [ebp - 0x53c]
test eax, eax
jne 0x4083da
mov esi, str.HttpSendRequest_failed
jmp 0x40845a
push 0
lea eax, [ebp - 0x514]
mov dword [ebp - 0x514], 4
push eax
lea eax, [ebp - 0x518]
push eax
push 0x20000013
push edi
call dword [ebp - 0x534]
test eax, eax
jne 0x40840b
mov esi, str.HttpQueryInfo_failed
jmp 0x40845a
mov eax, dword [ebp - 0x518]
cmp eax, 0xc8
je 0x40845a
push eax
push str.Error__d_:
push 0x64
push 0x452fd0
call fcn.004250a4
add esp, 0x10
mov ecx, eax
mov eax, 0x64
sub eax, ecx
mov dword [ebp - 0x514], eax
lea eax, [ebp - 0x514]
push 0
push eax
lea eax, [ecx + 0x452fd0]
push eax
push 0x14
push edi
call dword [ebp - 0x534]
mov esi, 0x452fd0
push edi
call ebx
push dword [ebp - 0x560]
call ebx
push dword [ebp - 0x55c]
call ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424436
mov esp, ebp
pop ebp
ret