Function at 0x5a80bb
Capabilities:
Check http status code

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x6a7715
call fcn.006375a8
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 0x70a358
push eax
call fcn.004c84d3
add esp, 0xc
test al, al
jne 0x5a8105
mov edi, str.cant_load_wininet.dll
jmp 0x5a832e
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00492139
mov esi, eax
push 0x2f
mov byte [ebp - 4], 1
call fcn.004917a7
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00479f8f
push esi
push eax
lea eax, [ebp]
mov byte [ebp - 4], 2
push eax
call fcn.00426f08
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.0040daff
cmp dword [ebp + 0x14], 0x10
mov eax, dword [ebp]
jae 0x5a815b
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 0x5a8176
mov edi, str.InternetOpen_failed
jmp 0x5a8322
push ebx
push ebx
push 3
mov eax, 0x73938c
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 0x5a819f
mov edi, str.InternetConnect_failed
jmp 0x5a831a
call fcn.0046a63f
xor ecx, ecx
test al, al
setne cl
mov dword [ebp + 0x50], ecx
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov esi, eax
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.0046f27a
push eax
lea ecx, [ebp + 0x18]
call fcn.0040d122
push 0
push 1
lea ecx, [ebp - 0x54]
call fcn.0040daff
cmp dword [ebp + 0x2c], 0x10
mov ecx, dword [ebp + 0x18]
jae 0x5a81e2
lea ecx, [ebp + 0x18]
push dword [ebp + 0x50]
movzx eax, byte [ebp + 0x70]
push dword [ebp + 0x74]
push dword [0x77d600]
push dword [ebp + 0x68]
push eax
push esi
push ecx
call fcn.00492214
push eax
call fcn.0049185d
push eax
push dword [ebp + 0x78]
call fcn.005a83b2
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.0045dd3d
mov ecx, dword [ebp + 0x6c]
add esp, 0x34
test ecx, ecx
je 0x5a824d
cmp byte [ecx], 0
je 0x5a824d
push ecx
sub esi, eax
lea ecx, [ebp - 0x554]
push str.dl_s
add eax, ecx
push esi
push eax
call fcn.0045dd3d
add esp, 0x10
mov esi, dword [ebp + 0x64]
mov eax, 0x6c1e4c
test esi, esi
jne 0x5a825e
mov eax, 0x6c1e54
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 0x5a8285
mov edi, str.HttpOpenRequest_failed
jmp 0x5a8314
mov ecx, str.Content_type:_application_octet_stream
test esi, esi
jne 0x5a8293
mov ecx, 0x73938c
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 0x5a82b0
mov edi, str.HttpSendRequest_failed
jmp 0x5a8310
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 0x5a82d5
mov edi, str.HttpQueryInfo_failed
jmp 0x5a8310
cmp dword [ebp + 0x54], 0xc8
je 0x5a8310
push dword [ebp + 0x54]
mov edi, 0x7d3e70
push str.Error__d_:
push 0x64
pop esi
push esi
push edi
call fcn.0045dd3d
add esp, 0x10
lea ecx, [ebp + 0x58]
sub esi, eax
mov dword [ebp + 0x58], esi
lea eax, [eax + 0x7d3e70]
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.0040daff
pop esi
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0040daff
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