Function at 0x5aeedd
Capabilities:
Check http status code

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x6b102e
call fcn.00640244
sub esp, 0x548
push ebx
xor ebx, ebx
mov dword [ebp + 0x2c], 0xf
push edi
mov edi, ebx
mov dword [ebp + 0x28], ebx
mov byte [ebp + 0x18], bl
push ebx
lea eax, [ebp + 0x30]
mov dword [ebp - 4], ebx
push 0x715178
push eax
call fcn.004cb763
add esp, 0xc
test al, al
jne 0x5aef27
mov edi, str.cant_load_wininet.dll
jmp 0x5af152
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00495059
mov esi, eax
push 0x2f
mov byte [ebp - 4], 1
call fcn.004946c7
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047cfd3
push esi
push eax
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
call fcn.00428938
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0040f52f
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040f52f
cmp dword [ebp + 0x14], 0x10
mov eax, dword [ebp]
jae 0x5aef7d
lea eax, [ebp]
push ebx
push ebx
push ebx
push ebx
push eax
call dword [ebp + 0x30]
mov ecx, eax
mov dword [ebp + 0x48], ecx
test ecx, ecx
jne 0x5aef98
mov edi, str.InternetOpen_failed
jmp 0x5af146
push ebx
push ebx
push 3
mov eax, 0x74471c
push eax
push eax
push 0x50
push str.update.utorrent.com
push ecx
call dword [ebp + 0x34]
mov ebx, eax
mov dword [ebp + 0x4c], ebx
test ebx, ebx
jne 0x5aefc1
mov edi, str.InternetConnect_failed
jmp 0x5af13e
call fcn.0046c8fb
xor ecx, ecx
test al, al
setne cl
mov dword [ebp + 0x50], ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
push 1
mov esi, eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0047165a
push eax
lea ecx, [ebp + 0x18]
call fcn.0040eb52
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.0040f52f
cmp dword [ebp + 0x2c], 0x10
mov ecx, dword [ebp + 0x18]
jae 0x5af006
lea ecx, [ebp + 0x18]
push dword [ebp + 0x50]
movzx eax, byte [ebp + 0x70]
push dword [ebp + 0x74]
push dword [0x789810]
push dword [ebp + 0x68]
push eax
push esi
push ecx
call fcn.00495134
push eax
call fcn.0049477d
push eax
push dword [ebp + 0x78]
call fcn.005af511
push eax
push str._crash.php_cl_sver_dUfull_version_dUh_sp_dUpr_dUs_dUsvp_dov_dplus_d
mov esi, 0x500
lea eax, [ebp - 0x554]
push esi
push eax
call fcn.0045f98a
mov ecx, dword [ebp + 0x6c]
add esp, 0x34
test ecx, ecx
je 0x5af071
cmp byte [ecx], 0
je 0x5af071
push ecx
sub esi, eax
lea ecx, [ebp - 0x554]
push str.dl_s
add eax, ecx
push esi
push eax
call fcn.0045f98a
add esp, 0x10
mov esi, dword [ebp + 0x64]
mov eax, 0x6cc26c
test esi, esi
jne 0x5af082
mov eax, 0x6cc274
xor ecx, ecx
push ecx
push 0x4000000
push ecx
push ecx
push ecx
lea ecx, [ebp - 0x554]
push ecx
push eax
push ebx
call dword [ebp + 0x38]
mov ebx, eax
test ebx, ebx
jne 0x5af0a9
mov edi, str.HttpOpenRequest_failed
jmp 0x5af138
mov ecx, str.Content_type:_application_octet_stream
test esi, esi
jne 0x5af0b7
mov ecx, 0x74471c
mov eax, esi
neg eax
sbb eax, eax
and eax, dword [ebp + 0x68]
push eax
push esi
push 0xffffffffffffffff
push ecx
push ebx
call dword [ebp + 0x3c]
test eax, eax
jne 0x5af0d4
mov edi, str.HttpSendRequest_failed
jmp 0x5af134
push 0
lea eax, [ebp + 0x58]
mov dword [ebp + 0x58], 4
push eax
lea eax, [ebp + 0x54]
push eax
push 0x20000013
push ebx
call dword [ebp + 0x44]
test eax, eax
jne 0x5af0f9
mov edi, str.HttpQueryInfo_failed
jmp 0x5af134
cmp dword [ebp + 0x54], 0xc8
je 0x5af134
push dword [ebp + 0x54]
mov edi, 0x7e24e8
push str.Error__d_:
push 0x64
pop esi
push esi
push edi
call fcn.0045f98a
add esp, 0x10
lea ecx, [ebp + 0x58]
sub esi, eax
mov dword [ebp + 0x58], esi
lea eax, [eax + 0x7e24e8]
push 0
push ecx
push eax
push 0x14
push ebx
call dword [ebp + 0x44]
push ebx
call dword [ebp + 0x40]
push dword [ebp + 0x4c]
call dword [ebp + 0x40]
push dword [ebp + 0x48]
call dword [ebp + 0x40]
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp]
call fcn.0040f52f
pop esi
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0040f52f
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x5c]
pop ebp
ret 0x18